2021-10-29 14:02:49 +08:00
|
|
|
syntax = "proto3";
|
|
|
|
|
option go_package = "./pb";
|
|
|
|
|
|
|
|
|
|
package pb;
|
|
|
|
|
|
|
|
|
|
message Plan {
|
|
|
|
|
int64 id = 1;
|
|
|
|
|
bool isOn = 2;
|
|
|
|
|
string name = 3;
|
|
|
|
|
int64 clusterId = 4;
|
2021-11-09 17:36:34 +08:00
|
|
|
bytes trafficLimitJSON = 5;
|
2023-12-20 15:09:09 +08:00
|
|
|
bool hasFullFeatures = 20; // 是否有所有权限
|
|
|
|
|
bytes featuresJSON = 6; // 权限列表,[code1, code2, ...]
|
2021-10-29 14:02:49 +08:00
|
|
|
string priceType = 7;
|
2021-11-09 17:36:34 +08:00
|
|
|
bytes trafficPriceJSON = 8;
|
2022-01-23 19:16:58 +08:00
|
|
|
bytes bandwidthPriceJSON = 12;
|
2022-10-23 16:29:08 +08:00
|
|
|
double monthlyPrice = 9;
|
|
|
|
|
double seasonallyPrice = 10;
|
|
|
|
|
double yearlyPrice = 11;
|
2023-09-06 16:31:14 +08:00
|
|
|
int32 totalServers = 13; // 可以添加的网站数
|
|
|
|
|
int32 totalServerNamesPerServer = 14; // 每个网站可以添加的域名数
|
|
|
|
|
int32 totalServerNames = 15; // 可以添加的域名总数
|
2023-09-07 11:46:20 +08:00
|
|
|
int64 dailyRequests = 16; // 每日访问量额度
|
|
|
|
|
int64 monthlyRequests = 17; // 每月访问量额度
|
2023-12-19 14:57:03 +08:00
|
|
|
int64 dailyWebsocketConnections = 18; // 每日Websocket连接数额度
|
|
|
|
|
int64 monthlyWebsocketConnections = 19; // 每月Websocket连接数额度
|
2021-10-29 14:02:49 +08:00
|
|
|
}
|