增加套餐相关API/给套餐相关API添加更多注释

This commit is contained in:
GoEdgeLab
2023-12-21 15:09:28 +08:00
parent c9bc1b07db
commit ad142856d0
6 changed files with 562 additions and 327 deletions

View File

@@ -4,19 +4,20 @@ option go_package = "./pb";
package pb;
message Plan {
int64 id = 1;
bool isOn = 2;
string name = 3;
int64 clusterId = 4;
bytes trafficLimitJSON = 5;
int64 id = 1; // 套餐ID
bool isOn = 2; // 是否启用
string name = 3; // 套餐名称
string description = 21; // 套餐简介
int64 clusterId = 4; // 集群ID
bytes trafficLimitJSON = 5; // 流量限制
bool hasFullFeatures = 20; // 是否有所有权限
bytes featuresJSON = 6; // 权限列表,[code1, code2, ...]
string priceType = 7;
bytes trafficPriceJSON = 8;
bytes bandwidthPriceJSON = 12;
double monthlyPrice = 9;
double seasonallyPrice = 10;
double yearlyPrice = 11;
string priceType = 7; // 价格类型traffic, bandwidth, period
bytes trafficPriceJSON = 8; // 流量价格配置
bytes bandwidthPriceJSON = 12; // 带宽价格配置
double monthlyPrice = 9; // 月度价格
double seasonallyPrice = 10; // 季度价格
double yearlyPrice = 11; // 年度价格
int32 totalServers = 13; // 可以添加的网站数
int32 totalServerNamesPerServer = 14; // 每个网站可以添加的域名数
int32 totalServerNames = 15; // 可以添加的域名总数