mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-25 12:30:24 +08:00
重新实现套餐相关功能
This commit is contained in:
@@ -8,15 +8,17 @@ import "models/model_plan.proto";
|
||||
import "models/model_server.proto";
|
||||
|
||||
message UserPlan {
|
||||
int64 id = 1;
|
||||
int64 userId = 2;
|
||||
int64 planId = 3;
|
||||
bool isOn = 4;
|
||||
string dayTo = 5;
|
||||
string name = 6;
|
||||
int64 id = 1; // 套餐ID
|
||||
int64 userId = 2; // 用户ID
|
||||
int64 planId = 3; // 套餐定义ID
|
||||
bool isOn = 4; // 是否启用
|
||||
string dayTo = 5; // 到期日期Y-m-d
|
||||
string name = 6; // 自定义备注名称
|
||||
|
||||
User user = 30;
|
||||
Plan plan = 31;
|
||||
Server server = 32;
|
||||
User user = 30; // 用户信息
|
||||
Plan plan = 31; // 套餐定义信息
|
||||
repeated Server servers = 33; // 绑定的网站列表
|
||||
|
||||
Server server = 32 [deprecated = true]; // 绑定的网站,已过期,使用 servers 代替
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user