mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-27 06:10:24 +08:00
修改部分小数数字精度(float->double),增加用户服务状态API
This commit is contained in:
@@ -33,10 +33,10 @@ type UserAccountLog struct {
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
|
||||
UserAccountId int64 `protobuf:"varint,3,opt,name=userAccountId,proto3" json:"userAccountId,omitempty"`
|
||||
Delta float32 `protobuf:"fixed32,4,opt,name=delta,proto3" json:"delta,omitempty"`
|
||||
DeltaFrozen float32 `protobuf:"fixed32,5,opt,name=deltaFrozen,proto3" json:"deltaFrozen,omitempty"`
|
||||
Total float32 `protobuf:"fixed32,6,opt,name=total,proto3" json:"total,omitempty"`
|
||||
TotalFrozen float32 `protobuf:"fixed32,7,opt,name=totalFrozen,proto3" json:"totalFrozen,omitempty"`
|
||||
Delta float64 `protobuf:"fixed64,4,opt,name=delta,proto3" json:"delta,omitempty"`
|
||||
DeltaFrozen float64 `protobuf:"fixed64,5,opt,name=deltaFrozen,proto3" json:"deltaFrozen,omitempty"`
|
||||
Total float64 `protobuf:"fixed64,6,opt,name=total,proto3" json:"total,omitempty"`
|
||||
TotalFrozen float64 `protobuf:"fixed64,7,opt,name=totalFrozen,proto3" json:"totalFrozen,omitempty"`
|
||||
EventType string `protobuf:"bytes,8,opt,name=eventType,proto3" json:"eventType,omitempty"`
|
||||
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
|
||||
CreatedAt int64 `protobuf:"varint,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
|
||||
@@ -98,28 +98,28 @@ func (x *UserAccountLog) GetUserAccountId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAccountLog) GetDelta() float32 {
|
||||
func (x *UserAccountLog) GetDelta() float64 {
|
||||
if x != nil {
|
||||
return x.Delta
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAccountLog) GetDeltaFrozen() float32 {
|
||||
func (x *UserAccountLog) GetDeltaFrozen() float64 {
|
||||
if x != nil {
|
||||
return x.DeltaFrozen
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAccountLog) GetTotal() float32 {
|
||||
func (x *UserAccountLog) GetTotal() float64 {
|
||||
if x != nil {
|
||||
return x.Total
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *UserAccountLog) GetTotalFrozen() float32 {
|
||||
func (x *UserAccountLog) GetTotalFrozen() float64 {
|
||||
if x != nil {
|
||||
return x.TotalFrozen
|
||||
}
|
||||
@@ -184,12 +184,12 @@ var file_models_model_user_account_log_proto_rawDesc = []byte{
|
||||
0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x18, 0x04, 0x20,
|
||||
0x01, 0x28, 0x02, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
|
||||
0x6c, 0x74, 0x61, 0x46, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x52,
|
||||
0x01, 0x28, 0x01, 0x52, 0x05, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65,
|
||||
0x6c, 0x74, 0x61, 0x46, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52,
|
||||
0x0b, 0x64, 0x65, 0x6c, 0x74, 0x61, 0x46, 0x72, 0x6f, 0x7a, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05,
|
||||
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x74, 0x6f, 0x74,
|
||||
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x74, 0x6f, 0x74,
|
||||
0x61, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x72, 0x6f, 0x7a, 0x65,
|
||||
0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x72,
|
||||
0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x46, 0x72,
|
||||
0x6f, 0x7a, 0x65, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
|
||||
0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79,
|
||||
0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
|
||||
|
||||
Reference in New Issue
Block a user