mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-25 11:36:35 +08:00
修改部分小数数字精度(float->double),增加用户服务状态API
This commit is contained in:
@@ -17,6 +17,7 @@ message NodeTask {
|
||||
int64 version = 7;
|
||||
bool isPrimary = 8; // 是否为主节点,非主节点稍等再同步有利于提升同步速度
|
||||
int64 serverId = 9;
|
||||
int64 userId = 10;
|
||||
|
||||
Node node = 30;
|
||||
NodeCluster nodeCluster = 31;
|
||||
|
||||
@@ -13,7 +13,7 @@ message Plan {
|
||||
string priceType = 7;
|
||||
bytes trafficPriceJSON = 8;
|
||||
bytes bandwidthPriceJSON = 12;
|
||||
float monthlyPrice = 9;
|
||||
float seasonallyPrice = 10;
|
||||
float yearlyPrice = 11;
|
||||
double monthlyPrice = 9;
|
||||
double seasonallyPrice = 10;
|
||||
double yearlyPrice = 11;
|
||||
}
|
||||
@@ -8,5 +8,5 @@ message TrafficPackagePrice {
|
||||
int64 trafficPackageId = 1;
|
||||
int64 nodeRegionId = 2;
|
||||
int64 trafficPackagePeriodId = 3;
|
||||
float price = 4;
|
||||
double price = 4;
|
||||
}
|
||||
@@ -8,8 +8,8 @@ import "models/model_user.proto";
|
||||
message UserAccount {
|
||||
int64 id = 1;
|
||||
int64 userId = 2;
|
||||
float total = 3;
|
||||
float totalFrozen = 4;
|
||||
double total = 3;
|
||||
double totalFrozen = 4;
|
||||
|
||||
User user = 30;
|
||||
}
|
||||
@@ -10,10 +10,10 @@ message UserAccountLog {
|
||||
int64 id = 1;
|
||||
int64 userId = 2;
|
||||
int64 userAccountId = 3;
|
||||
float delta = 4;
|
||||
float deltaFrozen = 5;
|
||||
float total = 6;
|
||||
float totalFrozen = 7;
|
||||
double delta = 4;
|
||||
double deltaFrozen = 5;
|
||||
double total = 6;
|
||||
double totalFrozen = 7;
|
||||
string eventType = 8;
|
||||
string description = 9;
|
||||
int64 createdAt = 10;
|
||||
|
||||
@@ -11,7 +11,7 @@ message UserBill {
|
||||
string type = 3;
|
||||
string typeName = 4;
|
||||
string description = 5;
|
||||
float amount = 6;
|
||||
double amount = 6;
|
||||
string month = 7;
|
||||
bool isPaid = 8;
|
||||
int64 paidAt = 9;
|
||||
|
||||
@@ -10,13 +10,13 @@ message UserTrafficBill {
|
||||
int64 id = 1;
|
||||
int64 billId = 2;
|
||||
int64 nodeRegionId = 3;
|
||||
float amount = 4;
|
||||
float bandwidthMB = 5;
|
||||
double amount = 4;
|
||||
double bandwidthMB = 5;
|
||||
int32 bandwidthPercentile = 6;
|
||||
float trafficGB = 7;
|
||||
float trafficPackageGB = 8;
|
||||
double trafficGB = 7;
|
||||
double trafficPackageGB = 8;
|
||||
repeated int64 userTrafficPackageIds = 9;
|
||||
float pricePerUnit = 10;
|
||||
double pricePerUnit = 10;
|
||||
string priceType = 11;
|
||||
|
||||
NodeRegion nodeRegion = 30;
|
||||
|
||||
Reference in New Issue
Block a user