Explorar el Código

字段类型替换

WH01243 hace 2 años
padre
commit
a9cdd85904

+ 1 - 1
jyBXSubscribe/rpc/bxsubscribe.proto

@@ -52,7 +52,7 @@ message subscribeInfo {
   int64  ca_type = 11;
   repeated string  matchKeys = 12;
   string budget = 13;
-  string bidAmount = 14;
+  int64 bidAmount = 14;
   int64 collection = 15;
   string  buyer = 16;
   string  projectName = 17;

+ 1 - 1
jyBXSubscribe/rpc/model/push.go

@@ -217,7 +217,7 @@ func (s *subscribePush) InfoFormat(p *PushCa, info *map[string]interface{}) *bxs
 		CaType:       int64(p.Type),
 		MatchKeys:    p.Keys,
 		Budget:       common.InterfaceToStr((*info)["budget"]),
-		BidAmount:    common.InterfaceToStr((*info)["bidamount"]),
+		BidAmount:    common.Int64All((*info)["bidamount"]),
 		Buyer:        common.InterfaceToStr((*info)["buyer"]),
 		ProjectName:  common.InterfaceToStr((*info)["projectname"]),
 		Winner:       common.InterfaceToStr((*info)["s_winner"]),

+ 4 - 4
jyBXSubscribe/rpc/type/bxsubscribe/bxsubscribe.pb.go

@@ -363,7 +363,7 @@ type SubscribeInfo struct {
 	CaType       int64    `protobuf:"varint,11,opt,name=ca_type,json=caType,proto3" json:"ca_type,omitempty"`
 	MatchKeys    []string `protobuf:"bytes,12,rep,name=matchKeys,proto3" json:"matchKeys,omitempty"`
 	Budget       string   `protobuf:"bytes,13,opt,name=budget,proto3" json:"budget,omitempty"`
-	BidAmount    string   `protobuf:"bytes,14,opt,name=bidAmount,proto3" json:"bidAmount,omitempty"`
+	BidAmount    int64    `protobuf:"varint,14,opt,name=bidAmount,proto3" json:"bidAmount,omitempty"`
 	Collection   int64    `protobuf:"varint,15,opt,name=collection,proto3" json:"collection,omitempty"`
 	Buyer        string   `protobuf:"bytes,16,opt,name=buyer,proto3" json:"buyer,omitempty"`
 	ProjectName  string   `protobuf:"bytes,17,opt,name=projectName,proto3" json:"projectName,omitempty"`
@@ -498,11 +498,11 @@ func (x *SubscribeInfo) GetBudget() string {
 	return ""
 }
 
-func (x *SubscribeInfo) GetBidAmount() string {
+func (x *SubscribeInfo) GetBidAmount() int64 {
 	if x != nil {
 		return x.BidAmount
 	}
-	return ""
+	return 0
 }
 
 func (x *SubscribeInfo) GetCollection() int64 {
@@ -1798,7 +1798,7 @@ var file_bxsubscribe_proto_rawDesc = []byte{
 	0x63, 0x68, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74,
 	0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x62, 0x75, 0x64, 0x67, 0x65, 0x74, 0x12, 0x1c,
 	0x0a, 0x09, 0x62, 0x69, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28,
-	0x09, 0x52, 0x09, 0x62, 0x69, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a,
+	0x03, 0x52, 0x09, 0x62, 0x69, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a,
 	0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03,
 	0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05,
 	0x62, 0x75, 0x79, 0x65, 0x72, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79,