zhou.xiaoning 2 yıl önce
ebeveyn
işleme
f145a01be2
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 3 3
      res/pb/mtp2.pb.go
  2. 1 1
      res/pb/mtp2.proto

+ 3 - 3
res/pb/mtp2.pb.go

@@ -8224,7 +8224,7 @@ type GZCenterPurchasePriceList struct {
 	unknownFields protoimpl.UnknownFields
 
 	StepIndex *uint32  `protobuf:"varint,1,opt,name=StepIndex" json:"StepIndex,omitempty"` // 档位序号,必填
-	Qty       *uint64  `protobuf:"varint,2,opt,name=Qty" json:"Qty,omitempty"`             // 档位数量,必填
+	Qty       *float64 `protobuf:"fixed64,2,opt,name=Qty" json:"Qty,omitempty"`            // 档位数量,必填,小数,两位
 	Price     *float64 `protobuf:"fixed64,3,opt,name=Price" json:"Price,omitempty"`        // 档位价格,小数,两位,必填
 }
 
@@ -8267,7 +8267,7 @@ func (x *GZCenterPurchasePriceList) GetStepIndex() uint32 {
 	return 0
 }
 
-func (x *GZCenterPurchasePriceList) GetQty() uint64 {
+func (x *GZCenterPurchasePriceList) GetQty() float64 {
 	if x != nil && x.Qty != nil {
 		return *x.Qty
 	}
@@ -13097,7 +13097,7 @@ var file_mtp2_proto_rawDesc = []byte{
 	0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x65, 0x70, 0x49, 0x6e,
 	0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x53, 0x74, 0x65, 0x70, 0x49,
 	0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x51, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x04, 0x52, 0x03, 0x51, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18,
+	0x01, 0x52, 0x03, 0x51, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18,
 	0x03, 0x20, 0x01, 0x28, 0x01, 0x52, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x22, 0xe6, 0x09, 0x0a,
 	0x18, 0x47, 0x5a, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x50, 0x75, 0x72, 0x63, 0x68, 0x61, 0x73,
 	0x65, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x12, 0x27, 0x0a, 0x06, 0x48, 0x65, 0x61,

+ 1 - 1
res/pb/mtp2.proto

@@ -955,7 +955,7 @@ message GZPresaleOrderRsp {
 // 广钻集采价格列表
 message GZCenterPurchasePriceList {
 		optional uint32 StepIndex = 1; // 档位序号,必填
-		optional uint64 Qty = 2; // 档位数量,必填
+		optional double Qty = 2; // 档位数量,必填,小数,两位
 		optional double Price = 3; // 档位价格,小数,两位,必填
 }