mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-01 08:16:41 +08:00
修改部分小数数字精度(float->double),增加用户服务状态API
This commit is contained in:
@@ -34,7 +34,7 @@ type TrafficPackagePrice struct {
|
||||
TrafficPackageId int64 `protobuf:"varint,1,opt,name=trafficPackageId,proto3" json:"trafficPackageId,omitempty"`
|
||||
NodeRegionId int64 `protobuf:"varint,2,opt,name=nodeRegionId,proto3" json:"nodeRegionId,omitempty"`
|
||||
TrafficPackagePeriodId int64 `protobuf:"varint,3,opt,name=trafficPackagePeriodId,proto3" json:"trafficPackagePeriodId,omitempty"`
|
||||
Price float32 `protobuf:"fixed32,4,opt,name=price,proto3" json:"price,omitempty"`
|
||||
Price float64 `protobuf:"fixed64,4,opt,name=price,proto3" json:"price,omitempty"`
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) Reset() {
|
||||
@@ -90,7 +90,7 @@ func (x *TrafficPackagePrice) GetTrafficPackagePeriodId() int64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *TrafficPackagePrice) GetPrice() float32 {
|
||||
func (x *TrafficPackagePrice) GetPrice() float64 {
|
||||
if x != nil {
|
||||
return x.Price
|
||||
}
|
||||
@@ -113,7 +113,7 @@ var file_models_model_traffic_package_price_proto_rawDesc = []byte{
|
||||
0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64,
|
||||
0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50,
|
||||
0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x49, 0x64, 0x12, 0x14,
|
||||
0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x70,
|
||||
0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x70,
|
||||
0x72, 0x69, 0x63, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
|
||||
0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user