소스 검색

数据源修改

WH01243 2 년 전
부모
커밋
74568c983f
3개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      jyBXSubscribe/rpc/bxsubscribe.proto
  2. 1 1
      jyBXSubscribe/rpc/model/push.go
  3. 4 4
      jyBXSubscribe/rpc/type/bxsubscribe/bxsubscribe.pb.go

+ 1 - 1
jyBXSubscribe/rpc/bxsubscribe.proto

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

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

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

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

@@ -362,7 +362,7 @@ type SubscribeInfo struct {
 	CaIsvisit    int64    `protobuf:"varint,10,opt,name=ca_isvisit,json=caIsvisit,proto3" json:"ca_isvisit,omitempty"`
 	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"`
+	Budget       int64    `protobuf:"varint,13,opt,name=budget,proto3" json:"budget,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"`
@@ -491,11 +491,11 @@ func (x *SubscribeInfo) GetMatchKeys() []string {
 	return nil
 }
 
-func (x *SubscribeInfo) GetBudget() string {
+func (x *SubscribeInfo) GetBudget() int64 {
 	if x != nil {
 		return x.Budget
 	}
-	return ""
+	return 0
 }
 
 func (x *SubscribeInfo) GetBidAmount() int64 {
@@ -1796,7 +1796,7 @@ var file_bxsubscribe_proto_rawDesc = []byte{
 	0x52, 0x06, 0x63, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6d, 0x61, 0x74, 0x63,
 	0x68, 0x4b, 0x65, 0x79, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6d, 0x61, 0x74,
 	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,
+	0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 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,
 	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,