소스 검색

feat:采购单位搜索招标动态数量等存缓存

fuwencai 2 년 전
부모
커밋
d1812eb6e9

+ 1 - 1
jyBXBuyer/rpc/bxbuyer.proto

@@ -92,7 +92,7 @@ message SupplyData {
   int64 contactCount = 2;// 历史联系人数量
   int64 projectCount = 3;// 采购项目数量
   float bidAmountCount = 4;// 采购规模
-  string buyerName = 5;//采购单位名词
+  string buyer = 5;//采购单位名词
 }
 
 

+ 1 - 1
jyBXBuyer/rpc/etc/db.yaml

@@ -8,7 +8,7 @@ mysql:
         maxIdleConns: 5
 redis:
     addr:
-        - other=192.168.3.206:1712
+        - other=192.168.3.149:1713
 es:
     addr: http://192.168.3.241:9205
     size: 30

+ 0 - 1
jyBXBuyer/rpc/internal/logic/buyerlistlogic.go

@@ -36,7 +36,6 @@ func (l *BuyerListLogic) BuyerList(in *bxbuyer.BuyerListReq) (*bxbuyer.BuyerList
 	if in.PageSize*in.PageNum > IC.C.BuyerSearchLimit {
 		in.PageNum = IC.C.BuyerSearchLimit / in.PageSize
 	}
-
 	if in.PageNum < 1 {
 		in.PageNum = 1
 	}

+ 168 - 76
jyBXBuyer/rpc/model/buyerListBYEs.go

@@ -1,6 +1,7 @@
 package model
 
 import (
+	"app.yhyue.com/moapp/jybase/redis"
 	"encoding/json"
 	"fmt"
 	IC "jyBXBuyer/rpc/init"
@@ -99,14 +100,16 @@ func getTimeRange() (st, et time.Time) {
 }
 
 const (
-	P_INDEX      = "projectset"
-	P_TYPE       = "projectset"
-	P_redis_time = 15 * 24 * 60 * 60      //redis存15天
-	P_redis_key  = "buyerListCache_%d_%d" // 按页存缓存
-	BuyerIndex   = "buyer"                // 采购单位index
-	BuyerType    = "buyer"
-	biddingIndex = "bidding"
-	biddingType  = "bidding"
+	P_INDEX                  = "projectset"
+	P_TYPE                   = "projectset"
+	P_redis_time             = 15 * 24 * 60 * 60      //redis存15天
+	P_redis_key              = "buyerListCache_%d_%d" // 按页存缓存
+	BuyerIndex               = "buyer"                // 采购单位index
+	BuyerType                = "buyer"
+	biddingIndex             = "bidding"
+	biddingType              = "bidding"
+	BuyerSupplyInfoRedisKey  = "BuyerSupplyInfo_%s" // 采购单位补充信息缓存
+	BuyerSupplyInfoRedisTime = 5 * 60               // 采购单位补充信息缓存时间
 )
 
 // GetBuyerList 查询采购单位列表
@@ -178,46 +181,65 @@ func SupplyFollowInfo(in *bxbuyer.BuyerListReq, buyerNames []string, resp *bxbuy
 
 // SupplyBuyerListData 补充字段   招标动态数量 项目数量 历史联系人数量 采购单位规模
 func SupplyBuyerListData(buyerNames []string, resp *bxbuyer.BuyerListResp) *bxbuyer.BuyerListResp {
-	start := time.Now()
-	t1 := time.Now()
-	query := SupplyDataQuery(buyerNames) // 项目数量、采购规模
-	// 聚合查
-	aggs := GetAggs(P_INDEX, P_TYPE, query)
-	logx.Info("查询语句:", query)
-	fmt.Println("项目数量采购规模查询耗时:", time.Since(t1))
-	type BuyerAggStruct struct {
-		Buckets []struct {
-			Key            string `json:"key,omitempty"`
-			Doc_count      int64  `json:"doc_count,omitempty"`
-			BidAmountCount struct {
-				Value float32 `json:"value,omitempty"`
-			} `json:"bidAmountCount"`
-		} `json:"buckets"`
-	}
-	var buyerBuckets = BuyerAggStruct{}
 	type supplyDataStruct struct {
 		ProjectCount   int64
 		BidCount       int64
 		BidAmountCount float32
+		ContactCount   int64
 	}
-	// 处理成map 用于后面格式化数据
-	buyerMap := map[string]supplyDataStruct{}
-	if aggs != nil && aggs["buyerBuckets"] != nil {
-		bs, err := aggs["buyerBuckets"].MarshalJSON()
-		if err != nil {
-			resp.ErrCode = -1
-			resp.ErrMsg = "获取数据异常"
-		} else {
-			if len(bs) == 0 {
-				resp.ErrMsg = "暂无数据"
+	//buyerNames 是否存在缓存 数据
+	//如果没有 放到一个新的 []string
+	needSearchBuyer := []string{}
+	cacheMap := map[string]supplyDataStruct{}
+	for i := 0; i < len(buyerNames); i++ {
+		bs, err := redis.GetBytes("other", fmt.Sprintf(BuyerSupplyInfoRedisKey, buyerNames[i]))
+		if err == nil && bs != nil && len(*bs) > 0 {
+			tmp := supplyDataStruct{}
+			if err := json.Unmarshal(*bs, &tmp); err != nil {
+				cacheMap[buyerNames[i]] = tmp // 拿到缓存的数据
+			}
+		}
+		needSearchBuyer = append(needSearchBuyer, buyerNames[i]) // 没有缓存的数据 后边再查
+
+	}
+
+	start := time.Now()
+	t1 := time.Now()
+	buyerMap := map[string]supplyDataStruct{} // 聚合的数据
+	if len(needSearchBuyer) > 0 {
+		query := SupplyDataQuery(needSearchBuyer) // 项目数量、采购规模
+		// 聚合查
+		aggs := GetAggs(P_INDEX, P_TYPE, query)
+		logx.Info("查询语句:", query)
+		fmt.Println("项目数量采购规模查询耗时:", time.Since(t1))
+		type BuyerAggStruct struct {
+			Buckets []struct {
+				Key            string `json:"key,omitempty"`
+				Doc_count      int64  `json:"doc_count,omitempty"`
+				BidAmountCount struct {
+					Value float32 `json:"value,omitempty"`
+				} `json:"bidAmountCount"`
+			} `json:"buckets"`
+		}
+		var buyerBuckets = BuyerAggStruct{}
+		// 处理成map 用于后面格式化数据
+		if aggs != nil && aggs["buyerBuckets"] != nil {
+			bs, err := aggs["buyerBuckets"].MarshalJSON()
+			if err != nil {
+				resp.ErrCode = -1
+				resp.ErrMsg = "获取数据异常"
 			} else {
-				err := json.Unmarshal(bs, &buyerBuckets)
-				logx.Info(err)
-				if len(buyerBuckets.Buckets) > 0 {
-					for _, v := range buyerBuckets.Buckets {
-						buyerMap[v.Key] = supplyDataStruct{
-							BidAmountCount: v.BidAmountCount.Value,
-							ProjectCount:   v.Doc_count,
+				if len(bs) == 0 {
+					resp.ErrMsg = "暂无数据"
+				} else {
+					err := json.Unmarshal(bs, &buyerBuckets)
+					logx.Info(err)
+					if len(buyerBuckets.Buckets) > 0 {
+						for _, v := range buyerBuckets.Buckets {
+							buyerMap[v.Key] = supplyDataStruct{
+								BidAmountCount: v.BidAmountCount.Value,
+								ProjectCount:   v.Doc_count,
+							}
 						}
 					}
 				}
@@ -229,7 +251,15 @@ func SupplyBuyerListData(buyerNames []string, resp *bxbuyer.BuyerListResp) *bxbu
 	wg := &sync.WaitGroup{}
 	for i := 0; i < len(resp.Data.List); i++ {
 		buyer := resp.Data.List[i].Buyer
-		// 补充字段
+		// 先查缓存
+		if cacheData, ok := cacheMap[buyer]; ok {
+			resp.Data.List[i].BidAmountCount = cacheData.BidAmountCount
+			resp.Data.List[i].ProjectCount = cacheData.ProjectCount
+			resp.Data.List[i].BiddingCount = cacheData.BidCount
+			resp.Data.List[i].ContactCount = cacheData.ContactCount
+			continue
+		}
+		// 缓存里没有的再查数据补充
 		if supplyData, ok := buyerMap[buyer]; ok {
 			resp.Data.List[i].BidAmountCount = supplyData.BidAmountCount
 			resp.Data.List[i].ProjectCount = supplyData.ProjectCount
@@ -256,6 +286,24 @@ func SupplyBuyerListData(buyerNames []string, resp *bxbuyer.BuyerListResp) *bxbu
 	}
 	wg.Wait()
 	fmt.Println("SupplyBuyerListData 整体耗时:", time.Since(start))
+
+	//得到所有数据,包括 redis里的,再存一下
+	go func(respList []*bxbuyer.BuyerList) {
+		for i := 0; i < len(respList); i++ {
+			tmp := supplyDataStruct{
+				ContactCount:   respList[i].ContactCount,
+				BidCount:       respList[i].BiddingCount,
+				ProjectCount:   respList[i].ProjectCount,
+				BidAmountCount: respList[i].BidAmountCount,
+			}
+			// 存redis
+			b, err := json.Marshal(tmp)
+			if err == nil {
+				redis.PutBytes("other", fmt.Sprintf(BuyerSupplyInfoRedisKey, respList[i].Buyer), &b, BuyerSupplyInfoRedisTime+GetRand(60))
+			}
+		}
+	}(resp.Data.List)
+
 	return resp
 }
 
@@ -264,59 +312,87 @@ func BuyerSupplyInfo(buyerNames []string) (resp *bxbuyer.BuyerSupplyResp) {
 	resp = &bxbuyer.BuyerSupplyResp{}
 	start := time.Now()
 	// buyerNames
-	t1 := time.Now()
-	query := SupplyDataQuery(buyerNames) // 项目数量、采购规模
-	// 聚合查
-	aggs := GetAggs(P_INDEX, P_TYPE, query)
-	logx.Info("查询语句:", query)
-	fmt.Println("项目数量采购规模查询耗时:", time.Since(t1))
-	type BuyerAggStruct struct {
-		Buckets []struct {
-			Key            string `json:"key,omitempty"`
-			Doc_count      int64  `json:"doc_count,omitempty"`
-			BidAmountCount struct {
-				Value float32 `json:"value,omitempty"`
-			} `json:"bidAmountCount"`
-		} `json:"buckets"`
-	}
-	var buyerBuckets = BuyerAggStruct{}
 	type supplyDataStruct struct {
 		ProjectCount   int64
 		BidCount       int64
 		BidAmountCount float32
+		ContactCount   int64
+	}
+	//buyerNames 是否存在缓存 数据
+	//如果没有 放到一个新的 []string
+	needSearchBuyer := []string{}
+	cacheMap := map[string]supplyDataStruct{}
+	for i := 0; i < len(buyerNames); i++ {
+		bs, err := redis.GetBytes("other", fmt.Sprintf(BuyerSupplyInfoRedisKey, buyerNames[i]))
+		if err == nil && bs != nil && len(*bs) > 0 {
+			tmp := supplyDataStruct{}
+			if err := json.Unmarshal(*bs, &tmp); err != nil {
+				cacheMap[buyerNames[i]] = tmp // 拿到缓存的数据
+			}
+		}
+		needSearchBuyer = append(needSearchBuyer, buyerNames[i]) // 没有缓存的数据 后边再查
+
 	}
-	// 处理成map 用于后面格式化数据
 	buyerMap := map[string]supplyDataStruct{}
-	if aggs != nil && aggs["buyerBuckets"] != nil {
-		bs, err := aggs["buyerBuckets"].MarshalJSON()
-		if err != nil {
-			resp.ErrCode = -1
-			resp.ErrMsg = "获取数据异常"
-		} else {
-			if len(bs) == 0 {
-				resp.ErrMsg = "暂无数据"
+	if len(needSearchBuyer) > 0 {
+		t1 := time.Now()
+		query := SupplyDataQuery(buyerNames) // 项目数量、采购规模
+		// 聚合查
+		aggs := GetAggs(P_INDEX, P_TYPE, query)
+		logx.Info("查询语句:", query)
+		fmt.Println("项目数量采购规模查询耗时:", time.Since(t1))
+		type BuyerAggStruct struct {
+			Buckets []struct {
+				Key            string `json:"key,omitempty"`
+				Doc_count      int64  `json:"doc_count,omitempty"`
+				BidAmountCount struct {
+					Value float32 `json:"value,omitempty"`
+				} `json:"bidAmountCount"`
+			} `json:"buckets"`
+		}
+		var buyerBuckets = BuyerAggStruct{}
+		// 处理成map 用于后面格式化数据
+		if aggs != nil && aggs["buyerBuckets"] != nil {
+			bs, err := aggs["buyerBuckets"].MarshalJSON()
+			if err != nil {
+				resp.ErrCode = -1
+				resp.ErrMsg = "获取数据异常"
 			} else {
-				err := json.Unmarshal(bs, &buyerBuckets)
-				logx.Info(err)
-				if len(buyerBuckets.Buckets) > 0 {
-					for _, v := range buyerBuckets.Buckets {
-						buyerMap[v.Key] = supplyDataStruct{
-							BidAmountCount: v.BidAmountCount.Value,
-							ProjectCount:   v.Doc_count,
+				if len(bs) == 0 {
+					resp.ErrMsg = "暂无数据"
+				} else {
+					err := json.Unmarshal(bs, &buyerBuckets)
+					logx.Info(err)
+					if len(buyerBuckets.Buckets) > 0 {
+						for _, v := range buyerBuckets.Buckets {
+							buyerMap[v.Key] = supplyDataStruct{
+								BidAmountCount: v.BidAmountCount.Value,
+								ProjectCount:   v.Doc_count,
+							}
 						}
 					}
 				}
 			}
 		}
 	}
+
 	ch := make(chan int, 10)
 	ch2 := make(chan int, 10)
 	wg := &sync.WaitGroup{}
 	for i := 0; i < len(buyerNames); i++ {
 		buyer := buyerNames[i]
 		resp.Data = append(resp.Data, &bxbuyer.SupplyData{
-			BuyerName: buyerNames[i],
+			Buyer: buyer,
 		})
+		// 先查缓存
+		if cacheData, ok := cacheMap[buyer]; ok {
+			resp.Data[i].BidAmountCount = cacheData.BidAmountCount
+			resp.Data[i].ProjectCount = cacheData.ProjectCount
+			resp.Data[i].BiddingCount = cacheData.BidCount
+			resp.Data[i].ContactCount = cacheData.ContactCount
+			continue
+		}
+		// 缓存里没有的再查数据补充
 		// 补充字段
 		if supplyData, ok := buyerMap[buyer]; ok {
 			resp.Data[i].BidAmountCount = supplyData.BidAmountCount
@@ -344,6 +420,22 @@ func BuyerSupplyInfo(buyerNames []string) (resp *bxbuyer.BuyerSupplyResp) {
 	}
 	wg.Wait()
 	fmt.Println(" 整体耗时:", time.Since(start))
+	//得到所有数据,包括 redis里的,再存一下
+	go func(respList []*bxbuyer.SupplyData) {
+		for i := 0; i < len(respList); i++ {
+			tmp := supplyDataStruct{
+				ContactCount:   respList[i].ContactCount,
+				BidCount:       respList[i].BiddingCount,
+				ProjectCount:   respList[i].ProjectCount,
+				BidAmountCount: respList[i].BidAmountCount,
+			}
+			// 存redis
+			b, err := json.Marshal(tmp)
+			if err == nil {
+				redis.PutBytes("other", fmt.Sprintf(BuyerSupplyInfoRedisKey, respList[i].Buyer), &b, BuyerSupplyInfoRedisTime+GetRand(60))
+			}
+		}
+	}(resp.Data)
 	return
 }
 

+ 12 - 0
jyBXBuyer/rpc/model/util.go

@@ -0,0 +1,12 @@
+package model
+
+import (
+	"math/rand"
+	"time"
+)
+
+func GetRand(n int) int {
+	randGen := rand.New(rand.NewSource(time.Now().UnixNano()))
+	// 获取一个范围在 [0, ) 的随机整数
+	return randGen.Intn(n)
+}

+ 22 - 22
jyBXBuyer/rpc/type/bxbuyer/bxbuyer.pb.go

@@ -878,7 +878,7 @@ type SupplyData struct {
 	ContactCount   int64   `protobuf:"varint,2,opt,name=contactCount,proto3" json:"contactCount,omitempty"`      // 历史联系人数量
 	ProjectCount   int64   `protobuf:"varint,3,opt,name=projectCount,proto3" json:"projectCount,omitempty"`      // 采购项目数量
 	BidAmountCount float32 `protobuf:"fixed32,4,opt,name=bidAmountCount,proto3" json:"bidAmountCount,omitempty"` // 采购规模
-	BuyerName      string  `protobuf:"bytes,5,opt,name=buyerName,proto3" json:"buyerName,omitempty"`             //采购单位名词
+	Buyer          string  `protobuf:"bytes,5,opt,name=buyer,proto3" json:"buyer,omitempty"`                     //采购单位名词
 }
 
 func (x *SupplyData) Reset() {
@@ -941,9 +941,9 @@ func (x *SupplyData) GetBidAmountCount() float32 {
 	return 0
 }
 
-func (x *SupplyData) GetBuyerName() string {
+func (x *SupplyData) GetBuyer() string {
 	if x != nil {
-		return x.BuyerName
+		return x.Buyer
 	}
 	return ""
 }
@@ -1070,7 +1070,7 @@ var file_bxbuyer_proto_rawDesc = []byte{
 	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x27,
 	0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x62,
 	0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x44, 0x61, 0x74,
-	0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xbe, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x70, 0x70,
+	0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb6, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x70, 0x70,
 	0x6c, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0c, 0x62, 0x69, 0x64, 0x64, 0x69, 0x6e,
 	0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x62, 0x69,
 	0x64, 0x64, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x6f,
@@ -1080,24 +1080,24 @@ var file_bxbuyer_proto_rawDesc = []byte{
 	0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x75,
 	0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x62, 0x69, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43,
 	0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0e, 0x62, 0x69, 0x64, 0x41,
-	0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x75,
-	0x79, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62,
-	0x75, 0x79, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x32, 0xdf, 0x01, 0x0a, 0x07, 0x42, 0x78, 0x62,
-	0x75, 0x79, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x09, 0x42, 0x75, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73,
-	0x74, 0x12, 0x15, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65,
-	0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79,
-	0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
-	0x12, 0x48, 0x0a, 0x0f, 0x42, 0x75, 0x79, 0x65, 0x72, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x49,
-	0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x75,
-	0x79, 0x65, 0x72, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
-	0x1a, 0x18, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72,
-	0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4e, 0x0a, 0x0b, 0x52, 0x65,
-	0x6c, 0x61, 0x74, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x62, 0x78, 0x62, 0x75,
-	0x79, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x72,
-	0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x62, 0x78, 0x62, 0x75,
-	0x79, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x72,
-	0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f,
-	0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x75,
+	0x79, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x75, 0x79, 0x65, 0x72,
+	0x32, 0xdf, 0x01, 0x0a, 0x07, 0x42, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x09,
+	0x42, 0x75, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x15, 0x2e, 0x62, 0x78, 0x62, 0x75,
+	0x79, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71,
+	0x1a, 0x16, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72,
+	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x0f, 0x42, 0x75, 0x79, 0x65,
+	0x72, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x2e, 0x62, 0x78,
+	0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72, 0x53, 0x75, 0x70, 0x70, 0x6c,
+	0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79,
+	0x65, 0x72, 0x2e, 0x42, 0x75, 0x79, 0x65, 0x72, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x4e, 0x0a, 0x0b, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x49, 0x6e, 0x66,
+	0x6f, 0x12, 0x1e, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x6c, 0x61,
+	0x74, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+	0x71, 0x1a, 0x1f, 0x2e, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x2e, 0x72, 0x65, 0x6c, 0x61,
+	0x74, 0x65, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
+	0x73, 0x70, 0x42, 0x0b, 0x5a, 0x09, 0x2e, 0x2f, 0x62, 0x78, 0x62, 0x75, 0x79, 0x65, 0x72, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (