mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-15 22:30:25 +08:00
增加套餐相关代码
This commit is contained in:
18
pkg/rpc/protos/models/model_plan.proto
Normal file
18
pkg/rpc/protos/models/model_plan.proto
Normal file
@@ -0,0 +1,18 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
message Plan {
|
||||
int64 id = 1;
|
||||
bool isOn = 2;
|
||||
string name = 3;
|
||||
int64 clusterId = 4;
|
||||
bytes bandwidthLimitJSON = 5;
|
||||
bytes featuresJSON = 6;
|
||||
string priceType = 7;
|
||||
bytes bandwidthPriceJSON = 8;
|
||||
float monthlyPrice = 9;
|
||||
float seasonallyPrice = 10;
|
||||
float yearlyPrice = 11;
|
||||
}
|
||||
19
pkg/rpc/protos/models/model_user_plan.proto
Normal file
19
pkg/rpc/protos/models/model_user_plan.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_user.proto";
|
||||
import "models/model_plan.proto";
|
||||
|
||||
message UserPlan {
|
||||
int64 id = 1;
|
||||
int64 userId = 2;
|
||||
int64 planId = 3;
|
||||
bool isOn = 4;
|
||||
string dayTo = 5;
|
||||
|
||||
User user = 30;
|
||||
Plan plan = 31;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user