From 7ee8759e8ea008dcbb1bebce1c9fe5b7c1eda6e9 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Mon, 9 Jun 2025 13:58:27 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=8B=E5=8A=A8?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E3=80=81=E6=89=A9=E5=B1=95=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/app.go | 13 + internal/controller/bundleV2.go | 8 + internal/dao/bundleDao.go | 41 + internal/logic/bundleLogic.go | 19 + internal/model/bundle.go | 54 + pb/bundle.proto | 72 +- pb/bundle/bundle.pb.go | 1888 +++++++++++++++++++++++++----- pb/bundle/bundle.validator.pb.go | 28 + pb/bundle/bundle_triple.pb.go | 147 ++- pkg/db/mysql.go | 2 + pkg/utils/str.go | 20 + 11 files changed, 1972 insertions(+), 320 deletions(-) create mode 100644 pkg/utils/str.go diff --git a/cmd/app.go b/cmd/app.go index 6aef535..9c0ef6d 100644 --- a/cmd/app.go +++ b/cmd/app.go @@ -47,4 +47,17 @@ func main() { panic(err) } select {} + // dao.AddBundleExtendRecord(model.BundleExtensionRecords{ + // UserId: 57, + // OperatorId: 87, + // AccountAdditional: 1, + // VideoAdditional: 1, + // AvailableDurationAdditional: 1, + // ImagesAdditional: 1, + // DataAdditional: 1, + // AssociatedOrderNumber: "asda", + // Type: 1, + // Remark: "test", + // CreatedAt: time.Now(), + // }) } diff --git a/internal/controller/bundleV2.go b/internal/controller/bundleV2.go index 4ce0e0a..3222bb8 100644 --- a/internal/controller/bundleV2.go +++ b/internal/controller/bundleV2.go @@ -33,3 +33,11 @@ func (b *BundleProvider) ValueAddServiceList(_ context.Context, req *bundle.Valu func (b *BundleProvider) ValueAddServiceDetail(_ context.Context, req *bundle.ValueAddServiceDetailRequest) (res *bundle.ValueAddServiceDetailResponse, err error) { return logic.ValueAddServiceDetail(req) } + +func (b *BundleProvider) BundleExtend(_ context.Context, req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { + return logic.BundleExtend(req) +} + +func (b *BundleProvider) BundleExtendRecordsList(_ context.Context, req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { + return logic.BundleExtendRecordsList(req) +} diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index 2cfb36a..410c18d 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -8,6 +8,7 @@ import ( "micro-bundle/pkg/app" commonErr "micro-bundle/pkg/err" "micro-bundle/pkg/msg" + "micro-bundle/pkg/utils" "time" "gorm.io/gorm" @@ -385,3 +386,43 @@ func GetBundleLangsByUuid(uuid string) ([]*model.BundleProfileLang, error) { Find(&result).Error return result, err } + +func AddBundleExtendRecord(data model.BundleExtensionRecords) error { + return app.ModuleClients.BundleDB.Create(&data).Error +} + +func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) ([]model.BundleExtendRecordItemPo, int64, error) { + session := app.ModuleClients.BundleDB.Select("*,mu.nickname as user_name,mu.tel_num as user_phone_number,fu.tel_num as operator_phone_number,fu.nickname as operator_name"). + Model(&model.BundleExtensionRecords{}). + Joins("left join `fontree-account`.`user` fu on operator_id = fu.id left join `micro-account`.`user` mu on user_id = mu.id ") + if req.EndTime != 0 { + session.Where("bundle_extension_records.created_at < ?", time.Unix(int64(req.EndTime), 0)) + } + if req.StartTime != 0 { + session.Where("bundle_extension_records.created_at > ?", time.Unix(int64(req.StartTime), 0)) + } + if req.Operator != "" { + if utils.IsPhoneNumber(req.Operator) { + session.Where("fu.tel_num = ?", req.Operator) + } else { + session.Where("fu.nickname = ?", req.Operator) + } + } + if req.User != "" { + if utils.IsPhoneNumber(req.User) { + session.Where("mu.tel_num = ?", req.User) + } else { + session.Where("mu.nickname = ?", req.User) + } + } + if req.AssociatedOrderNumber != "" { + session.Where("associated_order_number = ?", req.AssociatedOrderNumber) + } + if req.Type != 0 { + session.Where("`type` = ?", req.Type) + } + var total int64 + res := []model.BundleExtendRecordItemPo{} + session.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)).Find(&res).Count(&total) + return res, total, session.Error +} diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index a75df87..1d7e136 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -362,3 +362,22 @@ func diffUpdateBundleToValueAddService(tx *gorm.DB, bundleUuid string, selectSer } return nil } + +func BundleExtend(req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { + data := model.BundleExtensionRecords{} + if err := copier.CopyWithOption(&data, req, copier.Option{DeepCopy: true}); err != nil { + return nil, err + } + return nil, dao.AddBundleExtendRecord(data) +} + +func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { + data, total, err := dao.GetBundleExtendRecordList(req) + if err != nil { + return nil, err + } + result := new(bundle.BundleExtendRecordsListResponse) + result.Total = total + err = copier.Copy(result.Data, &data) + return result, err +} diff --git a/internal/model/bundle.go b/internal/model/bundle.go index 99807bb..fb9608d 100644 --- a/internal/model/bundle.go +++ b/internal/model/bundle.go @@ -1,6 +1,8 @@ package model import ( + "time" + "gorm.io/gorm" "gorm.io/plugin/soft_delete" ) @@ -79,3 +81,55 @@ func (m *BundleProfileLang) TableName() string { func (m *BundleToValueAddService) TableName() string { return "bundle_to_value_add_service" } + +// 套餐扩容记录表 +type BundleExtensionRecords struct { + gorm.Model + UserId int `gorm:"column:user_id;type:int(11);comment:艺人id;NOT NULL" json:"user_id"` + AccountAdditional uint `gorm:"column:account_additional;type:int(11) unsigned;comment:账号额外增加" json:"account_additional"` + VideoAdditional uint `gorm:"column:video_additional;type:int(11) unsigned;comment:图文额外增加" json:"video_additional"` + ImagesAdditional uint `gorm:"column:images_additional;type:int(11) unsigned;comment:图文额外增加" json:"images_additional"` + DataAdditional uint `gorm:"column:data_additional;type:int(11) unsigned;comment:数据额外增加" json:"data_additional"` + AvailableDurationAdditional uint `gorm:"column:available_duration_additional;type:int(11) unsigned;comment:可用时长增加" json:"available_duration_additional"` + Type int `gorm:"column:type;type:tinyint(4);comment:类型 0:手动操作" json:"type"` + Remark string `gorm:"column:remark;type:text;comment:备注" json:"remark"` + AssociatedOrderNumber string `gorm:"column:associated_order_number;type:varchar(1024);comment:关联增值服务订单号" json:"associated_order_number"` + OperatorId int `gorm:"column:operator_id;type:int(11);comment:操作人id" json:"operator_id"` +} + +// TableName 表名称 +func (*BundleExtensionRecords) TableName() string { + return "bundle_extension_records" +} + +type BundleExtendRecordItemPo struct { + UserName string `json:"userName" gorm:"column:user_name"` + UserPhoneNumber int64 `json:"userPhoneNumber" gorm:"column:user_phone_number"` + AccountAdditional uint32 `json:"accountAdditional" gorm:"column:account_additional"` + VideoAdditional uint32 `json:"videoAdditional" gorm:"column:video_additional"` + ImagesAdditional uint32 `json:"imagesAdditional" gorm:"column:images_additional"` + DataAdditional uint32 `json:"dataAdditional" gorm:"column:data_additional"` + AvailableDurationAdditional uint32 `json:"availableDurationAdditional" gorm:"column:available_duration_additional"` + Type int32 `json:"type" gorm:"column:type"` + CreatedAt time.Time `json:"createdAt" gorm:"column:created_at"` + Remark string `json:"remark" gorm:"column:remark"` + AssociatedOrderNumber string `json:"associatedOrderNumber" gorm:"column:associated_order_number"` + OperatorName string `json:"operatorName" gorm:"column:operator_name"` + OperatorPhoneNumber string `json:"operatorPhoneNumber" gorm:"column:operator_phone_number"` +} + +type BundleBalanceManagement struct { + gorm.Model + UserId int `gorm:"column:user_id;type:int(11);NOT NULL" json:"user_id"` + ExpirationTime time.Time `gorm:"column:expiration_time;type:timestamp;default:CURRENT_TIMESTAMP;NOT NULL" json:"expiration_time"` + BundleName string `gorm:"column:bundle_name;type:varchar(1024);NOT NULL" json:"bundle_name"` + AccountNumber int `gorm:"column:account_number;type:int(11);NOT NULL" json:"account_number"` + VideoNumber int `gorm:"column:video_number;type:int(11);NOT NULL" json:"video_number"` + ImageNumber int `gorm:"column:image_number;type:int(11);NOT NULL" json:"image_number"` + DataAnalysisNumber int `gorm:"column:data_analysis_number;type:int(11);NOT NULL" json:"data_analysis_number"` + ExpansionPacksNumber int `gorm:"column:expansion_packs_number;type:int(11);default:0" json:"expansion_packs_number"` +} + +func (m *BundleBalanceManagement) TableName() string { + return "bundle_balance_management" +} diff --git a/pb/bundle.proto b/pb/bundle.proto index 1529eb0..ee889ff 100644 --- a/pb/bundle.proto +++ b/pb/bundle.proto @@ -29,7 +29,7 @@ service Bundle { rpc OrderRecordsDetail(OrderRecordsDetailRequest) returns (OrderRecordsDetailResponse) {} rpc UpdateFinancialConfirmationStatus(FinancialConfirmationRequest) returns (CommonResponse) {} - //增值套餐 + //增值套餐 rpc CreateValueAddBundle(CreateValueAddBundleRequest) returns (CreateValueAddBundleResponse) {} rpc ValueAddBundleList(ValueAddBundleListRequest) returns (ValueAddBundleListResponse) {} rpc ValueAddBundleDetail(ValueAddBundleDetailRequest) returns (ValueAddBundleDetailResponse) {} @@ -38,6 +38,11 @@ service Bundle { rpc SaveValueAddService(ValueAddServiceLang) returns (SaveResponse) {} rpc ValueAddServiceList(ValueAddServiceListRequest) returns (ValueAddServiceListResponse) {} rpc ValueAddServiceDetail(ValueAddServiceDetailRequest) returns (ValueAddServiceDetailResponse) {} + + // 余量管理 + rpc BundleExtend(BundleExtendRequest) returns (BundleExtendResponse) {} // 套餐扩展 + rpc BundleExtendRecordsList(BundleExtendRecordsListRequest) returns (BundleExtendRecordsListResponse) {} // 套餐扩展记录查询 + } message CommonResponse { @@ -304,4 +309,67 @@ message ValueAddServiceDetailResponse { string msg = 1 [json_name = "msg"]; ValueAddServiceLang valueAddServiceLang = 2 [json_name = "valueAddServiceLang"]; } -//*********************************新增值服务-over****************************************** \ No newline at end of file +//*********************************新增值服务-over****************************************** + + +message BundleExtendRequest{ + int64 userId = 1; + uint32 accountAdditional = 2; + uint32 videoAdditional = 3; + uint32 imagesAdditional = 4; + uint32 dataAdditional = 5; + uint32 availableDurationAdditional = 6; + string remark = 7; + string associatedorderNumber = 8; + int64 operatorId = 9; +} + +message BundleExtendResponse{ +} + +message BundleExtendRecordsListRequest{ + int32 page = 1; + int32 pageSize = 2; + string user = 3; + string operator = 4; + uint64 startTime = 5; + uint64 endTime = 6; + uint32 type = 7; + string associatedOrderNumber = 8; +} + +message BundleExtendRecordsListResponse{ + int64 total = 1; + repeated BundleExtendRecordItem data = 2; +} + +message BundleExtendRecordItem{ + string userName = 1; + string userPhoneNumber = 2; + uint32 accountAdditional = 3; + uint32 videoAdditional = 4; + uint32 imagesAdditional = 5; + uint32 dataAdditional = 6; + uint32 availableDurationAdditional = 7; + int32 type = 8; + uint64 createdAt = 9; + string remark = 10; + string associatedOrderNumber = 11; + string operatorName = 12; + string operatorPhoneNumber = 13; +} + +message SetBundleBalanceRequest { + int32 userId = 1; + int64 expirationTime = 2; + string bundleName = 3; + int32 accountNumber = 4; + int32 videoNumber = 5; + int32 imageNumber = 6; + int32 dataAnalysisNumber = 7; + int32 expansionPacksNumber = 8; +} + +message SetBundleBalanceResponse { + +} \ No newline at end of file diff --git a/pb/bundle/bundle.pb.go b/pb/bundle/bundle.pb.go index f077758..913c457 100644 --- a/pb/bundle/bundle.pb.go +++ b/pb/bundle/bundle.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 -// protoc v5.29.2 +// protoc-gen-go v1.29.1 +// protoc v3.20.3 // source: pb/bundle.proto package bundle @@ -34,9 +34,11 @@ type CommonResponse struct { func (x *CommonResponse) Reset() { *x = CommonResponse{} - mi := &file_pb_bundle_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CommonResponse) String() string { @@ -47,7 +49,7 @@ func (*CommonResponse) ProtoMessage() {} func (x *CommonResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -110,9 +112,11 @@ type BundleProfile struct { func (x *BundleProfile) Reset() { *x = BundleProfile{} - mi := &file_pb_bundle_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleProfile) String() string { @@ -123,7 +127,7 @@ func (*BundleProfile) ProtoMessage() {} func (x *BundleProfile) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -285,9 +289,11 @@ type BundleProfileLang struct { func (x *BundleProfileLang) Reset() { *x = BundleProfileLang{} - mi := &file_pb_bundle_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleProfileLang) String() string { @@ -298,7 +304,7 @@ func (*BundleProfileLang) ProtoMessage() {} func (x *BundleProfileLang) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -409,9 +415,11 @@ type SaveResponse struct { func (x *SaveResponse) Reset() { *x = SaveResponse{} - mi := &file_pb_bundle_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SaveResponse) String() string { @@ -422,7 +430,7 @@ func (*SaveResponse) ProtoMessage() {} func (x *SaveResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -470,9 +478,11 @@ type SelectValueAddService struct { func (x *SelectValueAddService) Reset() { *x = SelectValueAddService{} - mi := &file_pb_bundle_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *SelectValueAddService) String() string { @@ -483,7 +493,7 @@ func (*SelectValueAddService) ProtoMessage() {} func (x *SelectValueAddService) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -529,9 +539,11 @@ type DelBundleRequest struct { func (x *DelBundleRequest) Reset() { *x = DelBundleRequest{} - mi := &file_pb_bundle_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *DelBundleRequest) String() string { @@ -542,7 +554,7 @@ func (*DelBundleRequest) ProtoMessage() {} func (x *DelBundleRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -578,9 +590,11 @@ type BundleListRequest struct { func (x *BundleListRequest) Reset() { *x = BundleListRequest{} - mi := &file_pb_bundle_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleListRequest) String() string { @@ -591,7 +605,7 @@ func (*BundleListRequest) ProtoMessage() {} func (x *BundleListRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -652,9 +666,11 @@ type BundleListResponse struct { func (x *BundleListResponse) Reset() { *x = BundleListResponse{} - mi := &file_pb_bundle_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleListResponse) String() string { @@ -665,7 +681,7 @@ func (*BundleListResponse) ProtoMessage() {} func (x *BundleListResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -705,9 +721,11 @@ type BundleDetailRequest struct { func (x *BundleDetailRequest) Reset() { *x = BundleDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleDetailRequest) String() string { @@ -718,7 +736,7 @@ func (*BundleDetailRequest) ProtoMessage() {} func (x *BundleDetailRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -758,9 +776,11 @@ type HandShelfRequest struct { func (x *HandShelfRequest) Reset() { *x = HandShelfRequest{} - mi := &file_pb_bundle_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *HandShelfRequest) String() string { @@ -771,7 +791,7 @@ func (*HandShelfRequest) ProtoMessage() {} func (x *HandShelfRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -811,9 +831,11 @@ type BundleDetailResponse struct { func (x *BundleDetailResponse) Reset() { *x = BundleDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleDetailResponse) String() string { @@ -824,7 +846,7 @@ func (*BundleDetailResponse) ProtoMessage() {} func (x *BundleDetailResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -865,9 +887,11 @@ type BundleDetailResponseV2 struct { func (x *BundleDetailResponseV2) Reset() { *x = BundleDetailResponseV2{} - mi := &file_pb_bundle_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *BundleDetailResponseV2) String() string { @@ -878,7 +902,7 @@ func (*BundleDetailResponseV2) ProtoMessage() {} func (x *BundleDetailResponseV2) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -957,9 +981,11 @@ type OrderRecord struct { func (x *OrderRecord) Reset() { *x = OrderRecord{} - mi := &file_pb_bundle_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecord) String() string { @@ -970,7 +996,7 @@ func (*OrderRecord) ProtoMessage() {} func (x *OrderRecord) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1248,9 +1274,11 @@ type OrderRecordsRequest struct { func (x *OrderRecordsRequest) Reset() { *x = OrderRecordsRequest{} - mi := &file_pb_bundle_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsRequest) String() string { @@ -1261,7 +1289,7 @@ func (*OrderRecordsRequest) ProtoMessage() {} func (x *OrderRecordsRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1399,9 +1427,11 @@ type OrderRecordsResponse struct { func (x *OrderRecordsResponse) Reset() { *x = OrderRecordsResponse{} - mi := &file_pb_bundle_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsResponse) String() string { @@ -1412,7 +1442,7 @@ func (*OrderRecordsResponse) ProtoMessage() {} func (x *OrderRecordsResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1453,9 +1483,11 @@ type OrderRecordsDetailRequest struct { func (x *OrderRecordsDetailRequest) Reset() { *x = OrderRecordsDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsDetailRequest) String() string { @@ -1466,7 +1498,7 @@ func (*OrderRecordsDetailRequest) ProtoMessage() {} func (x *OrderRecordsDetailRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1513,9 +1545,11 @@ type OrderRecordsDetailResponse struct { func (x *OrderRecordsDetailResponse) Reset() { *x = OrderRecordsDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsDetailResponse) String() string { @@ -1526,7 +1560,7 @@ func (*OrderRecordsDetailResponse) ProtoMessage() {} func (x *OrderRecordsDetailResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1575,9 +1609,11 @@ type ValueAddBundleProfile struct { func (x *ValueAddBundleProfile) Reset() { *x = ValueAddBundleProfile{} - mi := &file_pb_bundle_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleProfile) String() string { @@ -1588,7 +1624,7 @@ func (*ValueAddBundleProfile) ProtoMessage() {} func (x *ValueAddBundleProfile) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1683,9 +1719,11 @@ type CreateValueAddBundleRequest struct { func (x *CreateValueAddBundleRequest) Reset() { *x = CreateValueAddBundleRequest{} - mi := &file_pb_bundle_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateValueAddBundleRequest) String() string { @@ -1696,7 +1734,7 @@ func (*CreateValueAddBundleRequest) ProtoMessage() {} func (x *CreateValueAddBundleRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1731,9 +1769,11 @@ type CreateValueAddBundleResponse struct { func (x *CreateValueAddBundleResponse) Reset() { *x = CreateValueAddBundleResponse{} - mi := &file_pb_bundle_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateValueAddBundleResponse) String() string { @@ -1744,7 +1784,7 @@ func (*CreateValueAddBundleResponse) ProtoMessage() {} func (x *CreateValueAddBundleResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1800,9 +1840,11 @@ type ValueAddBundleListRequest struct { func (x *ValueAddBundleListRequest) Reset() { *x = ValueAddBundleListRequest{} - mi := &file_pb_bundle_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleListRequest) String() string { @@ -1813,7 +1855,7 @@ func (*ValueAddBundleListRequest) ProtoMessage() {} func (x *ValueAddBundleListRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1866,9 +1908,11 @@ type ValueAddBundleListResponse struct { func (x *ValueAddBundleListResponse) Reset() { *x = ValueAddBundleListResponse{} - mi := &file_pb_bundle_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleListResponse) String() string { @@ -1879,7 +1923,7 @@ func (*ValueAddBundleListResponse) ProtoMessage() {} func (x *ValueAddBundleListResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1960,9 +2004,11 @@ type ValueAddBundleDetailRequest struct { func (x *ValueAddBundleDetailRequest) Reset() { *x = ValueAddBundleDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleDetailRequest) String() string { @@ -1973,7 +2019,7 @@ func (*ValueAddBundleDetailRequest) ProtoMessage() {} func (x *ValueAddBundleDetailRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2007,9 +2053,11 @@ type ValueAddBundleDetailResponse struct { func (x *ValueAddBundleDetailResponse) Reset() { *x = ValueAddBundleDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleDetailResponse) String() string { @@ -2020,7 +2068,7 @@ func (*ValueAddBundleDetailResponse) ProtoMessage() {} func (x *ValueAddBundleDetailResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2066,9 +2114,11 @@ type FinancialConfirmationRequest struct { func (x *FinancialConfirmationRequest) Reset() { *x = FinancialConfirmationRequest{} - mi := &file_pb_bundle_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FinancialConfirmationRequest) String() string { @@ -2079,7 +2129,7 @@ func (*FinancialConfirmationRequest) ProtoMessage() {} func (x *FinancialConfirmationRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2116,9 +2166,11 @@ type ValueAddService struct { func (x *ValueAddService) Reset() { *x = ValueAddService{} - mi := &file_pb_bundle_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddService) String() string { @@ -2129,7 +2181,7 @@ func (*ValueAddService) ProtoMessage() {} func (x *ValueAddService) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2192,9 +2244,11 @@ type ValueAddServiceLang struct { func (x *ValueAddServiceLang) Reset() { *x = ValueAddServiceLang{} - mi := &file_pb_bundle_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceLang) String() string { @@ -2205,7 +2259,7 @@ func (*ValueAddServiceLang) ProtoMessage() {} func (x *ValueAddServiceLang) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2311,9 +2365,11 @@ type ValueAddPriceOptions struct { func (x *ValueAddPriceOptions) Reset() { *x = ValueAddPriceOptions{} - mi := &file_pb_bundle_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddPriceOptions) String() string { @@ -2324,7 +2380,7 @@ func (*ValueAddPriceOptions) ProtoMessage() {} func (x *ValueAddPriceOptions) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2381,9 +2437,11 @@ type ValueAddServiceListRequest struct { func (x *ValueAddServiceListRequest) Reset() { *x = ValueAddServiceListRequest{} - mi := &file_pb_bundle_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceListRequest) String() string { @@ -2394,7 +2452,7 @@ func (*ValueAddServiceListRequest) ProtoMessage() {} func (x *ValueAddServiceListRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2449,9 +2507,11 @@ type ValueAddServiceListResponse struct { func (x *ValueAddServiceListResponse) Reset() { *x = ValueAddServiceListResponse{} - mi := &file_pb_bundle_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceListResponse) String() string { @@ -2462,7 +2522,7 @@ func (*ValueAddServiceListResponse) ProtoMessage() {} func (x *ValueAddServiceListResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2510,9 +2570,11 @@ type ValueAddServiceDetailRequest struct { func (x *ValueAddServiceDetailRequest) Reset() { *x = ValueAddServiceDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceDetailRequest) String() string { @@ -2523,7 +2585,7 @@ func (*ValueAddServiceDetailRequest) ProtoMessage() {} func (x *ValueAddServiceDetailRequest) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2563,9 +2625,11 @@ type ValueAddServiceDetailResponse struct { func (x *ValueAddServiceDetailResponse) Reset() { *x = ValueAddServiceDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceDetailResponse) String() string { @@ -2576,7 +2640,7 @@ func (*ValueAddServiceDetailResponse) ProtoMessage() {} func (x *ValueAddServiceDetailResponse) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2605,6 +2669,597 @@ func (x *ValueAddServiceDetailResponse) GetValueAddServiceLang() *ValueAddServic return nil } +type BundleExtendRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + AccountAdditional uint32 `protobuf:"varint,2,opt,name=accountAdditional,proto3" json:"accountAdditional,omitempty"` + VideoAdditional uint32 `protobuf:"varint,3,opt,name=videoAdditional,proto3" json:"videoAdditional,omitempty"` + ImagesAdditional uint32 `protobuf:"varint,4,opt,name=imagesAdditional,proto3" json:"imagesAdditional,omitempty"` + DataAdditional uint32 `protobuf:"varint,5,opt,name=dataAdditional,proto3" json:"dataAdditional,omitempty"` + AvailableDurationAdditional uint32 `protobuf:"varint,6,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional,omitempty"` + Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` + AssociatedorderNumber string `protobuf:"bytes,8,opt,name=associatedorderNumber,proto3" json:"associatedorderNumber,omitempty"` + OperatorId int64 `protobuf:"varint,9,opt,name=operatorId,proto3" json:"operatorId,omitempty"` +} + +func (x *BundleExtendRequest) Reset() { + *x = BundleExtendRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleExtendRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleExtendRequest) ProtoMessage() {} + +func (x *BundleExtendRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleExtendRequest.ProtoReflect.Descriptor instead. +func (*BundleExtendRequest) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{32} +} + +func (x *BundleExtendRequest) GetUserId() int64 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *BundleExtendRequest) GetAccountAdditional() uint32 { + if x != nil { + return x.AccountAdditional + } + return 0 +} + +func (x *BundleExtendRequest) GetVideoAdditional() uint32 { + if x != nil { + return x.VideoAdditional + } + return 0 +} + +func (x *BundleExtendRequest) GetImagesAdditional() uint32 { + if x != nil { + return x.ImagesAdditional + } + return 0 +} + +func (x *BundleExtendRequest) GetDataAdditional() uint32 { + if x != nil { + return x.DataAdditional + } + return 0 +} + +func (x *BundleExtendRequest) GetAvailableDurationAdditional() uint32 { + if x != nil { + return x.AvailableDurationAdditional + } + return 0 +} + +func (x *BundleExtendRequest) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *BundleExtendRequest) GetAssociatedorderNumber() string { + if x != nil { + return x.AssociatedorderNumber + } + return "" +} + +func (x *BundleExtendRequest) GetOperatorId() int64 { + if x != nil { + return x.OperatorId + } + return 0 +} + +type BundleExtendResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *BundleExtendResponse) Reset() { + *x = BundleExtendResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleExtendResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleExtendResponse) ProtoMessage() {} + +func (x *BundleExtendResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[33] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleExtendResponse.ProtoReflect.Descriptor instead. +func (*BundleExtendResponse) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{33} +} + +type BundleExtendRecordsListRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` + Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` + StartTime uint64 `protobuf:"varint,5,opt,name=startTime,proto3" json:"startTime,omitempty"` + EndTime uint64 `protobuf:"varint,6,opt,name=endTime,proto3" json:"endTime,omitempty"` + Type uint32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` + AssociatedOrderNumber string `protobuf:"bytes,8,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber,omitempty"` +} + +func (x *BundleExtendRecordsListRequest) Reset() { + *x = BundleExtendRecordsListRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleExtendRecordsListRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleExtendRecordsListRequest) ProtoMessage() {} + +func (x *BundleExtendRecordsListRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[34] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleExtendRecordsListRequest.ProtoReflect.Descriptor instead. +func (*BundleExtendRecordsListRequest) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{34} +} + +func (x *BundleExtendRecordsListRequest) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *BundleExtendRecordsListRequest) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *BundleExtendRecordsListRequest) GetUser() string { + if x != nil { + return x.User + } + return "" +} + +func (x *BundleExtendRecordsListRequest) GetOperator() string { + if x != nil { + return x.Operator + } + return "" +} + +func (x *BundleExtendRecordsListRequest) GetStartTime() uint64 { + if x != nil { + return x.StartTime + } + return 0 +} + +func (x *BundleExtendRecordsListRequest) GetEndTime() uint64 { + if x != nil { + return x.EndTime + } + return 0 +} + +func (x *BundleExtendRecordsListRequest) GetType() uint32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *BundleExtendRecordsListRequest) GetAssociatedOrderNumber() string { + if x != nil { + return x.AssociatedOrderNumber + } + return "" +} + +type BundleExtendRecordsListResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` + Data []*BundleExtendRecordItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` +} + +func (x *BundleExtendRecordsListResponse) Reset() { + *x = BundleExtendRecordsListResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleExtendRecordsListResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleExtendRecordsListResponse) ProtoMessage() {} + +func (x *BundleExtendRecordsListResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[35] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleExtendRecordsListResponse.ProtoReflect.Descriptor instead. +func (*BundleExtendRecordsListResponse) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{35} +} + +func (x *BundleExtendRecordsListResponse) GetTotal() int64 { + if x != nil { + return x.Total + } + return 0 +} + +func (x *BundleExtendRecordsListResponse) GetData() []*BundleExtendRecordItem { + if x != nil { + return x.Data + } + return nil +} + +type BundleExtendRecordItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` + UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber,omitempty"` + AccountAdditional uint32 `protobuf:"varint,3,opt,name=accountAdditional,proto3" json:"accountAdditional,omitempty"` + VideoAdditional uint32 `protobuf:"varint,4,opt,name=videoAdditional,proto3" json:"videoAdditional,omitempty"` + ImagesAdditional uint32 `protobuf:"varint,5,opt,name=imagesAdditional,proto3" json:"imagesAdditional,omitempty"` + DataAdditional uint32 `protobuf:"varint,6,opt,name=dataAdditional,proto3" json:"dataAdditional,omitempty"` + AvailableDurationAdditional uint32 `protobuf:"varint,7,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional,omitempty"` + Type int32 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` + CreatedAt uint64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + Remark string `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark,omitempty"` + AssociatedOrderNumber string `protobuf:"bytes,11,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber,omitempty"` + OperatorName string `protobuf:"bytes,12,opt,name=operatorName,proto3" json:"operatorName,omitempty"` + OperatorPhoneNumber string `protobuf:"bytes,13,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` +} + +func (x *BundleExtendRecordItem) Reset() { + *x = BundleExtendRecordItem{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleExtendRecordItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleExtendRecordItem) ProtoMessage() {} + +func (x *BundleExtendRecordItem) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[36] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleExtendRecordItem.ProtoReflect.Descriptor instead. +func (*BundleExtendRecordItem) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{36} +} + +func (x *BundleExtendRecordItem) GetUserName() string { + if x != nil { + return x.UserName + } + return "" +} + +func (x *BundleExtendRecordItem) GetUserPhoneNumber() string { + if x != nil { + return x.UserPhoneNumber + } + return "" +} + +func (x *BundleExtendRecordItem) GetAccountAdditional() uint32 { + if x != nil { + return x.AccountAdditional + } + return 0 +} + +func (x *BundleExtendRecordItem) GetVideoAdditional() uint32 { + if x != nil { + return x.VideoAdditional + } + return 0 +} + +func (x *BundleExtendRecordItem) GetImagesAdditional() uint32 { + if x != nil { + return x.ImagesAdditional + } + return 0 +} + +func (x *BundleExtendRecordItem) GetDataAdditional() uint32 { + if x != nil { + return x.DataAdditional + } + return 0 +} + +func (x *BundleExtendRecordItem) GetAvailableDurationAdditional() uint32 { + if x != nil { + return x.AvailableDurationAdditional + } + return 0 +} + +func (x *BundleExtendRecordItem) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + +func (x *BundleExtendRecordItem) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *BundleExtendRecordItem) GetRemark() string { + if x != nil { + return x.Remark + } + return "" +} + +func (x *BundleExtendRecordItem) GetAssociatedOrderNumber() string { + if x != nil { + return x.AssociatedOrderNumber + } + return "" +} + +func (x *BundleExtendRecordItem) GetOperatorName() string { + if x != nil { + return x.OperatorName + } + return "" +} + +func (x *BundleExtendRecordItem) GetOperatorPhoneNumber() string { + if x != nil { + return x.OperatorPhoneNumber + } + return "" +} + +type SetBundleBalanceRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` + ExpirationTime int64 `protobuf:"varint,2,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` + BundleName string `protobuf:"bytes,3,opt,name=bundleName,proto3" json:"bundleName,omitempty"` + AccountNumber int32 `protobuf:"varint,4,opt,name=accountNumber,proto3" json:"accountNumber,omitempty"` + VideoNumber int32 `protobuf:"varint,5,opt,name=videoNumber,proto3" json:"videoNumber,omitempty"` + ImageNumber int32 `protobuf:"varint,6,opt,name=imageNumber,proto3" json:"imageNumber,omitempty"` + DataAnalysisNumber int32 `protobuf:"varint,7,opt,name=dataAnalysisNumber,proto3" json:"dataAnalysisNumber,omitempty"` + ExpansionPacksNumber int32 `protobuf:"varint,8,opt,name=expansionPacksNumber,proto3" json:"expansionPacksNumber,omitempty"` +} + +func (x *SetBundleBalanceRequest) Reset() { + *x = SetBundleBalanceRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetBundleBalanceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetBundleBalanceRequest) ProtoMessage() {} + +func (x *SetBundleBalanceRequest) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[37] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetBundleBalanceRequest.ProtoReflect.Descriptor instead. +func (*SetBundleBalanceRequest) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{37} +} + +func (x *SetBundleBalanceRequest) GetUserId() int32 { + if x != nil { + return x.UserId + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetExpirationTime() int64 { + if x != nil { + return x.ExpirationTime + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetBundleName() string { + if x != nil { + return x.BundleName + } + return "" +} + +func (x *SetBundleBalanceRequest) GetAccountNumber() int32 { + if x != nil { + return x.AccountNumber + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetVideoNumber() int32 { + if x != nil { + return x.VideoNumber + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetImageNumber() int32 { + if x != nil { + return x.ImageNumber + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetDataAnalysisNumber() int32 { + if x != nil { + return x.DataAnalysisNumber + } + return 0 +} + +func (x *SetBundleBalanceRequest) GetExpansionPacksNumber() int32 { + if x != nil { + return x.ExpansionPacksNumber + } + return 0 +} + +type SetBundleBalanceResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *SetBundleBalanceResponse) Reset() { + *x = SetBundleBalanceResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetBundleBalanceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetBundleBalanceResponse) ProtoMessage() {} + +func (x *SetBundleBalanceResponse) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[38] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetBundleBalanceResponse.ProtoReflect.Descriptor instead. +func (*SetBundleBalanceResponse) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{38} +} + var File_pb_bundle_proto protoreflect.FileDescriptor var file_pb_bundle_proto_rawDesc = []byte{ @@ -3012,115 +3667,238 @@ var file_pb_bundle_proto_rawDesc = []byte{ 0x61, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x32, 0xa3, 0x0d, 0x0a, 0x06, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x22, 0x89, 0x03, 0x0a, 0x13, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x69, + 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, + 0x26, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x40, 0x0a, 0x1b, 0x61, 0x76, 0x61, 0x69, 0x6c, + 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x76, + 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, + 0x6b, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x49, 0x64, 0x22, 0x16, 0x0a, 0x14, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x82, 0x02, 0x0a, 0x1e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, + 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, + 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x34, + 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, + 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x1f, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x32, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0xa2, 0x04, 0x0a, 0x16, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, + 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, + 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x12, 0x28, 0x0a, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, + 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, + 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x40, + 0x0a, 0x1b, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, + 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x0a, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, + 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, + 0x69, 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xc7, 0x02, 0x0a, 0x17, 0x53, 0x65, 0x74, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x12, + 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, + 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x14, + 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x73, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x65, 0x78, 0x70, 0x61, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x22, 0x1a, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xb7, 0x0f, 0x0a, + 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, - 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, + 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0c, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, - 0x0a, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x56, 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x56, 0x32, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4b, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x13, + 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, + 0x09, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, + 0x0a, 0x0a, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, 0x12, 0x19, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x56, 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x56, 0x32, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, - 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, - 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, - 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x61, - 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x23, + 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, + 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x4b, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, + 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, + 0x0a, 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, + 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x5d, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, + 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, + 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, + 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, + 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x46, 0x69, 0x6e, + 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x13, 0x53, - 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x1a, - 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x15, 0x56, 0x61, 0x6c, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, + 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, + 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x13, + 0x53, 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, + 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, + 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x15, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x6c, 0x0a, 0x17, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, + 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x57, 0x0a, + 0x10, 0x53, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x12, 0x1f, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x65, 0x74, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3135,40 +3913,47 @@ func file_pb_bundle_proto_rawDescGZIP() []byte { return file_pb_bundle_proto_rawDescData } -var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 32) -var file_pb_bundle_proto_goTypes = []any{ - (*CommonResponse)(nil), // 0: bundle.CommonResponse - (*BundleProfile)(nil), // 1: bundle.BundleProfile - (*BundleProfileLang)(nil), // 2: bundle.BundleProfileLang - (*SaveResponse)(nil), // 3: bundle.SaveResponse - (*SelectValueAddService)(nil), // 4: bundle.SelectValueAddService - (*DelBundleRequest)(nil), // 5: bundle.DelBundleRequest - (*BundleListRequest)(nil), // 6: bundle.BundleListRequest - (*BundleListResponse)(nil), // 7: bundle.BundleListResponse - (*BundleDetailRequest)(nil), // 8: bundle.BundleDetailRequest - (*HandShelfRequest)(nil), // 9: bundle.HandShelfRequest - (*BundleDetailResponse)(nil), // 10: bundle.BundleDetailResponse - (*BundleDetailResponseV2)(nil), // 11: bundle.BundleDetailResponseV2 - (*OrderRecord)(nil), // 12: bundle.OrderRecord - (*OrderRecordsRequest)(nil), // 13: bundle.OrderRecordsRequest - (*OrderRecordsResponse)(nil), // 14: bundle.OrderRecordsResponse - (*OrderRecordsDetailRequest)(nil), // 15: bundle.OrderRecordsDetailRequest - (*OrderRecordsDetailResponse)(nil), // 16: bundle.OrderRecordsDetailResponse - (*ValueAddBundleProfile)(nil), // 17: bundle.ValueAddBundleProfile - (*CreateValueAddBundleRequest)(nil), // 18: bundle.CreateValueAddBundleRequest - (*CreateValueAddBundleResponse)(nil), // 19: bundle.CreateValueAddBundleResponse - (*ValueAddBundleListRequest)(nil), // 20: bundle.ValueAddBundleListRequest - (*ValueAddBundleListResponse)(nil), // 21: bundle.ValueAddBundleListResponse - (*ValueAddBundleDetailRequest)(nil), // 22: bundle.ValueAddBundleDetailRequest - (*ValueAddBundleDetailResponse)(nil), // 23: bundle.ValueAddBundleDetailResponse - (*FinancialConfirmationRequest)(nil), // 24: bundle.FinancialConfirmationRequest - (*ValueAddService)(nil), // 25: bundle.ValueAddService - (*ValueAddServiceLang)(nil), // 26: bundle.ValueAddServiceLang - (*ValueAddPriceOptions)(nil), // 27: bundle.ValueAddPriceOptions - (*ValueAddServiceListRequest)(nil), // 28: bundle.ValueAddServiceListRequest - (*ValueAddServiceListResponse)(nil), // 29: bundle.ValueAddServiceListResponse - (*ValueAddServiceDetailRequest)(nil), // 30: bundle.ValueAddServiceDetailRequest - (*ValueAddServiceDetailResponse)(nil), // 31: bundle.ValueAddServiceDetailResponse +var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_pb_bundle_proto_goTypes = []interface{}{ + (*CommonResponse)(nil), // 0: bundle.CommonResponse + (*BundleProfile)(nil), // 1: bundle.BundleProfile + (*BundleProfileLang)(nil), // 2: bundle.BundleProfileLang + (*SaveResponse)(nil), // 3: bundle.SaveResponse + (*SelectValueAddService)(nil), // 4: bundle.SelectValueAddService + (*DelBundleRequest)(nil), // 5: bundle.DelBundleRequest + (*BundleListRequest)(nil), // 6: bundle.BundleListRequest + (*BundleListResponse)(nil), // 7: bundle.BundleListResponse + (*BundleDetailRequest)(nil), // 8: bundle.BundleDetailRequest + (*HandShelfRequest)(nil), // 9: bundle.HandShelfRequest + (*BundleDetailResponse)(nil), // 10: bundle.BundleDetailResponse + (*BundleDetailResponseV2)(nil), // 11: bundle.BundleDetailResponseV2 + (*OrderRecord)(nil), // 12: bundle.OrderRecord + (*OrderRecordsRequest)(nil), // 13: bundle.OrderRecordsRequest + (*OrderRecordsResponse)(nil), // 14: bundle.OrderRecordsResponse + (*OrderRecordsDetailRequest)(nil), // 15: bundle.OrderRecordsDetailRequest + (*OrderRecordsDetailResponse)(nil), // 16: bundle.OrderRecordsDetailResponse + (*ValueAddBundleProfile)(nil), // 17: bundle.ValueAddBundleProfile + (*CreateValueAddBundleRequest)(nil), // 18: bundle.CreateValueAddBundleRequest + (*CreateValueAddBundleResponse)(nil), // 19: bundle.CreateValueAddBundleResponse + (*ValueAddBundleListRequest)(nil), // 20: bundle.ValueAddBundleListRequest + (*ValueAddBundleListResponse)(nil), // 21: bundle.ValueAddBundleListResponse + (*ValueAddBundleDetailRequest)(nil), // 22: bundle.ValueAddBundleDetailRequest + (*ValueAddBundleDetailResponse)(nil), // 23: bundle.ValueAddBundleDetailResponse + (*FinancialConfirmationRequest)(nil), // 24: bundle.FinancialConfirmationRequest + (*ValueAddService)(nil), // 25: bundle.ValueAddService + (*ValueAddServiceLang)(nil), // 26: bundle.ValueAddServiceLang + (*ValueAddPriceOptions)(nil), // 27: bundle.ValueAddPriceOptions + (*ValueAddServiceListRequest)(nil), // 28: bundle.ValueAddServiceListRequest + (*ValueAddServiceListResponse)(nil), // 29: bundle.ValueAddServiceListResponse + (*ValueAddServiceDetailRequest)(nil), // 30: bundle.ValueAddServiceDetailRequest + (*ValueAddServiceDetailResponse)(nil), // 31: bundle.ValueAddServiceDetailResponse + (*BundleExtendRequest)(nil), // 32: bundle.BundleExtendRequest + (*BundleExtendResponse)(nil), // 33: bundle.BundleExtendResponse + (*BundleExtendRecordsListRequest)(nil), // 34: bundle.BundleExtendRecordsListRequest + (*BundleExtendRecordsListResponse)(nil), // 35: bundle.BundleExtendRecordsListResponse + (*BundleExtendRecordItem)(nil), // 36: bundle.BundleExtendRecordItem + (*SetBundleBalanceRequest)(nil), // 37: bundle.SetBundleBalanceRequest + (*SetBundleBalanceResponse)(nil), // 38: bundle.SetBundleBalanceResponse } var file_pb_bundle_proto_depIdxs = []int32{ 4, // 0: bundle.BundleProfile.selectValueAddService:type_name -> bundle.SelectValueAddService @@ -3186,53 +3971,60 @@ var file_pb_bundle_proto_depIdxs = []int32{ 27, // 12: bundle.ValueAddServiceLang.options:type_name -> bundle.ValueAddPriceOptions 25, // 13: bundle.ValueAddServiceListResponse.valueAddServiceList:type_name -> bundle.ValueAddService 26, // 14: bundle.ValueAddServiceDetailResponse.valueAddServiceLang:type_name -> bundle.ValueAddServiceLang - 1, // 15: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile - 1, // 16: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile - 5, // 17: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest - 9, // 18: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest - 1, // 19: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile - 6, // 20: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest - 8, // 21: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest - 6, // 22: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest - 8, // 23: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest - 12, // 24: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord - 12, // 25: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord - 12, // 26: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord - 13, // 27: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest - 15, // 28: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest - 24, // 29: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest - 18, // 30: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest - 20, // 31: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest - 22, // 32: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest - 26, // 33: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang - 28, // 34: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest - 30, // 35: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest - 0, // 36: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse - 0, // 37: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse - 0, // 38: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse - 0, // 39: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse - 3, // 40: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse - 7, // 41: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse - 11, // 42: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 - 7, // 43: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse - 10, // 44: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse - 0, // 45: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse - 0, // 46: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse - 0, // 47: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse - 14, // 48: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse - 16, // 49: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse - 0, // 50: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse - 19, // 51: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse - 21, // 52: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse - 23, // 53: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse - 3, // 54: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse - 29, // 55: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse - 31, // 56: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse - 36, // [36:57] is the sub-list for method output_type - 15, // [15:36] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 36, // 15: bundle.BundleExtendRecordsListResponse.data:type_name -> bundle.BundleExtendRecordItem + 1, // 16: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile + 1, // 17: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile + 5, // 18: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest + 9, // 19: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest + 1, // 20: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile + 6, // 21: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest + 8, // 22: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest + 6, // 23: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest + 8, // 24: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest + 12, // 25: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord + 12, // 26: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord + 12, // 27: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord + 13, // 28: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest + 15, // 29: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest + 24, // 30: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest + 18, // 31: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest + 20, // 32: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest + 22, // 33: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest + 26, // 34: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang + 28, // 35: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest + 30, // 36: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest + 32, // 37: bundle.Bundle.BundleExtend:input_type -> bundle.BundleExtendRequest + 34, // 38: bundle.Bundle.BundleExtendRecordsList:input_type -> bundle.BundleExtendRecordsListRequest + 37, // 39: bundle.Bundle.SetBundleBalance:input_type -> bundle.SetBundleBalanceRequest + 0, // 40: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse + 0, // 41: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse + 0, // 42: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse + 0, // 43: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse + 3, // 44: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse + 7, // 45: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse + 11, // 46: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 + 7, // 47: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse + 10, // 48: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse + 0, // 49: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse + 0, // 50: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse + 0, // 51: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse + 14, // 52: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse + 16, // 53: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse + 0, // 54: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse + 19, // 55: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse + 21, // 56: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse + 23, // 57: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse + 3, // 58: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse + 29, // 59: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse + 31, // 60: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse + 33, // 61: bundle.Bundle.BundleExtend:output_type -> bundle.BundleExtendResponse + 35, // 62: bundle.Bundle.BundleExtendRecordsList:output_type -> bundle.BundleExtendRecordsListResponse + 38, // 63: bundle.Bundle.SetBundleBalance:output_type -> bundle.SetBundleBalanceResponse + 40, // [40:64] is the sub-list for method output_type + 16, // [16:40] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_pb_bundle_proto_init() } @@ -3240,13 +4032,483 @@ func file_pb_bundle_proto_init() { if File_pb_bundle_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_pb_bundle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommonResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleProfileLang); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SelectValueAddService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HandShelfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailResponseV2); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateValueAddBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateValueAddBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinancialConfirmationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceLang); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddPriceOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordsListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordsListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetBundleBalanceRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetBundleBalanceResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pb_bundle_proto_rawDesc, NumEnums: 0, - NumMessages: 32, + NumMessages: 39, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/bundle/bundle.validator.pb.go b/pb/bundle/bundle.validator.pb.go index 7e4a09a..8e8c1a7 100644 --- a/pb/bundle/bundle.validator.pb.go +++ b/pb/bundle/bundle.validator.pb.go @@ -214,3 +214,31 @@ func (this *ValueAddServiceDetailResponse) Validate() error { } return nil } +func (this *BundleExtendRequest) Validate() error { + return nil +} +func (this *BundleExtendResponse) Validate() error { + return nil +} +func (this *BundleExtendRecordsListRequest) Validate() error { + return nil +} +func (this *BundleExtendRecordsListResponse) Validate() error { + for _, item := range this.Data { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + } + return nil +} +func (this *BundleExtendRecordItem) Validate() error { + return nil +} +func (this *SetBundleBalanceRequest) Validate() error { + return nil +} +func (this *SetBundleBalanceResponse) Validate() error { + return nil +} diff --git a/pb/bundle/bundle_triple.pb.go b/pb/bundle/bundle_triple.pb.go index e21ada3..5ac480a 100644 --- a/pb/bundle/bundle_triple.pb.go +++ b/pb/bundle/bundle_triple.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-triple. DO NOT EDIT. // versions: // - protoc-gen-go-triple v1.0.8 -// - protoc v5.29.2 +// - protoc v3.20.3 // source: pb/bundle.proto package bundle @@ -43,14 +43,18 @@ type BundleClient interface { OrderRecordsList(ctx context.Context, in *OrderRecordsRequest, opts ...grpc_go.CallOption) (*OrderRecordsResponse, common.ErrorWithAttachment) OrderRecordsDetail(ctx context.Context, in *OrderRecordsDetailRequest, opts ...grpc_go.CallOption) (*OrderRecordsDetailResponse, common.ErrorWithAttachment) UpdateFinancialConfirmationStatus(ctx context.Context, in *FinancialConfirmationRequest, opts ...grpc_go.CallOption) (*CommonResponse, common.ErrorWithAttachment) - //增值套餐 + // 增值套餐 CreateValueAddBundle(ctx context.Context, in *CreateValueAddBundleRequest, opts ...grpc_go.CallOption) (*CreateValueAddBundleResponse, common.ErrorWithAttachment) ValueAddBundleList(ctx context.Context, in *ValueAddBundleListRequest, opts ...grpc_go.CallOption) (*ValueAddBundleListResponse, common.ErrorWithAttachment) ValueAddBundleDetail(ctx context.Context, in *ValueAddBundleDetailRequest, opts ...grpc_go.CallOption) (*ValueAddBundleDetailResponse, common.ErrorWithAttachment) - //新增值服务 + // 新增值服务 SaveValueAddService(ctx context.Context, in *ValueAddServiceLang, opts ...grpc_go.CallOption) (*SaveResponse, common.ErrorWithAttachment) ValueAddServiceList(ctx context.Context, in *ValueAddServiceListRequest, opts ...grpc_go.CallOption) (*ValueAddServiceListResponse, common.ErrorWithAttachment) ValueAddServiceDetail(ctx context.Context, in *ValueAddServiceDetailRequest, opts ...grpc_go.CallOption) (*ValueAddServiceDetailResponse, common.ErrorWithAttachment) + // 余量管理 + BundleExtend(ctx context.Context, in *BundleExtendRequest, opts ...grpc_go.CallOption) (*BundleExtendResponse, common.ErrorWithAttachment) + BundleExtendRecordsList(ctx context.Context, in *BundleExtendRecordsListRequest, opts ...grpc_go.CallOption) (*BundleExtendRecordsListResponse, common.ErrorWithAttachment) + SetBundleBalance(ctx context.Context, in *SetBundleBalanceRequest, opts ...grpc_go.CallOption) (*SetBundleBalanceResponse, common.ErrorWithAttachment) } type bundleClient struct { @@ -79,6 +83,9 @@ type BundleClientImpl struct { SaveValueAddService func(ctx context.Context, in *ValueAddServiceLang) (*SaveResponse, error) ValueAddServiceList func(ctx context.Context, in *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) ValueAddServiceDetail func(ctx context.Context, in *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) + BundleExtend func(ctx context.Context, in *BundleExtendRequest) (*BundleExtendResponse, error) + BundleExtendRecordsList func(ctx context.Context, in *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) + SetBundleBalance func(ctx context.Context, in *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) } func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient { @@ -219,6 +226,24 @@ func (c *bundleClient) ValueAddServiceDetail(ctx context.Context, in *ValueAddSe return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/ValueAddServiceDetail", in, out) } +func (c *bundleClient) BundleExtend(ctx context.Context, in *BundleExtendRequest, opts ...grpc_go.CallOption) (*BundleExtendResponse, common.ErrorWithAttachment) { + out := new(BundleExtendResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BundleExtend", in, out) +} + +func (c *bundleClient) BundleExtendRecordsList(ctx context.Context, in *BundleExtendRecordsListRequest, opts ...grpc_go.CallOption) (*BundleExtendRecordsListResponse, common.ErrorWithAttachment) { + out := new(BundleExtendRecordsListResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BundleExtendRecordsList", in, out) +} + +func (c *bundleClient) SetBundleBalance(ctx context.Context, in *SetBundleBalanceRequest, opts ...grpc_go.CallOption) (*SetBundleBalanceResponse, common.ErrorWithAttachment) { + out := new(SetBundleBalanceResponse) + interfaceKey := ctx.Value(constant.InterfaceKey).(string) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/SetBundleBalance", in, out) +} + // BundleServer is the server API for Bundle service. // All implementations must embed UnimplementedBundleServer // for forward compatibility @@ -238,14 +263,18 @@ type BundleServer interface { OrderRecordsList(context.Context, *OrderRecordsRequest) (*OrderRecordsResponse, error) OrderRecordsDetail(context.Context, *OrderRecordsDetailRequest) (*OrderRecordsDetailResponse, error) UpdateFinancialConfirmationStatus(context.Context, *FinancialConfirmationRequest) (*CommonResponse, error) - //增值套餐 + // 增值套餐 CreateValueAddBundle(context.Context, *CreateValueAddBundleRequest) (*CreateValueAddBundleResponse, error) ValueAddBundleList(context.Context, *ValueAddBundleListRequest) (*ValueAddBundleListResponse, error) ValueAddBundleDetail(context.Context, *ValueAddBundleDetailRequest) (*ValueAddBundleDetailResponse, error) - //新增值服务 + // 新增值服务 SaveValueAddService(context.Context, *ValueAddServiceLang) (*SaveResponse, error) ValueAddServiceList(context.Context, *ValueAddServiceListRequest) (*ValueAddServiceListResponse, error) ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) + // 余量管理 + BundleExtend(context.Context, *BundleExtendRequest) (*BundleExtendResponse, error) + BundleExtendRecordsList(context.Context, *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) + SetBundleBalance(context.Context, *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) mustEmbedUnimplementedBundleServer() } @@ -317,6 +346,15 @@ func (UnimplementedBundleServer) ValueAddServiceList(context.Context, *ValueAddS func (UnimplementedBundleServer) ValueAddServiceDetail(context.Context, *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValueAddServiceDetail not implemented") } +func (UnimplementedBundleServer) BundleExtend(context.Context, *BundleExtendRequest) (*BundleExtendResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BundleExtend not implemented") +} +func (UnimplementedBundleServer) BundleExtendRecordsList(context.Context, *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BundleExtendRecordsList not implemented") +} +func (UnimplementedBundleServer) SetBundleBalance(context.Context, *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetBundleBalance not implemented") +} func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) { s.proxyImpl = impl } @@ -954,6 +992,93 @@ func _Bundle_ValueAddServiceDetail_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } +func _Bundle_BundleExtend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(BundleExtendRequest) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("BundleExtend", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Bundle_BundleExtendRecordsList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(BundleExtendRecordsListRequest) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("BundleExtendRecordsList", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + +func _Bundle_SetBundleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(SetBundleBalanceRequest) + if err := dec(in); err != nil { + return nil, err + } + base := srv.(dubbo3.Dubbo3GrpcService) + args := []interface{}{} + args = append(args, in) + md, _ := metadata.FromIncomingContext(ctx) + invAttachment := make(map[string]interface{}, len(md)) + for k, v := range md { + invAttachment[k] = v + } + invo := invocation.NewRPCInvocation("SetBundleBalance", args, invAttachment) + if interceptor == nil { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + info := &grpc_go.UnaryServerInfo{ + Server: srv, + FullMethod: ctx.Value("XXX_TRIPLE_GO_INTERFACE_NAME").(string), + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + result := base.XXX_GetProxyImpl().Invoke(ctx, invo) + return result, result.Error() + } + return interceptor(ctx, in, info, handler) +} + // Bundle_ServiceDesc is the grpc_go.ServiceDesc for Bundle service. // It's only intended for direct use with grpc_go.RegisterService, // and not to be introspected or modified (even as a copy) @@ -1045,6 +1170,18 @@ var Bundle_ServiceDesc = grpc_go.ServiceDesc{ MethodName: "ValueAddServiceDetail", Handler: _Bundle_ValueAddServiceDetail_Handler, }, + { + MethodName: "BundleExtend", + Handler: _Bundle_BundleExtend_Handler, + }, + { + MethodName: "BundleExtendRecordsList", + Handler: _Bundle_BundleExtendRecordsList_Handler, + }, + { + MethodName: "SetBundleBalance", + Handler: _Bundle_SetBundleBalance_Handler, + }, }, Streams: []grpc_go.StreamDesc{}, Metadata: "pb/bundle.proto", diff --git a/pkg/db/mysql.go b/pkg/db/mysql.go index 0d5ee77..908c4da 100644 --- a/pkg/db/mysql.go +++ b/pkg/db/mysql.go @@ -49,6 +49,8 @@ func loadMysqlConn(conn string) *gorm.DB { &model.ValueAddService{}, &model.ValueAddServiceLang{}, &model.BundleToValueAddService{}, + &model.BundleExtensionRecords{}, + &model.BundleBalanceManagement{}, ) if err != nil { diff --git a/pkg/utils/str.go b/pkg/utils/str.go new file mode 100644 index 0000000..49cb8f2 --- /dev/null +++ b/pkg/utils/str.go @@ -0,0 +1,20 @@ +package utils + +import "regexp" + +func IsPhoneNumber(phone string) bool { + // 正则表达式匹配常见的电话号码格式 + // 1. 11位手机号(13x, 14x, 15x, 16x, 17x, 18x, 19x开头) + // 2. 3-4位区号+7-8位号码(可含-或空格分隔) + // 3. 国际号码(+开头) + pattern := `^(?:\+?[0-9]{1,4}[- ]?)?` + // 国际前缀 + `(?:\([0-9]{1,4}\)[- ]?)?` + // 可能有括号的区号 + `(?:[0-9]{7,15}|` + // 7-15位数字或 + `1[3-9][0-9]{9})$` // 11位手机号 + + matched, err := regexp.MatchString(pattern, phone) + if err != nil { + return false + } + return matched +} From 3b3efcb534c65ef8aea29018be0b9f8c439d259d Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Thu, 12 Jun 2025 17:51:24 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=99=E9=87=8F?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/app.go | 15 +- go.mod | 7 +- go.sum | 10 +- internal/controller/bundleV2.go | 4 + internal/dao/bundleDao.go | 65 +- internal/logic/bundleLogic.go | 98 +- internal/model/bundle.go | 47 +- pb/bundle.proto | 34 +- pb/bundle/bundle.pb.go | 1804 +++++++++++++++++++++--------- pb/bundle/bundle.validator.pb.go | 4 +- pb/bundle/bundle_triple.pb.go | 28 +- pkg/db/mysql.go | 1 + 12 files changed, 1536 insertions(+), 581 deletions(-) diff --git a/cmd/app.go b/cmd/app.go index 9c0ef6d..42e54ce 100644 --- a/cmd/app.go +++ b/cmd/app.go @@ -1,17 +1,19 @@ package main import ( + bundleConfig "micro-bundle/config" + "micro-bundle/internal/controller" + _ "micro-bundle/internal/handler" + "micro-bundle/internal/logic" + "micro-bundle/pkg/app" + "micro-bundle/pkg/tracing" + "dubbo.apache.org/dubbo-go/v3/config" _ "dubbo.apache.org/dubbo-go/v3/filter/tps/strategy" _ "dubbo.apache.org/dubbo-go/v3/imports" "github.com/bwmarrin/snowflake" "go.uber.org/zap" "gorm.io/gorm" - bundleConfig "micro-bundle/config" - "micro-bundle/internal/controller" - _ "micro-bundle/internal/handler" - "micro-bundle/pkg/app" - "micro-bundle/pkg/tracing" ) func NewApp(Lg *zap.Logger, JaegerTracer *tracing.JaegerProvider, SfNode *snowflake.Node, BundleDB *gorm.DB) *app.App { @@ -30,7 +32,8 @@ func main() { if err != nil { panic(err) } - + logic.GetBundleBalance(nil) + return //l, err := net.Listen("tcp", ":8883") //if err != nil { // fmt.Printf("failed to listen: %v", err) diff --git a/go.mod b/go.mod index 5d85362..b6c6564 100644 --- a/go.mod +++ b/go.mod @@ -17,6 +17,7 @@ require ( github.com/mwitkow/go-proto-validators v0.3.2 github.com/natefinch/lumberjack v2.0.0+incompatible github.com/opentracing/opentracing-go v1.2.0 + github.com/samber/lo v1.51.0 github.com/spf13/viper v1.7.1 github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271 github.com/uber/jaeger-client-go v2.30.0+incompatible @@ -24,6 +25,7 @@ require ( google.golang.org/protobuf v1.29.1 gorm.io/driver/mysql v1.4.7 gorm.io/gorm v1.25.12 + gorm.io/plugin/soft_delete v1.2.1 ) require ( @@ -142,9 +144,9 @@ require ( golang.org/x/crypto v0.19.0 // indirect golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.4.0 // indirect - golang.org/x/sync v0.6.0 // indirect + golang.org/x/sync v0.11.0 // indirect golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/text v0.22.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/genproto v0.0.0-20230110181048-76db0878b65f // indirect google.golang.org/grpc v1.54.0 // indirect @@ -152,5 +154,4 @@ require ( gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - gorm.io/plugin/soft_delete v1.2.1 // indirect ) diff --git a/go.sum b/go.sum index 81df906..d5af9a5 100644 --- a/go.sum +++ b/go.sum @@ -612,6 +612,7 @@ github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-sqlite3 v1.14.3 h1:j7a/xn1U6TKA/PHHxqZuzh64CdtRc7rU9M+AvkOl5bA= github.com/mattn/go-sqlite3 v1.14.3/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo= @@ -782,6 +783,8 @@ github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/ryanuber/go-glob v1.0.0/go.mod h1:807d1WSdnB0XRJzKNil9Om6lcp/3a0v4qIHxIXzX/Yc= +github.com/samber/lo v1.51.0 h1:kysRYLbHy/MB7kQZf5DSN50JHmMsNEdeY24VzJFu7wI= +github.com/samber/lo v1.51.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0= github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b h1:gQZ0qzfKHQIybLANtM3mBXNUtOfsCFXeTsnBqCsx1KM= github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= @@ -1111,8 +1114,9 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= -golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -1223,8 +1227,9 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1481,6 +1486,7 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gorm.io/driver/mysql v1.4.7 h1:rY46lkCspzGHn7+IYsNpSfEv9tA+SU4SkkB+GFX125Y= gorm.io/driver/mysql v1.4.7/go.mod h1:SxzItlnT1cb6e1e4ZRpgJN2VYtcqJgqnHxWr4wsP8oc= +gorm.io/driver/sqlite v1.1.3 h1:BYfdVuZB5He/u9dt4qDpZqiqDJ6KhPqs5QUqsr/Eeuc= gorm.io/driver/sqlite v1.1.3/go.mod h1:AKDgRWk8lcSQSw+9kxCJnX/yySj8G3rdwYlU57cB45c= gorm.io/gorm v1.20.1/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw= gorm.io/gorm v1.23.0/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk= diff --git a/internal/controller/bundleV2.go b/internal/controller/bundleV2.go index 3222bb8..377dd31 100644 --- a/internal/controller/bundleV2.go +++ b/internal/controller/bundleV2.go @@ -41,3 +41,7 @@ func (b *BundleProvider) BundleExtend(_ context.Context, req *bundle.BundleExten func (b *BundleProvider) BundleExtendRecordsList(_ context.Context, req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { return logic.BundleExtendRecordsList(req) } + +func (b *BundleProvider) GetBundleBalance(_ context.Context, req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { + return logic.GetBundleBalance(req) +} diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index 410c18d..18c585f 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -396,33 +396,82 @@ func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) ([]mo Model(&model.BundleExtensionRecords{}). Joins("left join `fontree-account`.`user` fu on operator_id = fu.id left join `micro-account`.`user` mu on user_id = mu.id ") if req.EndTime != 0 { - session.Where("bundle_extension_records.created_at < ?", time.Unix(int64(req.EndTime), 0)) + session = session.Where("bundle_extension_records.created_at < ?", time.Unix(int64(req.EndTime), 0)) } if req.StartTime != 0 { - session.Where("bundle_extension_records.created_at > ?", time.Unix(int64(req.StartTime), 0)) + session = session.Where("bundle_extension_records.created_at > ?", time.Unix(int64(req.StartTime), 0)) } if req.Operator != "" { if utils.IsPhoneNumber(req.Operator) { - session.Where("fu.tel_num = ?", req.Operator) + session = session.Where("fu.tel_num = ?", req.Operator) } else { - session.Where("fu.nickname = ?", req.Operator) + session = session.Where("fu.nickname = ?", req.Operator) } } if req.User != "" { if utils.IsPhoneNumber(req.User) { - session.Where("mu.tel_num = ?", req.User) + session = session.Where("mu.tel_num = ?", req.User) } else { - session.Where("mu.nickname = ?", req.User) + session = session.Where("mu.nickname = ?", req.User) } } if req.AssociatedOrderNumber != "" { - session.Where("associated_order_number = ?", req.AssociatedOrderNumber) + session = session.Where("associated_order_number = ?", req.AssociatedOrderNumber) } if req.Type != 0 { - session.Where("`type` = ?", req.Type) + session = session.Where("`type` = ?", req.Type) } var total int64 res := []model.BundleExtendRecordItemPo{} session.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)).Find(&res).Count(&total) return res, total, session.Error } + +func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, err error) { + subQuery := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records"). + Select("customer_id, MAX(created_at) as max_created_at"). + Group("customer_id") + app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). + Select(` + bor.customer_id as user_id, + u.nickname as user_name, + u.tel_num as user_phone_number, + bor.bundle_name as bundle_name, + bor.expiration_time as expiration_time, + bor.status as bundle_status, + bova.num as service_num, + bova.service_type as service_type, + cw.work_category as work_category, + cw.uuid as cw_uuid, + bova.uuid as bova_uuid, + cma.user_id as cma_uuid + `). + Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). + Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). + Joins("LEFT JOIN fiee_bundle.cast_work cw ON cw.artist_uuid = bor.customer_id AND cw.created_at > UNIX_TIMESTAMP(bor.created_at)"). + Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bor.customer_id"). + Joins("LEFT JOIN fiee_bundle.cast_media_account cma ON cma.artist_uuid = u.id"). + Where("bor.customer_id != ?", ""). + Scan(&data) + return +} + +// func GetBundleCapacity(tx *gorm.DB) { +// // 子查询: 每个 customer_id 的最新 created_at +// subQuery := tx.Table("fiee_bundle.bundle_order_records"). +// Select("customer_id, MAX(created_at) as max_created_at"). +// Group("customer_id") + +// // 主查询 +// tx.Table("fiee_bundle.bundle_order_records AS bor"). +// Select("bor.*, bova.*"). +// Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). +// Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). +// Where("bor.created_at < bova.created_at"). +// Where("bor.expiration_time > NOW()"). +// Scan(&results) +// } + +// func GetBundleUsage(tx *gorm.DB, userIds []int){ + +// } diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index 6310ef1..d5393c4 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -1,18 +1,22 @@ package logic import ( + "encoding/json" "errors" "fmt" "micro-bundle/internal/dao" "micro-bundle/pkg/app" "micro-bundle/pkg/msg" - - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" - "github.com/jinzhu/copier" - "gorm.io/gorm" + "time" "micro-bundle/internal/model" "micro-bundle/pb/bundle" + + "dubbo.apache.org/dubbo-go/v3/common/logger" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + "github.com/jinzhu/copier" + "github.com/samber/lo" + "gorm.io/gorm" ) func CreateBundle(req *bundle.BundleProfile) (res *bundle.CommonResponse, err error) { @@ -381,3 +385,89 @@ func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundl err = copier.Copy(result.Data, &data) return result, err } + +func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { + data, err := dao.GetBundleBalance(req) + if err != nil { + return nil, err + } + fmt.Printf("len(data): %v\n", len(data)) + dataByte, _ := json.Marshal(data) + fmt.Print(string(dataByte) + "\n") + type userDataDto struct { + UserID int + UserName string + UserPhoneNumber string + BundleName string + ExpirationTime time.Time + BundleStatus string + VideoCap int + ImageCap int + DataAnalysisCap int + AccountCap int + } + usersMap := map[int]*userDataDto{} + lo.ForEach(data, func(data model.BundleBalancePo, index int) { + fmt.Printf("data.UserID: %v\n", data.UserID) + _, ok := usersMap[data.UserID] + if !ok { + usersMap[data.UserID] = &userDataDto{ + UserID: data.UserID, + UserName: data.UserName, + UserPhoneNumber: data.UserPhoneNumber, + BundleStatus: data.BundleStatus, + ExpirationTime: data.ExpirationTime, + } + } + }) + for _, user := range usersMap { + userData := lo.Filter(data, func(data model.BundleBalancePo, _ int) bool { + return data.UserID == user.UserID + }) + // 可用量计算 + lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.BovaUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.BovaUUID + }), func(data model.BundleBalancePo, index int) { + logger.Infof("增加数据类型%v(%v),user_id:%v,uuid:%v", data.ServiceType, data.ServiceNum, data.UserID, *data.BovaUUID) + switch data.ServiceType { + case 1: + user.VideoCap += data.ServiceNum + case 2: + user.ImageCap += data.ServiceNum + case 3: + user.DataAnalysisCap += data.ServiceNum + case 4: + user.AccountCap += data.ServiceNum + } + }) + lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.CwUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.CwUUID + }), func(data model.BundleBalancePo, index int) { + logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", data.ServiceType, data.UserID, *data.CwUUID) + switch data.WorkCategory { + case 1: + user.ImageCap-- + case 2: + user.VideoCap-- + default: + logger.Warn("不存在的数据类型:", data.WorkCategory) + } + }) + lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.CmaUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.CmaUUID + }), func(data model.BundleBalancePo, index int) { + logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", "account", data.UserID, *data.CmaUUID) + user.AccountCap-- + }) + } + + b, _ := json.Marshal(usersMap) + fmt.Print(string(b)) + return nil, nil +} diff --git a/internal/model/bundle.go b/internal/model/bundle.go index 64e4a56..11f67d5 100644 --- a/internal/model/bundle.go +++ b/internal/model/bundle.go @@ -85,8 +85,10 @@ type BundleExtensionRecords struct { AvailableDurationAdditional uint `gorm:"column:available_duration_additional;type:int(11) unsigned;comment:可用时长增加" json:"available_duration_additional"` Type int `gorm:"column:type;type:tinyint(4);comment:类型 0:手动操作" json:"type"` Remark string `gorm:"column:remark;type:text;comment:备注" json:"remark"` - AssociatedOrderNumber string `gorm:"column:associated_order_number;type:varchar(1024);comment:关联增值服务订单号" json:"associated_order_number"` + AssociatedOrderNumber string `gorm:"column:associated_order_number;type:varchar(256);comment:关联增值服务订单号" json:"associated_order_number"` OperatorId int `gorm:"column:operator_id;type:int(11);comment:操作人id" json:"operator_id"` + OperatorName string `gorm:"column:operator_name;type:varchar(256)" json:"operatorName"` + OperatorPhoneNumber string `gorm:"column:operator_phone_number;type:varchar(256)" json:"operatorPhoneNumber"` } // TableName 表名称 @@ -95,33 +97,22 @@ func (*BundleExtensionRecords) TableName() string { } type BundleExtendRecordItemPo struct { - UserName string `json:"userName" gorm:"column:user_name"` - UserPhoneNumber int64 `json:"userPhoneNumber" gorm:"column:user_phone_number"` - AccountAdditional uint32 `json:"accountAdditional" gorm:"column:account_additional"` - VideoAdditional uint32 `json:"videoAdditional" gorm:"column:video_additional"` - ImagesAdditional uint32 `json:"imagesAdditional" gorm:"column:images_additional"` - DataAdditional uint32 `json:"dataAdditional" gorm:"column:data_additional"` - AvailableDurationAdditional uint32 `json:"availableDurationAdditional" gorm:"column:available_duration_additional"` - Type int32 `json:"type" gorm:"column:type"` - CreatedAt time.Time `json:"createdAt" gorm:"column:created_at"` - Remark string `json:"remark" gorm:"column:remark"` - AssociatedOrderNumber string `json:"associatedOrderNumber" gorm:"column:associated_order_number"` - OperatorName string `json:"operatorName" gorm:"column:operator_name"` - OperatorPhoneNumber string `json:"operatorPhoneNumber" gorm:"column:operator_phone_number"` + BundleExtensionRecords + UserName string `json:"userName" gorm:"column:user_name"` + UserPhoneNumber int64 `json:"userPhoneNumber" gorm:"column:user_phone_number"` } -type BundleBalanceManagement struct { - gorm.Model - UserId int `gorm:"column:user_id;type:int(11);NOT NULL" json:"user_id"` - ExpirationTime time.Time `gorm:"column:expiration_time;type:timestamp;default:CURRENT_TIMESTAMP;NOT NULL" json:"expiration_time"` - BundleName string `gorm:"column:bundle_name;type:varchar(1024);NOT NULL" json:"bundle_name"` - AccountNumber int `gorm:"column:account_number;type:int(11);NOT NULL" json:"account_number"` - VideoNumber int `gorm:"column:video_number;type:int(11);NOT NULL" json:"video_number"` - ImageNumber int `gorm:"column:image_number;type:int(11);NOT NULL" json:"image_number"` - DataAnalysisNumber int `gorm:"column:data_analysis_number;type:int(11);NOT NULL" json:"data_analysis_number"` - ExpansionPacksNumber int `gorm:"column:expansion_packs_number;type:int(11);default:0" json:"expansion_packs_number"` -} - -func (m *BundleBalanceManagement) TableName() string { - return "bundle_balance_management" +type BundleBalancePo struct { + UserID int `gorm:"column:user_id"` + UserName string `gorm:"column:user_name"` + UserPhoneNumber string `gorm:"column:user_phone_nmber"` + BundleName string `gorm:"column:bundle_name"` + ExpirationTime time.Time `gorm:"column:expired_time"` + BundleStatus string `gorm:"column:bundle_status"` + ServiceNum int `gorm:"column:service_num"` + ServiceType int `gorm:"column:service_type"` + WorkCategory int `gorm:"column:work_category"` + CwUUID *string `gorm:"column:cw_uuid"` + BovaUUID *string `gorm:"column:bova_uuid"` + CmaUUID *string `gorm:"column:cma_uuid"` } diff --git a/pb/bundle.proto b/pb/bundle.proto index e74603d..a82a8a6 100644 --- a/pb/bundle.proto +++ b/pb/bundle.proto @@ -42,6 +42,7 @@ service Bundle { // 余量管理 rpc BundleExtend(BundleExtendRequest) returns (BundleExtendResponse) {} // 套餐扩展 rpc BundleExtendRecordsList(BundleExtendRecordsListRequest) returns (BundleExtendRecordsListResponse) {} // 套餐扩展记录查询 + rpc GetBundleBalance(GetBundleBalanceReq) returns (GetBundleBalanceResp) {} // 余量信息 } @@ -326,7 +327,8 @@ message BundleExtendRequest{ uint32 availableDurationAdditional = 6; string remark = 7; string associatedorderNumber = 8; - int64 operatorId = 9; + string operatorName = 9; + string operatorPhoneNumber = 10; } message BundleExtendResponse{ @@ -364,17 +366,27 @@ message BundleExtendRecordItem{ string operatorPhoneNumber = 13; } -message SetBundleBalanceRequest { - int32 userId = 1; - int64 expirationTime = 2; +message GetBundleBalanceReq{ + string userName = 1; + int32 status = 2; string bundleName = 3; - int32 accountNumber = 4; - int32 videoNumber = 5; - int32 imageNumber = 6; - int32 dataAnalysisNumber = 7; - int32 expansionPacksNumber = 8; + int64 expiredTimeStart = 4; + int64 expiredTimeEnd = 5; } -message SetBundleBalanceResponse { - +message GetBundleBalanceResp{ + string userName = 1; + string userPhoneNumber = 2; + int32 status = 3; + string bundleName = 4; + int64 expiredTime = 5; + int32 accountNumber = 6; + int32 accountConsumptionNumber = 7; + int32 videoNumber = 8; + int32 videoConsumptionNumber = 9; + int32 imageNumber = 10; + int32 imageConsumptionNumber = 11; + int32 dataAnalysisNumber = 12; + int32 dataAnalysisConsumptionNumber = 13; + int32 expansionPacksNumber = 14; } \ No newline at end of file diff --git a/pb/bundle/bundle.pb.go b/pb/bundle/bundle.pb.go index 6404323..5576830 100644 --- a/pb/bundle/bundle.pb.go +++ b/pb/bundle/bundle.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.31.0 -// protoc v4.24.0--rc1 +// protoc-gen-go v1.29.1 +// protoc v3.20.3 // source: pb/bundle.proto package bundle @@ -117,11 +117,6 @@ func (x *BundleProfile) Reset() { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } - if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } } func (x *BundleProfile) String() string { @@ -1350,9 +1345,11 @@ type OrderRecordsRequest struct { func (x *OrderRecordsRequest) Reset() { *x = OrderRecordsRequest{} - mi := &file_pb_bundle_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsRequest) String() string { @@ -1362,8 +1359,8 @@ func (x *OrderRecordsRequest) String() string { func (*OrderRecordsRequest) ProtoMessage() {} func (x *OrderRecordsRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[13] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1501,9 +1498,11 @@ type OrderRecordsResponse struct { func (x *OrderRecordsResponse) Reset() { *x = OrderRecordsResponse{} - mi := &file_pb_bundle_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsResponse) String() string { @@ -1513,8 +1512,8 @@ func (x *OrderRecordsResponse) String() string { func (*OrderRecordsResponse) ProtoMessage() {} func (x *OrderRecordsResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[14] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1555,9 +1554,11 @@ type OrderRecordsDetailRequest struct { func (x *OrderRecordsDetailRequest) Reset() { *x = OrderRecordsDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsDetailRequest) String() string { @@ -1567,8 +1568,8 @@ func (x *OrderRecordsDetailRequest) String() string { func (*OrderRecordsDetailRequest) ProtoMessage() {} func (x *OrderRecordsDetailRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[15] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1615,9 +1616,11 @@ type OrderRecordsDetailResponse struct { func (x *OrderRecordsDetailResponse) Reset() { *x = OrderRecordsDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *OrderRecordsDetailResponse) String() string { @@ -1627,8 +1630,8 @@ func (x *OrderRecordsDetailResponse) String() string { func (*OrderRecordsDetailResponse) ProtoMessage() {} func (x *OrderRecordsDetailResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[16] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1677,9 +1680,11 @@ type ValueAddBundleProfile struct { func (x *ValueAddBundleProfile) Reset() { *x = ValueAddBundleProfile{} - mi := &file_pb_bundle_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleProfile) String() string { @@ -1689,8 +1694,8 @@ func (x *ValueAddBundleProfile) String() string { func (*ValueAddBundleProfile) ProtoMessage() {} func (x *ValueAddBundleProfile) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[17] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1785,9 +1790,11 @@ type CreateValueAddBundleRequest struct { func (x *CreateValueAddBundleRequest) Reset() { *x = CreateValueAddBundleRequest{} - mi := &file_pb_bundle_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateValueAddBundleRequest) String() string { @@ -1797,8 +1804,8 @@ func (x *CreateValueAddBundleRequest) String() string { func (*CreateValueAddBundleRequest) ProtoMessage() {} func (x *CreateValueAddBundleRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[18] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[19] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1833,9 +1840,11 @@ type CreateValueAddBundleResponse struct { func (x *CreateValueAddBundleResponse) Reset() { *x = CreateValueAddBundleResponse{} - mi := &file_pb_bundle_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CreateValueAddBundleResponse) String() string { @@ -1845,8 +1854,8 @@ func (x *CreateValueAddBundleResponse) String() string { func (*CreateValueAddBundleResponse) ProtoMessage() {} func (x *CreateValueAddBundleResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[19] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[20] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1902,9 +1911,11 @@ type ValueAddBundleListRequest struct { func (x *ValueAddBundleListRequest) Reset() { *x = ValueAddBundleListRequest{} - mi := &file_pb_bundle_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleListRequest) String() string { @@ -1914,8 +1925,8 @@ func (x *ValueAddBundleListRequest) String() string { func (*ValueAddBundleListRequest) ProtoMessage() {} func (x *ValueAddBundleListRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[20] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1968,9 +1979,11 @@ type ValueAddBundleListResponse struct { func (x *ValueAddBundleListResponse) Reset() { *x = ValueAddBundleListResponse{} - mi := &file_pb_bundle_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleListResponse) String() string { @@ -1980,8 +1993,8 @@ func (x *ValueAddBundleListResponse) String() string { func (*ValueAddBundleListResponse) ProtoMessage() {} func (x *ValueAddBundleListResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[21] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2062,9 +2075,11 @@ type ValueAddBundleDetailRequest struct { func (x *ValueAddBundleDetailRequest) Reset() { *x = ValueAddBundleDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleDetailRequest) String() string { @@ -2074,8 +2089,8 @@ func (x *ValueAddBundleDetailRequest) String() string { func (*ValueAddBundleDetailRequest) ProtoMessage() {} func (x *ValueAddBundleDetailRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[22] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[23] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2109,9 +2124,11 @@ type ValueAddBundleDetailResponse struct { func (x *ValueAddBundleDetailResponse) Reset() { *x = ValueAddBundleDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddBundleDetailResponse) String() string { @@ -2121,8 +2138,8 @@ func (x *ValueAddBundleDetailResponse) String() string { func (*ValueAddBundleDetailResponse) ProtoMessage() {} func (x *ValueAddBundleDetailResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[23] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[24] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2168,9 +2185,11 @@ type FinancialConfirmationRequest struct { func (x *FinancialConfirmationRequest) Reset() { *x = FinancialConfirmationRequest{} - mi := &file_pb_bundle_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *FinancialConfirmationRequest) String() string { @@ -2180,8 +2199,8 @@ func (x *FinancialConfirmationRequest) String() string { func (*FinancialConfirmationRequest) ProtoMessage() {} func (x *FinancialConfirmationRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[24] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2204,7 +2223,7 @@ func (x *FinancialConfirmationRequest) GetOrderNo() string { } // ****************************************************新增值服务*********************** -//增值服务 +// 增值服务 type ValueAddService struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2218,9 +2237,11 @@ type ValueAddService struct { func (x *ValueAddService) Reset() { *x = ValueAddService{} - mi := &file_pb_bundle_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddService) String() string { @@ -2230,8 +2251,8 @@ func (x *ValueAddService) String() string { func (*ValueAddService) ProtoMessage() {} func (x *ValueAddService) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[25] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[26] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2294,9 +2315,11 @@ type ValueAddServiceLang struct { func (x *ValueAddServiceLang) Reset() { *x = ValueAddServiceLang{} - mi := &file_pb_bundle_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceLang) String() string { @@ -2306,8 +2329,8 @@ func (x *ValueAddServiceLang) String() string { func (*ValueAddServiceLang) ProtoMessage() {} func (x *ValueAddServiceLang) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[26] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[27] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2399,7 +2422,7 @@ func (x *ValueAddServiceLang) GetOptions() []*ValueAddPriceOptions { return nil } -//增值服务价格选项 +// 增值服务价格选项 type ValueAddPriceOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2413,9 +2436,11 @@ type ValueAddPriceOptions struct { func (x *ValueAddPriceOptions) Reset() { *x = ValueAddPriceOptions{} - mi := &file_pb_bundle_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddPriceOptions) String() string { @@ -2425,8 +2450,8 @@ func (x *ValueAddPriceOptions) String() string { func (*ValueAddPriceOptions) ProtoMessage() {} func (x *ValueAddPriceOptions) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[27] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2469,7 +2494,7 @@ func (x *ValueAddPriceOptions) GetPrice() string { return "" } -//增值服务列表 +// 增值服务列表 type ValueAddServiceListRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2483,9 +2508,11 @@ type ValueAddServiceListRequest struct { func (x *ValueAddServiceListRequest) Reset() { *x = ValueAddServiceListRequest{} - mi := &file_pb_bundle_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceListRequest) String() string { @@ -2495,8 +2522,8 @@ func (x *ValueAddServiceListRequest) String() string { func (*ValueAddServiceListRequest) ProtoMessage() {} func (x *ValueAddServiceListRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[28] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[29] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2551,9 +2578,11 @@ type ValueAddServiceListResponse struct { func (x *ValueAddServiceListResponse) Reset() { *x = ValueAddServiceListResponse{} - mi := &file_pb_bundle_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceListResponse) String() string { @@ -2563,8 +2592,8 @@ func (x *ValueAddServiceListResponse) String() string { func (*ValueAddServiceListResponse) ProtoMessage() {} func (x *ValueAddServiceListResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[29] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[30] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2600,7 +2629,7 @@ func (x *ValueAddServiceListResponse) GetValueAddServiceList() []*ValueAddServic return nil } -//增值服务详情 +// 增值服务详情 type ValueAddServiceDetailRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2612,9 +2641,11 @@ type ValueAddServiceDetailRequest struct { func (x *ValueAddServiceDetailRequest) Reset() { *x = ValueAddServiceDetailRequest{} - mi := &file_pb_bundle_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceDetailRequest) String() string { @@ -2624,8 +2655,8 @@ func (x *ValueAddServiceDetailRequest) String() string { func (*ValueAddServiceDetailRequest) ProtoMessage() {} func (x *ValueAddServiceDetailRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[30] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[31] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2665,9 +2696,11 @@ type ValueAddServiceDetailResponse struct { func (x *ValueAddServiceDetailResponse) Reset() { *x = ValueAddServiceDetailResponse{} - mi := &file_pb_bundle_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *ValueAddServiceDetailResponse) String() string { @@ -2677,8 +2710,8 @@ func (x *ValueAddServiceDetailResponse) String() string { func (*ValueAddServiceDetailResponse) ProtoMessage() {} func (x *ValueAddServiceDetailResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[31] - if x != nil { + mi := &file_pb_bundle_proto_msgTypes[32] + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2720,13 +2753,14 @@ type BundleExtendRequest struct { AvailableDurationAdditional uint32 `protobuf:"varint,6,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional,omitempty"` Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` AssociatedorderNumber string `protobuf:"bytes,8,opt,name=associatedorderNumber,proto3" json:"associatedorderNumber,omitempty"` - OperatorId int64 `protobuf:"varint,9,opt,name=operatorId,proto3" json:"operatorId,omitempty"` + OperatorName string `protobuf:"bytes,9,opt,name=operatorName,proto3" json:"operatorName,omitempty"` + OperatorPhoneNumber string `protobuf:"bytes,10,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` } func (x *BundleExtendRequest) Reset() { *x = BundleExtendRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[32] + mi := &file_pb_bundle_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2739,7 +2773,7 @@ func (x *BundleExtendRequest) String() string { func (*BundleExtendRequest) ProtoMessage() {} func (x *BundleExtendRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[32] + mi := &file_pb_bundle_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2752,7 +2786,7 @@ func (x *BundleExtendRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BundleExtendRequest.ProtoReflect.Descriptor instead. func (*BundleExtendRequest) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{32} + return file_pb_bundle_proto_rawDescGZIP(), []int{33} } func (x *BundleExtendRequest) GetUserId() int64 { @@ -2811,11 +2845,18 @@ func (x *BundleExtendRequest) GetAssociatedorderNumber() string { return "" } -func (x *BundleExtendRequest) GetOperatorId() int64 { +func (x *BundleExtendRequest) GetOperatorName() string { if x != nil { - return x.OperatorId + return x.OperatorName } - return 0 + return "" +} + +func (x *BundleExtendRequest) GetOperatorPhoneNumber() string { + if x != nil { + return x.OperatorPhoneNumber + } + return "" } type BundleExtendResponse struct { @@ -2827,7 +2868,7 @@ type BundleExtendResponse struct { func (x *BundleExtendResponse) Reset() { *x = BundleExtendResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[33] + mi := &file_pb_bundle_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2840,7 +2881,7 @@ func (x *BundleExtendResponse) String() string { func (*BundleExtendResponse) ProtoMessage() {} func (x *BundleExtendResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[33] + mi := &file_pb_bundle_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2853,7 +2894,7 @@ func (x *BundleExtendResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BundleExtendResponse.ProtoReflect.Descriptor instead. func (*BundleExtendResponse) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{33} + return file_pb_bundle_proto_rawDescGZIP(), []int{34} } type BundleExtendRecordsListRequest struct { @@ -2874,7 +2915,7 @@ type BundleExtendRecordsListRequest struct { func (x *BundleExtendRecordsListRequest) Reset() { *x = BundleExtendRecordsListRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[34] + mi := &file_pb_bundle_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2887,7 +2928,7 @@ func (x *BundleExtendRecordsListRequest) String() string { func (*BundleExtendRecordsListRequest) ProtoMessage() {} func (x *BundleExtendRecordsListRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[34] + mi := &file_pb_bundle_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2900,7 +2941,7 @@ func (x *BundleExtendRecordsListRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BundleExtendRecordsListRequest.ProtoReflect.Descriptor instead. func (*BundleExtendRecordsListRequest) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{34} + return file_pb_bundle_proto_rawDescGZIP(), []int{35} } func (x *BundleExtendRecordsListRequest) GetPage() int32 { @@ -2971,7 +3012,7 @@ type BundleExtendRecordsListResponse struct { func (x *BundleExtendRecordsListResponse) Reset() { *x = BundleExtendRecordsListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[35] + mi := &file_pb_bundle_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2984,7 +3025,7 @@ func (x *BundleExtendRecordsListResponse) String() string { func (*BundleExtendRecordsListResponse) ProtoMessage() {} func (x *BundleExtendRecordsListResponse) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[35] + mi := &file_pb_bundle_proto_msgTypes[36] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2997,7 +3038,7 @@ func (x *BundleExtendRecordsListResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use BundleExtendRecordsListResponse.ProtoReflect.Descriptor instead. func (*BundleExtendRecordsListResponse) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{35} + return file_pb_bundle_proto_rawDescGZIP(), []int{36} } func (x *BundleExtendRecordsListResponse) GetTotal() int64 { @@ -3037,7 +3078,7 @@ type BundleExtendRecordItem struct { func (x *BundleExtendRecordItem) Reset() { *x = BundleExtendRecordItem{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[36] + mi := &file_pb_bundle_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3050,7 +3091,7 @@ func (x *BundleExtendRecordItem) String() string { func (*BundleExtendRecordItem) ProtoMessage() {} func (x *BundleExtendRecordItem) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[36] + mi := &file_pb_bundle_proto_msgTypes[37] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3063,7 +3104,7 @@ func (x *BundleExtendRecordItem) ProtoReflect() protoreflect.Message { // Deprecated: Use BundleExtendRecordItem.ProtoReflect.Descriptor instead. func (*BundleExtendRecordItem) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{36} + return file_pb_bundle_proto_rawDescGZIP(), []int{37} } func (x *BundleExtendRecordItem) GetUserName() string { @@ -3157,117 +3198,20 @@ func (x *BundleExtendRecordItem) GetOperatorPhoneNumber() string { return "" } -type SetBundleBalanceRequest struct { +type GetBundleBalanceReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` - ExpirationTime int64 `protobuf:"varint,2,opt,name=expirationTime,proto3" json:"expirationTime,omitempty"` - BundleName string `protobuf:"bytes,3,opt,name=bundleName,proto3" json:"bundleName,omitempty"` - AccountNumber int32 `protobuf:"varint,4,opt,name=accountNumber,proto3" json:"accountNumber,omitempty"` - VideoNumber int32 `protobuf:"varint,5,opt,name=videoNumber,proto3" json:"videoNumber,omitempty"` - ImageNumber int32 `protobuf:"varint,6,opt,name=imageNumber,proto3" json:"imageNumber,omitempty"` - DataAnalysisNumber int32 `protobuf:"varint,7,opt,name=dataAnalysisNumber,proto3" json:"dataAnalysisNumber,omitempty"` - ExpansionPacksNumber int32 `protobuf:"varint,8,opt,name=expansionPacksNumber,proto3" json:"expansionPacksNumber,omitempty"` + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` + BundleName string `protobuf:"bytes,3,opt,name=bundleName,proto3" json:"bundleName,omitempty"` + ExpiredTimeStart int64 `protobuf:"varint,4,opt,name=expiredTimeStart,proto3" json:"expiredTimeStart,omitempty"` + ExpiredTimeEnd int64 `protobuf:"varint,5,opt,name=expiredTimeEnd,proto3" json:"expiredTimeEnd,omitempty"` } -func (x *SetBundleBalanceRequest) Reset() { - *x = SetBundleBalanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetBundleBalanceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetBundleBalanceRequest) ProtoMessage() {} - -func (x *SetBundleBalanceRequest) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetBundleBalanceRequest.ProtoReflect.Descriptor instead. -func (*SetBundleBalanceRequest) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{37} -} - -func (x *SetBundleBalanceRequest) GetUserId() int32 { - if x != nil { - return x.UserId - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetExpirationTime() int64 { - if x != nil { - return x.ExpirationTime - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetBundleName() string { - if x != nil { - return x.BundleName - } - return "" -} - -func (x *SetBundleBalanceRequest) GetAccountNumber() int32 { - if x != nil { - return x.AccountNumber - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetVideoNumber() int32 { - if x != nil { - return x.VideoNumber - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetImageNumber() int32 { - if x != nil { - return x.ImageNumber - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetDataAnalysisNumber() int32 { - if x != nil { - return x.DataAnalysisNumber - } - return 0 -} - -func (x *SetBundleBalanceRequest) GetExpansionPacksNumber() int32 { - if x != nil { - return x.ExpansionPacksNumber - } - return 0 -} - -type SetBundleBalanceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SetBundleBalanceResponse) Reset() { - *x = SetBundleBalanceResponse{} +func (x *GetBundleBalanceReq) Reset() { + *x = GetBundleBalanceReq{} if protoimpl.UnsafeEnabled { mi := &file_pb_bundle_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3275,13 +3219,13 @@ func (x *SetBundleBalanceResponse) Reset() { } } -func (x *SetBundleBalanceResponse) String() string { +func (x *GetBundleBalanceReq) String() string { return protoimpl.X.MessageStringOf(x) } -func (*SetBundleBalanceResponse) ProtoMessage() {} +func (*GetBundleBalanceReq) ProtoMessage() {} -func (x *SetBundleBalanceResponse) ProtoReflect() protoreflect.Message { +func (x *GetBundleBalanceReq) ProtoReflect() protoreflect.Message { mi := &file_pb_bundle_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -3293,11 +3237,197 @@ func (x *SetBundleBalanceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SetBundleBalanceResponse.ProtoReflect.Descriptor instead. -func (*SetBundleBalanceResponse) Descriptor() ([]byte, []int) { +// Deprecated: Use GetBundleBalanceReq.ProtoReflect.Descriptor instead. +func (*GetBundleBalanceReq) Descriptor() ([]byte, []int) { return file_pb_bundle_proto_rawDescGZIP(), []int{38} } +func (x *GetBundleBalanceReq) GetUserName() string { + if x != nil { + return x.UserName + } + return "" +} + +func (x *GetBundleBalanceReq) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *GetBundleBalanceReq) GetBundleName() string { + if x != nil { + return x.BundleName + } + return "" +} + +func (x *GetBundleBalanceReq) GetExpiredTimeStart() int64 { + if x != nil { + return x.ExpiredTimeStart + } + return 0 +} + +func (x *GetBundleBalanceReq) GetExpiredTimeEnd() int64 { + if x != nil { + return x.ExpiredTimeEnd + } + return 0 +} + +type GetBundleBalanceResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` + UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber,omitempty"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` + BundleName string `protobuf:"bytes,4,opt,name=bundleName,proto3" json:"bundleName,omitempty"` + ExpiredTime int64 `protobuf:"varint,5,opt,name=expiredTime,proto3" json:"expiredTime,omitempty"` + AccountNumber int32 `protobuf:"varint,6,opt,name=accountNumber,proto3" json:"accountNumber,omitempty"` + AccountConsumptionNumber int32 `protobuf:"varint,7,opt,name=accountConsumptionNumber,proto3" json:"accountConsumptionNumber,omitempty"` + VideoNumber int32 `protobuf:"varint,8,opt,name=videoNumber,proto3" json:"videoNumber,omitempty"` + VideoConsumptionNumber int32 `protobuf:"varint,9,opt,name=videoConsumptionNumber,proto3" json:"videoConsumptionNumber,omitempty"` + ImageNumber int32 `protobuf:"varint,10,opt,name=imageNumber,proto3" json:"imageNumber,omitempty"` + ImageConsumptionNumber int32 `protobuf:"varint,11,opt,name=imageConsumptionNumber,proto3" json:"imageConsumptionNumber,omitempty"` + DataAnalysisNumber int32 `protobuf:"varint,12,opt,name=dataAnalysisNumber,proto3" json:"dataAnalysisNumber,omitempty"` + DataAnalysisConsumptionNumber int32 `protobuf:"varint,13,opt,name=dataAnalysisConsumptionNumber,proto3" json:"dataAnalysisConsumptionNumber,omitempty"` + ExpansionPacksNumber int32 `protobuf:"varint,14,opt,name=expansionPacksNumber,proto3" json:"expansionPacksNumber,omitempty"` +} + +func (x *GetBundleBalanceResp) Reset() { + *x = GetBundleBalanceResp{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetBundleBalanceResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetBundleBalanceResp) ProtoMessage() {} + +func (x *GetBundleBalanceResp) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetBundleBalanceResp.ProtoReflect.Descriptor instead. +func (*GetBundleBalanceResp) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{39} +} + +func (x *GetBundleBalanceResp) GetUserName() string { + if x != nil { + return x.UserName + } + return "" +} + +func (x *GetBundleBalanceResp) GetUserPhoneNumber() string { + if x != nil { + return x.UserPhoneNumber + } + return "" +} + +func (x *GetBundleBalanceResp) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *GetBundleBalanceResp) GetBundleName() string { + if x != nil { + return x.BundleName + } + return "" +} + +func (x *GetBundleBalanceResp) GetExpiredTime() int64 { + if x != nil { + return x.ExpiredTime + } + return 0 +} + +func (x *GetBundleBalanceResp) GetAccountNumber() int32 { + if x != nil { + return x.AccountNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetAccountConsumptionNumber() int32 { + if x != nil { + return x.AccountConsumptionNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetVideoNumber() int32 { + if x != nil { + return x.VideoNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetVideoConsumptionNumber() int32 { + if x != nil { + return x.VideoConsumptionNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetImageNumber() int32 { + if x != nil { + return x.ImageNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetImageConsumptionNumber() int32 { + if x != nil { + return x.ImageConsumptionNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetDataAnalysisNumber() int32 { + if x != nil { + return x.DataAnalysisNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetDataAnalysisConsumptionNumber() int32 { + if x != nil { + return x.DataAnalysisConsumptionNumber + } + return 0 +} + +func (x *GetBundleBalanceResp) GetExpansionPacksNumber() int32 { + if x != nil { + return x.ExpansionPacksNumber + } + return 0 +} + var File_pb_bundle_proto protoreflect.FileDescriptor var file_pb_bundle_proto_rawDesc = []byte{ @@ -3623,192 +3753,362 @@ var file_pb_bundle_proto_rawDesc = []byte{ 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x54, - 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, 0x54, 0x69, - 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6d, 0x73, 0x67, 0x22, 0x38, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, - 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x22, 0xa8, - 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0b, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, - 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x0b, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x22, 0xf3, 0x02, 0x0a, 0x13, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, - 0x67, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, - 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, - 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, - 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, - 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x6e, 0x69, - 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x75, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x66, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x50, 0x72, 0x69, 0x63, 0x65, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x6d, - 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, 0x62, 0x6f, - 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x7c, 0x0a, 0x1a, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, - 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x1b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6d, - 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x49, 0x0a, - 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x1c, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, - 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x1d, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x4d, 0x0a, 0x13, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, - 0x61, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x32, 0xa3, 0x0d, 0x0a, 0x06, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, + 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, + 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x02, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, + 0x72, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, + 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6d, 0x73, 0x67, 0x22, 0x31, 0x0a, 0x1b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x22, 0x7d, 0x0a, 0x1c, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x61, 0x79, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x22, 0x38, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, + 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, + 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, + 0x22, 0xa8, 0x01, 0x0a, 0x0f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x0b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x18, 0x04, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x0b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x22, 0xf3, 0x02, 0x0a, 0x13, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, + 0x61, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x73, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, + 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, + 0x70, 0x72, 0x69, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x6f, 0x72, 0x69, + 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0d, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, + 0x12, 0x0a, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, + 0x6e, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, 0x72, 0x69, 0x63, 0x65, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x75, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x50, 0x72, 0x69, 0x63, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x22, 0x66, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x50, 0x72, 0x69, + 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x16, 0x0a, 0x06, 0x73, + 0x79, 0x6d, 0x62, 0x6f, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x79, 0x6d, + 0x62, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x22, 0x7c, 0x0a, 0x1a, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, + 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, + 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x1b, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x10, 0x0a, + 0x03, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, + 0x49, 0x0a, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x4e, 0x0a, 0x1c, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x1a, + 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x1d, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, + 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x4d, + 0x0a, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x52, 0x13, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x41, + 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x22, 0xbf, 0x03, + 0x0a, 0x13, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2c, 0x0a, + 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, + 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x40, 0x0a, 0x1b, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, + 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x72, + 0x65, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, + 0x61, 0x72, 0x6b, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x6f, 0x72, + 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, + 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0c, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, + 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, + 0x16, 0x0a, 0x14, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x82, 0x02, 0x0a, 0x1e, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x1a, + 0x0a, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x08, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x6e, 0x64, 0x54, + 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, + 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, + 0x64, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x6b, 0x0a, 0x1f, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x49, + 0x74, 0x65, 0x6d, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa2, 0x04, 0x0a, 0x16, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, + 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x11, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x28, 0x0a, 0x0f, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0f, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x61, 0x6c, 0x12, 0x2a, 0x0a, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x73, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x26, + 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x61, 0x41, 0x64, 0x64, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x40, 0x0a, 0x1b, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x61, 0x76, 0x61, + 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, + 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x61, + 0x72, 0x6b, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x15, 0x61, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x6f, 0x70, 0x65, 0x72, + 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x13, + 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, + 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xbd, + 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x10, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x22, 0xf6, + 0x04, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, + 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, + 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3a, 0x0a, + 0x18, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x18, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, + 0x76, 0x69, 0x64, 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x76, + 0x69, 0x64, 0x65, 0x6f, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, + 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x73, + 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, + 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, + 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x44, 0x0a, + 0x1d, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, + 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0d, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, + 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x14, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x50, 0x61, 0x63, 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x14, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, + 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xaf, 0x0f, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x44, 0x65, + 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, - 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, - 0x0a, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, - 0x6c, 0x65, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x56, 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x56, 0x32, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, + 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x48, + 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0a, 0x53, 0x61, 0x76, + 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x14, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x56, + 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x32, 0x22, 0x00, + 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x4b, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x13, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, - 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, - 0x74, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, - 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, - 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, - 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, + 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, + 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, - 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x61, - 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, - 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x23, + 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x21, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, + 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, + 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, + 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x13, 0x53, 0x61, 0x76, 0x65, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x13, 0x53, - 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x1a, - 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x1a, 0x14, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x15, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x15, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, + 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x24, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, + 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, + 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x17, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, + 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3823,40 +4123,48 @@ func file_pb_bundle_proto_rawDescGZIP() []byte { return file_pb_bundle_proto_rawDescData } -var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 32) -var file_pb_bundle_proto_goTypes = []any{ - (*CommonResponse)(nil), // 0: bundle.CommonResponse - (*BundleProfile)(nil), // 1: bundle.BundleProfile - (*BundleProfileLang)(nil), // 2: bundle.BundleProfileLang - (*SaveResponse)(nil), // 3: bundle.SaveResponse - (*SelectValueAddService)(nil), // 4: bundle.SelectValueAddService - (*DelBundleRequest)(nil), // 5: bundle.DelBundleRequest - (*BundleListRequest)(nil), // 6: bundle.BundleListRequest - (*BundleListResponse)(nil), // 7: bundle.BundleListResponse - (*BundleDetailRequest)(nil), // 8: bundle.BundleDetailRequest - (*HandShelfRequest)(nil), // 9: bundle.HandShelfRequest - (*BundleDetailResponse)(nil), // 10: bundle.BundleDetailResponse - (*BundleDetailResponseV2)(nil), // 11: bundle.BundleDetailResponseV2 - (*OrderRecord)(nil), // 12: bundle.OrderRecord - (*OrderRecordsRequest)(nil), // 13: bundle.OrderRecordsRequest - (*OrderRecordsResponse)(nil), // 14: bundle.OrderRecordsResponse - (*OrderRecordsDetailRequest)(nil), // 15: bundle.OrderRecordsDetailRequest - (*OrderRecordsDetailResponse)(nil), // 16: bundle.OrderRecordsDetailResponse - (*ValueAddBundleProfile)(nil), // 17: bundle.ValueAddBundleProfile - (*CreateValueAddBundleRequest)(nil), // 18: bundle.CreateValueAddBundleRequest - (*CreateValueAddBundleResponse)(nil), // 19: bundle.CreateValueAddBundleResponse - (*ValueAddBundleListRequest)(nil), // 20: bundle.ValueAddBundleListRequest - (*ValueAddBundleListResponse)(nil), // 21: bundle.ValueAddBundleListResponse - (*ValueAddBundleDetailRequest)(nil), // 22: bundle.ValueAddBundleDetailRequest - (*ValueAddBundleDetailResponse)(nil), // 23: bundle.ValueAddBundleDetailResponse - (*FinancialConfirmationRequest)(nil), // 24: bundle.FinancialConfirmationRequest - (*ValueAddService)(nil), // 25: bundle.ValueAddService - (*ValueAddServiceLang)(nil), // 26: bundle.ValueAddServiceLang - (*ValueAddPriceOptions)(nil), // 27: bundle.ValueAddPriceOptions - (*ValueAddServiceListRequest)(nil), // 28: bundle.ValueAddServiceListRequest - (*ValueAddServiceListResponse)(nil), // 29: bundle.ValueAddServiceListResponse - (*ValueAddServiceDetailRequest)(nil), // 30: bundle.ValueAddServiceDetailRequest - (*ValueAddServiceDetailResponse)(nil), // 31: bundle.ValueAddServiceDetailResponse +var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 40) +var file_pb_bundle_proto_goTypes = []interface{}{ + (*CommonResponse)(nil), // 0: bundle.CommonResponse + (*BundleProfile)(nil), // 1: bundle.BundleProfile + (*BundleProfileLang)(nil), // 2: bundle.BundleProfileLang + (*SaveResponse)(nil), // 3: bundle.SaveResponse + (*SelectValueAddService)(nil), // 4: bundle.SelectValueAddService + (*DelBundleRequest)(nil), // 5: bundle.DelBundleRequest + (*BundleListRequest)(nil), // 6: bundle.BundleListRequest + (*BundleListResponse)(nil), // 7: bundle.BundleListResponse + (*BundleDetailRequest)(nil), // 8: bundle.BundleDetailRequest + (*HandShelfRequest)(nil), // 9: bundle.HandShelfRequest + (*BundleDetailResponse)(nil), // 10: bundle.BundleDetailResponse + (*BundleDetailResponseV2)(nil), // 11: bundle.BundleDetailResponseV2 + (*OrderRecord)(nil), // 12: bundle.OrderRecord + (*PriceOptionsInfo)(nil), // 13: bundle.PriceOptionsInfo + (*OrderRecordsRequest)(nil), // 14: bundle.OrderRecordsRequest + (*OrderRecordsResponse)(nil), // 15: bundle.OrderRecordsResponse + (*OrderRecordsDetailRequest)(nil), // 16: bundle.OrderRecordsDetailRequest + (*OrderRecordsDetailResponse)(nil), // 17: bundle.OrderRecordsDetailResponse + (*ValueAddBundleProfile)(nil), // 18: bundle.ValueAddBundleProfile + (*CreateValueAddBundleRequest)(nil), // 19: bundle.CreateValueAddBundleRequest + (*CreateValueAddBundleResponse)(nil), // 20: bundle.CreateValueAddBundleResponse + (*ValueAddBundleListRequest)(nil), // 21: bundle.ValueAddBundleListRequest + (*ValueAddBundleListResponse)(nil), // 22: bundle.ValueAddBundleListResponse + (*ValueAddBundleDetailRequest)(nil), // 23: bundle.ValueAddBundleDetailRequest + (*ValueAddBundleDetailResponse)(nil), // 24: bundle.ValueAddBundleDetailResponse + (*FinancialConfirmationRequest)(nil), // 25: bundle.FinancialConfirmationRequest + (*ValueAddService)(nil), // 26: bundle.ValueAddService + (*ValueAddServiceLang)(nil), // 27: bundle.ValueAddServiceLang + (*ValueAddPriceOptions)(nil), // 28: bundle.ValueAddPriceOptions + (*ValueAddServiceListRequest)(nil), // 29: bundle.ValueAddServiceListRequest + (*ValueAddServiceListResponse)(nil), // 30: bundle.ValueAddServiceListResponse + (*ValueAddServiceDetailRequest)(nil), // 31: bundle.ValueAddServiceDetailRequest + (*ValueAddServiceDetailResponse)(nil), // 32: bundle.ValueAddServiceDetailResponse + (*BundleExtendRequest)(nil), // 33: bundle.BundleExtendRequest + (*BundleExtendResponse)(nil), // 34: bundle.BundleExtendResponse + (*BundleExtendRecordsListRequest)(nil), // 35: bundle.BundleExtendRecordsListRequest + (*BundleExtendRecordsListResponse)(nil), // 36: bundle.BundleExtendRecordsListResponse + (*BundleExtendRecordItem)(nil), // 37: bundle.BundleExtendRecordItem + (*GetBundleBalanceReq)(nil), // 38: bundle.GetBundleBalanceReq + (*GetBundleBalanceResp)(nil), // 39: bundle.GetBundleBalanceResp } var file_pb_bundle_proto_depIdxs = []int32{ 4, // 0: bundle.BundleProfile.selectValueAddService:type_name -> bundle.SelectValueAddService @@ -3866,61 +4174,69 @@ var file_pb_bundle_proto_depIdxs = []int32{ 1, // 4: bundle.BundleDetailResponse.bundle:type_name -> bundle.BundleProfile 2, // 5: bundle.BundleDetailResponseV2.bundle:type_name -> bundle.BundleProfileLang 4, // 6: bundle.BundleDetailResponseV2.selectValueAddService:type_name -> bundle.SelectValueAddService - 12, // 7: bundle.OrderRecordsResponse.orderRecords:type_name -> bundle.OrderRecord - 12, // 8: bundle.OrderRecordsDetailResponse.orderRecord:type_name -> bundle.OrderRecord - 17, // 9: bundle.ValueAddBundleListResponse.data:type_name -> bundle.ValueAddBundleProfile - 17, // 10: bundle.ValueAddBundleDetailResponse.data:type_name -> bundle.ValueAddBundleProfile - 26, // 11: bundle.ValueAddService.serviceLang:type_name -> bundle.ValueAddServiceLang - 27, // 12: bundle.ValueAddServiceLang.options:type_name -> bundle.ValueAddPriceOptions - 25, // 13: bundle.ValueAddServiceListResponse.valueAddServiceList:type_name -> bundle.ValueAddService - 26, // 14: bundle.ValueAddServiceDetailResponse.valueAddServiceLang:type_name -> bundle.ValueAddServiceLang - 1, // 15: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile - 1, // 16: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile - 5, // 17: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest - 9, // 18: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest - 1, // 19: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile - 6, // 20: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest - 8, // 21: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest - 6, // 22: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest - 8, // 23: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest - 12, // 24: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord - 12, // 25: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord - 12, // 26: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord - 13, // 27: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest - 15, // 28: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest - 24, // 29: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest - 18, // 30: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest - 20, // 31: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest - 22, // 32: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest - 26, // 33: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang - 28, // 34: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest - 30, // 35: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest - 0, // 36: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse - 0, // 37: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse - 0, // 38: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse - 0, // 39: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse - 3, // 40: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse - 7, // 41: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse - 11, // 42: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 - 7, // 43: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse - 10, // 44: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse - 0, // 45: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse - 0, // 46: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse - 0, // 47: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse - 14, // 48: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse - 16, // 49: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse - 0, // 50: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse - 19, // 51: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse - 21, // 52: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse - 23, // 53: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse - 3, // 54: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse - 29, // 55: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse - 31, // 56: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse - 36, // [36:57] is the sub-list for method output_type - 15, // [15:36] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 13, // 7: bundle.OrderRecord.priceOptionsInfo:type_name -> bundle.PriceOptionsInfo + 12, // 8: bundle.OrderRecordsResponse.orderRecords:type_name -> bundle.OrderRecord + 12, // 9: bundle.OrderRecordsDetailResponse.orderRecord:type_name -> bundle.OrderRecord + 18, // 10: bundle.ValueAddBundleListResponse.data:type_name -> bundle.ValueAddBundleProfile + 18, // 11: bundle.ValueAddBundleDetailResponse.data:type_name -> bundle.ValueAddBundleProfile + 27, // 12: bundle.ValueAddService.serviceLang:type_name -> bundle.ValueAddServiceLang + 28, // 13: bundle.ValueAddServiceLang.options:type_name -> bundle.ValueAddPriceOptions + 26, // 14: bundle.ValueAddServiceListResponse.valueAddServiceList:type_name -> bundle.ValueAddService + 27, // 15: bundle.ValueAddServiceDetailResponse.valueAddServiceLang:type_name -> bundle.ValueAddServiceLang + 37, // 16: bundle.BundleExtendRecordsListResponse.data:type_name -> bundle.BundleExtendRecordItem + 1, // 17: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile + 1, // 18: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile + 5, // 19: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest + 9, // 20: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest + 1, // 21: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile + 6, // 22: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest + 8, // 23: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest + 6, // 24: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest + 8, // 25: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest + 12, // 26: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord + 12, // 27: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord + 12, // 28: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord + 14, // 29: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest + 16, // 30: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest + 25, // 31: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest + 19, // 32: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest + 21, // 33: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest + 23, // 34: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest + 27, // 35: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang + 29, // 36: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest + 31, // 37: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest + 33, // 38: bundle.Bundle.BundleExtend:input_type -> bundle.BundleExtendRequest + 35, // 39: bundle.Bundle.BundleExtendRecordsList:input_type -> bundle.BundleExtendRecordsListRequest + 38, // 40: bundle.Bundle.GetBundleBalance:input_type -> bundle.GetBundleBalanceReq + 0, // 41: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse + 0, // 42: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse + 0, // 43: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse + 0, // 44: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse + 3, // 45: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse + 7, // 46: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse + 11, // 47: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 + 7, // 48: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse + 10, // 49: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse + 0, // 50: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse + 0, // 51: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse + 0, // 52: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse + 15, // 53: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse + 17, // 54: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse + 0, // 55: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse + 20, // 56: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse + 22, // 57: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse + 24, // 58: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse + 3, // 59: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse + 30, // 60: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse + 32, // 61: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse + 34, // 62: bundle.Bundle.BundleExtend:output_type -> bundle.BundleExtendResponse + 36, // 63: bundle.Bundle.BundleExtendRecordsList:output_type -> bundle.BundleExtendRecordsListResponse + 39, // 64: bundle.Bundle.GetBundleBalance:output_type -> bundle.GetBundleBalanceResp + 41, // [41:65] is the sub-list for method output_type + 17, // [17:41] is the sub-list for method input_type + 17, // [17:17] is the sub-list for extension type_name + 17, // [17:17] is the sub-list for extension extendee + 0, // [0:17] is the sub-list for field type_name } func init() { file_pb_bundle_proto_init() } @@ -3928,13 +4244,495 @@ func file_pb_bundle_proto_init() { if File_pb_bundle_proto != nil { return } + if !protoimpl.UnsafeEnabled { + file_pb_bundle_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CommonResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleProfileLang); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SaveResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SelectValueAddService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DelBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*HandShelfRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleDetailResponseV2); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecord); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PriceOptionsInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*OrderRecordsDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleProfile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateValueAddBundleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateValueAddBundleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddBundleDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FinancialConfirmationRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddService); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceLang); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddPriceOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceDetailRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValueAddServiceDetailResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordsListRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordsListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleExtendRecordItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBundleBalanceReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetBundleBalanceResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pb_bundle_proto_rawDesc, NumEnums: 0, - NumMessages: 32, + NumMessages: 40, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/bundle/bundle.validator.pb.go b/pb/bundle/bundle.validator.pb.go index ba08238..5110929 100644 --- a/pb/bundle/bundle.validator.pb.go +++ b/pb/bundle/bundle.validator.pb.go @@ -246,9 +246,9 @@ func (this *BundleExtendRecordsListResponse) Validate() error { func (this *BundleExtendRecordItem) Validate() error { return nil } -func (this *SetBundleBalanceRequest) Validate() error { +func (this *GetBundleBalanceReq) Validate() error { return nil } -func (this *SetBundleBalanceResponse) Validate() error { +func (this *GetBundleBalanceResp) Validate() error { return nil } diff --git a/pb/bundle/bundle_triple.pb.go b/pb/bundle/bundle_triple.pb.go index f976a43..214f568 100644 --- a/pb/bundle/bundle_triple.pb.go +++ b/pb/bundle/bundle_triple.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-triple. DO NOT EDIT. // versions: // - protoc-gen-go-triple v1.0.8 -// - protoc v4.24.0--rc1 +// - protoc v3.20.3 // source: pb/bundle.proto package bundle @@ -54,7 +54,7 @@ type BundleClient interface { // 余量管理 BundleExtend(ctx context.Context, in *BundleExtendRequest, opts ...grpc_go.CallOption) (*BundleExtendResponse, common.ErrorWithAttachment) BundleExtendRecordsList(ctx context.Context, in *BundleExtendRecordsListRequest, opts ...grpc_go.CallOption) (*BundleExtendRecordsListResponse, common.ErrorWithAttachment) - SetBundleBalance(ctx context.Context, in *SetBundleBalanceRequest, opts ...grpc_go.CallOption) (*SetBundleBalanceResponse, common.ErrorWithAttachment) + GetBundleBalance(ctx context.Context, in *GetBundleBalanceReq, opts ...grpc_go.CallOption) (*GetBundleBalanceResp, common.ErrorWithAttachment) } type bundleClient struct { @@ -85,7 +85,7 @@ type BundleClientImpl struct { ValueAddServiceDetail func(ctx context.Context, in *ValueAddServiceDetailRequest) (*ValueAddServiceDetailResponse, error) BundleExtend func(ctx context.Context, in *BundleExtendRequest) (*BundleExtendResponse, error) BundleExtendRecordsList func(ctx context.Context, in *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) - SetBundleBalance func(ctx context.Context, in *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) + GetBundleBalance func(ctx context.Context, in *GetBundleBalanceReq) (*GetBundleBalanceResp, error) } func (c *BundleClientImpl) GetDubboStub(cc *triple.TripleConn) BundleClient { @@ -238,10 +238,10 @@ func (c *bundleClient) BundleExtendRecordsList(ctx context.Context, in *BundleEx return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/BundleExtendRecordsList", in, out) } -func (c *bundleClient) SetBundleBalance(ctx context.Context, in *SetBundleBalanceRequest, opts ...grpc_go.CallOption) (*SetBundleBalanceResponse, common.ErrorWithAttachment) { - out := new(SetBundleBalanceResponse) +func (c *bundleClient) GetBundleBalance(ctx context.Context, in *GetBundleBalanceReq, opts ...grpc_go.CallOption) (*GetBundleBalanceResp, common.ErrorWithAttachment) { + out := new(GetBundleBalanceResp) interfaceKey := ctx.Value(constant.InterfaceKey).(string) - return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/SetBundleBalance", in, out) + return out, c.cc.Invoke(ctx, "/"+interfaceKey+"/GetBundleBalance", in, out) } // BundleServer is the server API for Bundle service. @@ -274,7 +274,7 @@ type BundleServer interface { // 余量管理 BundleExtend(context.Context, *BundleExtendRequest) (*BundleExtendResponse, error) BundleExtendRecordsList(context.Context, *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) - SetBundleBalance(context.Context, *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) + GetBundleBalance(context.Context, *GetBundleBalanceReq) (*GetBundleBalanceResp, error) mustEmbedUnimplementedBundleServer() } @@ -352,8 +352,8 @@ func (UnimplementedBundleServer) BundleExtend(context.Context, *BundleExtendRequ func (UnimplementedBundleServer) BundleExtendRecordsList(context.Context, *BundleExtendRecordsListRequest) (*BundleExtendRecordsListResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BundleExtendRecordsList not implemented") } -func (UnimplementedBundleServer) SetBundleBalance(context.Context, *SetBundleBalanceRequest) (*SetBundleBalanceResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetBundleBalance not implemented") +func (UnimplementedBundleServer) GetBundleBalance(context.Context, *GetBundleBalanceReq) (*GetBundleBalanceResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBundleBalance not implemented") } func (s *UnimplementedBundleServer) XXX_SetProxyImpl(impl protocol.Invoker) { s.proxyImpl = impl @@ -1050,8 +1050,8 @@ func _Bundle_BundleExtendRecordsList_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _Bundle_SetBundleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { - in := new(SetBundleBalanceRequest) +func _Bundle_GetBundleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc_go.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBundleBalanceReq) if err := dec(in); err != nil { return nil, err } @@ -1063,7 +1063,7 @@ func _Bundle_SetBundleBalance_Handler(srv interface{}, ctx context.Context, dec for k, v := range md { invAttachment[k] = v } - invo := invocation.NewRPCInvocation("SetBundleBalance", args, invAttachment) + invo := invocation.NewRPCInvocation("GetBundleBalance", args, invAttachment) if interceptor == nil { result := base.XXX_GetProxyImpl().Invoke(ctx, invo) return result, result.Error() @@ -1179,8 +1179,8 @@ var Bundle_ServiceDesc = grpc_go.ServiceDesc{ Handler: _Bundle_BundleExtendRecordsList_Handler, }, { - MethodName: "SetBundleBalance", - Handler: _Bundle_SetBundleBalance_Handler, + MethodName: "GetBundleBalance", + Handler: _Bundle_GetBundleBalance_Handler, }, }, Streams: []grpc_go.StreamDesc{}, diff --git a/pkg/db/mysql.go b/pkg/db/mysql.go index 54f5b76..f7210a3 100644 --- a/pkg/db/mysql.go +++ b/pkg/db/mysql.go @@ -50,6 +50,7 @@ func loadMysqlConn(conn string) *gorm.DB { &model.ValueAddServiceLang{}, &model.BundleToValueAddService{}, &model.BundleOrderValueAdd{}, + &model.BundleExtensionRecords{}, ) if err != nil { From 961dfe7a8e707bfb2382394b3c422d4ded2350a6 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Thu, 12 Jun 2025 18:46:10 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E5=8C=85=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleDao.go | 15 +- internal/logic/bundleLogic.go | 88 ++- internal/model/bundle.go | 4 +- pb/bundle.proto | 9 +- pb/bundle/bundle.pb.go | 1172 ++++++++++++++++-------------- pb/bundle/bundle.validator.pb.go | 12 +- 6 files changed, 728 insertions(+), 572 deletions(-) diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index 18c585f..9560b18 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -427,10 +427,17 @@ func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) ([]mo return res, total, session.Error } -func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, err error) { +func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, total int64, err error) { subQuery := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records"). Select("customer_id, MAX(created_at) as max_created_at"). Group("customer_id") + err = subQuery.Count(&total).Error + if err != nil { + return + } + if req.PageSize != 0 && req.Page != 0 { + subQuery = subQuery.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)) + } app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). Select(` bor.customer_id as user_id, @@ -444,14 +451,18 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalan cw.work_category as work_category, cw.uuid as cw_uuid, bova.uuid as bova_uuid, - cma.user_id as cma_uuid + cma.user_id as cma_uuid, + ber.id as ber_id, + bova.source as oder_source `). Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). Joins("LEFT JOIN fiee_bundle.cast_work cw ON cw.artist_uuid = bor.customer_id AND cw.created_at > UNIX_TIMESTAMP(bor.created_at)"). Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bor.customer_id"). Joins("LEFT JOIN fiee_bundle.cast_media_account cma ON cma.artist_uuid = u.id"). + Joins("LEFT JOIN fiee_bundle.bundle_extension_records ber ON ber.user_id = bor.customer_id"). Where("bor.customer_id != ?", ""). + // Where("") Scan(&data) return } diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index d5393c4..a8d2395 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -1,7 +1,6 @@ package logic import ( - "encoding/json" "errors" "fmt" "micro-bundle/internal/dao" @@ -387,28 +386,33 @@ func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundl } func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { - data, err := dao.GetBundleBalance(req) + // start := time.Now() + // defer func() { + // fmt.Printf("(time.Now().UnixMilli() - start.UnixMilli()): %v\n", (time.Now().UnixMilli() - start.UnixMilli())) + // }() + data, total, err := dao.GetBundleBalance(req) if err != nil { return nil, err } - fmt.Printf("len(data): %v\n", len(data)) - dataByte, _ := json.Marshal(data) - fmt.Print(string(dataByte) + "\n") type userDataDto struct { - UserID int - UserName string - UserPhoneNumber string - BundleName string - ExpirationTime time.Time - BundleStatus string - VideoCap int - ImageCap int - DataAnalysisCap int - AccountCap int + UserID int + UserName string + UserPhoneNumber string + BundleName string + ExpirationTime time.Time + BundleStatus int + VideoCap int + ImageCap int + DataAnalysisCap int + AccountCap int + VideoUsed int + ImageUsed int + DataAnalysisUsed int + AccountUsed int + ExpansionPacksNumber int } usersMap := map[int]*userDataDto{} lo.ForEach(data, func(data model.BundleBalancePo, index int) { - fmt.Printf("data.UserID: %v\n", data.UserID) _, ok := usersMap[data.UserID] if !ok { usersMap[data.UserID] = &userDataDto{ @@ -424,12 +428,15 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalance userData := lo.Filter(data, func(data model.BundleBalancePo, _ int) bool { return data.UserID == user.UserID }) - // 可用量计算 + // 去重bundle_order_value_add.uuid 计算可用量 lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { return data.BovaUUID != nil }), func(data model.BundleBalancePo) string { return *data.BovaUUID }), func(data model.BundleBalancePo, index int) { + if data.OderSource == 3 { + user.ExpansionPacksNumber++ + } logger.Infof("增加数据类型%v(%v),user_id:%v,uuid:%v", data.ServiceType, data.ServiceNum, data.UserID, *data.BovaUUID) switch data.ServiceType { case 1: @@ -440,8 +447,12 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalance user.DataAnalysisCap += data.ServiceNum case 4: user.AccountCap += data.ServiceNum + default: + logger.Warn("不存在的数据类型:", data.ServiceType) } }) + + // 去重work_category.uuid 统计绑定的发布数 lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { return data.CwUUID != nil }), func(data model.BundleBalancePo) string { @@ -450,24 +461,45 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalance logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", data.ServiceType, data.UserID, *data.CwUUID) switch data.WorkCategory { case 1: - user.ImageCap-- + user.ImageUsed++ case 2: - user.VideoCap-- + user.VideoUsed++ default: logger.Warn("不存在的数据类型:", data.WorkCategory) } }) - lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + + // 去重cast_media_account.uuid 统计绑定的账号数 + user.AccountUsed += len(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { return data.CmaUUID != nil }), func(data model.BundleBalancePo) string { return *data.CmaUUID - }), func(data model.BundleBalancePo, index int) { - logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", "account", data.UserID, *data.CmaUUID) - user.AccountCap-- - }) - } + })) - b, _ := json.Marshal(usersMap) - fmt.Print(string(b)) - return nil, nil + // 去重bundle_extension_records.id 统计绑定的账号数 + user.ExpansionPacksNumber += len(lo.UniqBy(userData, func(data model.BundleBalancePo) int { + return data.BerID + })) + } + result := &bundle.GetBundleBalanceResp{} + result.Total = total + result.Data = lo.MapToSlice(usersMap, func(_ int, user *userDataDto) *bundle.BundleBalanceItem { + return &bundle.BundleBalanceItem{ + UserName: user.UserName, + UserPhoneNumber: user.UserPhoneNumber, + BundleName: user.BundleName, + Status: int32(user.BundleStatus), + ExpiredTime: user.ExpirationTime.UnixMilli(), + AccountNumber: int32(user.AccountCap), + AccountConsumptionNumber: int32(user.AccountUsed), + ImageNumber: int32(user.ImageCap), + ImageConsumptionNumber: int32(user.ImageUsed), + VideoNumber: int32(user.VideoCap), + VideoConsumptionNumber: int32(user.VideoUsed), + DataAnalysisNumber: int32(user.DataAnalysisCap), + DataAnalysisConsumptionNumber: int32(user.DataAnalysisUsed), + ExpansionPacksNumber: int32(user.ExpansionPacksNumber), + } + }) + return result, nil } diff --git a/internal/model/bundle.go b/internal/model/bundle.go index 11f67d5..feb3e52 100644 --- a/internal/model/bundle.go +++ b/internal/model/bundle.go @@ -108,11 +108,13 @@ type BundleBalancePo struct { UserPhoneNumber string `gorm:"column:user_phone_nmber"` BundleName string `gorm:"column:bundle_name"` ExpirationTime time.Time `gorm:"column:expired_time"` - BundleStatus string `gorm:"column:bundle_status"` + BundleStatus int `gorm:"column:bundle_status"` ServiceNum int `gorm:"column:service_num"` ServiceType int `gorm:"column:service_type"` WorkCategory int `gorm:"column:work_category"` CwUUID *string `gorm:"column:cw_uuid"` BovaUUID *string `gorm:"column:bova_uuid"` CmaUUID *string `gorm:"column:cma_uuid"` + BerID int `gorm:"column:ber_id"` + OderSource int `gorm:"column:oder_source"` } diff --git a/pb/bundle.proto b/pb/bundle.proto index a82a8a6..5c974aa 100644 --- a/pb/bundle.proto +++ b/pb/bundle.proto @@ -372,9 +372,11 @@ message GetBundleBalanceReq{ string bundleName = 3; int64 expiredTimeStart = 4; int64 expiredTimeEnd = 5; + int32 page = 6; + int32 pageSize = 7; } -message GetBundleBalanceResp{ +message BundleBalanceItem{ string userName = 1; string userPhoneNumber = 2; int32 status = 3; @@ -389,4 +391,9 @@ message GetBundleBalanceResp{ int32 dataAnalysisNumber = 12; int32 dataAnalysisConsumptionNumber = 13; int32 expansionPacksNumber = 14; +} + +message GetBundleBalanceResp{ + int64 total = 1; + repeated BundleBalanceItem data = 2; } \ No newline at end of file diff --git a/pb/bundle/bundle.pb.go b/pb/bundle/bundle.pb.go index 5576830..28d0020 100644 --- a/pb/bundle/bundle.pb.go +++ b/pb/bundle/bundle.pb.go @@ -27,9 +27,9 @@ type CommonResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - OrderNo string `protobuf:"bytes,3,opt,name=orderNo,proto3" json:"orderNo,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid"` + OrderNo string `protobuf:"bytes,3,opt,name=orderNo,proto3" json:"orderNo"` } func (x *CommonResponse) Reset() { @@ -90,24 +90,24 @@ type BundleProfile struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"` - PriceType int64 `protobuf:"varint,4,opt,name=priceType,proto3" json:"priceType,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - Contract string `protobuf:"bytes,6,opt,name=contract,proto3" json:"contract,omitempty"` - Language string `protobuf:"bytes,7,opt,name=language,proto3" json:"language,omitempty"` - CreatedAt string `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - UpdatedAt string `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` - CompanySign string `protobuf:"bytes,10,opt,name=companySign,proto3" json:"companySign,omitempty"` - ContractDuration int64 `protobuf:"varint,11,opt,name=contractDuration,proto3" json:"contractDuration,omitempty"` - BundleCommonUid string `protobuf:"bytes,12,opt,name=bundleCommonUid,proto3" json:"bundleCommonUid,omitempty"` - Sort int64 `protobuf:"varint,13,opt,name=sort,proto3" json:"sort,omitempty"` - BgImg1 string `protobuf:"bytes,14,opt,name=bgImg1,proto3" json:"bgImg1,omitempty"` - BgImg2 string `protobuf:"bytes,15,opt,name=bgImg2,proto3" json:"bgImg2,omitempty"` - ShelfStatus int64 `protobuf:"varint,16,opt,name=shelfStatus,proto3" json:"shelfStatus,omitempty"` // 1 上架 2 下架 - SelectValueAddService []*SelectValueAddService `protobuf:"bytes,17,rep,name=selectValueAddService,json=SelectValueAddService,proto3" json:"selectValueAddService,omitempty"` - BundleProfileLang []*BundleProfileLang `protobuf:"bytes,18,rep,name=bundleProfileLang,proto3" json:"bundleProfileLang,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price"` + PriceType int64 `protobuf:"varint,4,opt,name=priceType,proto3" json:"priceType"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content"` + Contract string `protobuf:"bytes,6,opt,name=contract,proto3" json:"contract"` + Language string `protobuf:"bytes,7,opt,name=language,proto3" json:"language"` + CreatedAt string `protobuf:"bytes,8,opt,name=createdAt,proto3" json:"createdAt"` + UpdatedAt string `protobuf:"bytes,9,opt,name=updatedAt,proto3" json:"updatedAt"` + CompanySign string `protobuf:"bytes,10,opt,name=companySign,proto3" json:"companySign"` + ContractDuration int64 `protobuf:"varint,11,opt,name=contractDuration,proto3" json:"contractDuration"` + BundleCommonUid string `protobuf:"bytes,12,opt,name=bundleCommonUid,proto3" json:"bundleCommonUid"` + Sort int64 `protobuf:"varint,13,opt,name=sort,proto3" json:"sort"` + BgImg1 string `protobuf:"bytes,14,opt,name=bgImg1,proto3" json:"bgImg1"` + BgImg2 string `protobuf:"bytes,15,opt,name=bgImg2,proto3" json:"bgImg2"` + ShelfStatus int64 `protobuf:"varint,16,opt,name=shelfStatus,proto3" json:"shelfStatus"` // 1 上架 2 下架 + SelectValueAddService []*SelectValueAddService `protobuf:"bytes,17,rep,name=selectValueAddService,json=SelectValueAddService,proto3" json:"selectValueAddService"` + BundleProfileLang []*BundleProfileLang `protobuf:"bytes,18,rep,name=bundleProfileLang,proto3" json:"bundleProfileLang"` } func (x *BundleProfile) Reset() { @@ -273,18 +273,18 @@ type BundleProfileLang struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"` - PriceType int64 `protobuf:"varint,4,opt,name=priceType,proto3" json:"priceType,omitempty"` - Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` - Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` - CreatedAt string `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - UpdatedAt string `protobuf:"bytes,8,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` - BgImg1 string `protobuf:"bytes,9,opt,name=bgImg1,proto3" json:"bgImg1,omitempty"` - BgImg2 string `protobuf:"bytes,10,opt,name=bgImg2,proto3" json:"bgImg2,omitempty"` - Sort int64 `protobuf:"varint,11,opt,name=sort,proto3" json:"sort,omitempty"` - ValueAddServiceLang []*ValueAddServiceLang `protobuf:"bytes,12,rep,name=valueAddServiceLang,json=ValueAddServiceLang,proto3" json:"valueAddServiceLang,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"` + Price float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price"` + PriceType int64 `protobuf:"varint,4,opt,name=priceType,proto3" json:"priceType"` + Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content"` + Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language"` + CreatedAt string `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt"` + UpdatedAt string `protobuf:"bytes,8,opt,name=updatedAt,proto3" json:"updatedAt"` + BgImg1 string `protobuf:"bytes,9,opt,name=bgImg1,proto3" json:"bgImg1"` + BgImg2 string `protobuf:"bytes,10,opt,name=bgImg2,proto3" json:"bgImg2"` + Sort int64 `protobuf:"varint,11,opt,name=sort,proto3" json:"sort"` + ValueAddServiceLang []*ValueAddServiceLang `protobuf:"bytes,12,rep,name=valueAddServiceLang,json=ValueAddServiceLang,proto3" json:"valueAddServiceLang"` } func (x *BundleProfileLang) Reset() { @@ -408,9 +408,9 @@ type SaveResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - CancelNum int64 `protobuf:"varint,3,opt,name=cancelNum,proto3" json:"cancelNum,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid"` + CancelNum int64 `protobuf:"varint,3,opt,name=cancelNum,proto3" json:"cancelNum"` } func (x *SaveResponse) Reset() { @@ -471,9 +471,9 @@ type SelectValueAddService struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ValueAddUuid string `protobuf:"bytes,1,opt,name=valueAddUuid,proto3" json:"valueAddUuid,omitempty"` - ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName,omitempty"` - IsDisplay bool `protobuf:"varint,3,opt,name=isDisplay,proto3" json:"isDisplay,omitempty"` + ValueAddUuid string `protobuf:"bytes,1,opt,name=valueAddUuid,proto3" json:"valueAddUuid"` + ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName"` + IsDisplay bool `protobuf:"varint,3,opt,name=isDisplay,proto3" json:"isDisplay"` } func (x *SelectValueAddService) Reset() { @@ -534,7 +534,7 @@ type DelBundleRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` } func (x *DelBundleRequest) Reset() { @@ -581,11 +581,11 @@ type BundleListRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` - Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` + Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content"` + Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language"` } func (x *BundleListRequest) Reset() { @@ -660,8 +660,8 @@ type BundleListResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Bundles []*BundleProfile `protobuf:"bytes,1,rep,name=bundles,proto3" json:"bundles,omitempty"` - Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + Bundles []*BundleProfile `protobuf:"bytes,1,rep,name=bundles,proto3" json:"bundles"` + Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total"` } func (x *BundleListResponse) Reset() { @@ -715,8 +715,8 @@ type BundleDetailRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` //语言 默认zh-CN, zh-CN zh-TW EN de-DE js-JP + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language"` //语言 默认zh-CN, zh-CN zh-TW EN de-DE js-JP } func (x *BundleDetailRequest) Reset() { @@ -770,8 +770,8 @@ type HandShelfRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - ShelfStatus int64 `protobuf:"varint,2,opt,name=shelfStatus,proto3" json:"shelfStatus,omitempty"` // 1 上架 2 下架 + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + ShelfStatus int64 `protobuf:"varint,2,opt,name=shelfStatus,proto3" json:"shelfStatus"` // 1 上架 2 下架 } func (x *HandShelfRequest) Reset() { @@ -825,8 +825,8 @@ type BundleDetailResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Bundle *BundleProfile `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + Bundle *BundleProfile `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } func (x *BundleDetailResponse) Reset() { @@ -880,9 +880,9 @@ type BundleDetailResponseV2 struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Bundle *BundleProfileLang `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"` - SelectValueAddService []*SelectValueAddService `protobuf:"bytes,2,rep,name=selectValueAddService,json=SelectValueAddService,proto3" json:"selectValueAddService,omitempty"` - Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Bundle *BundleProfileLang `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle"` + SelectValueAddService []*SelectValueAddService `protobuf:"bytes,2,rep,name=selectValueAddService,json=SelectValueAddService,proto3" json:"selectValueAddService"` + Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg"` } func (x *BundleDetailResponseV2) Reset() { @@ -943,42 +943,42 @@ type OrderRecord struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - BundleUuid string `protobuf:"bytes,2,opt,name=bundleUuid,proto3" json:"bundleUuid,omitempty"` - CustomerID string `protobuf:"bytes,3,opt,name=customerID,proto3" json:"customerID,omitempty"` - CustomerNum string `protobuf:"bytes,4,opt,name=customerNum,proto3" json:"customerNum,omitempty"` - CustomerName string `protobuf:"bytes,5,opt,name=customerName,proto3" json:"customerName,omitempty"` - Amount float32 `protobuf:"fixed32,6,opt,name=amount,proto3" json:"amount,omitempty"` - AmountType int64 `protobuf:"varint,7,opt,name=amountType,proto3" json:"amountType,omitempty"` - SignContract string `protobuf:"bytes,8,opt,name=signContract,proto3" json:"signContract,omitempty"` - Signature string `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature,omitempty"` - SignedTime string `protobuf:"bytes,10,opt,name=signedTime,proto3" json:"signedTime,omitempty"` - PayType int64 `protobuf:"varint,11,opt,name=payType,proto3" json:"payType,omitempty"` - PayTime string `protobuf:"bytes,12,opt,name=payTime,proto3" json:"payTime,omitempty"` - CheckoutSessionId string `protobuf:"bytes,13,opt,name=checkoutSessionId,proto3" json:"checkoutSessionId,omitempty"` - CheckoutSessionUrl string `protobuf:"bytes,14,opt,name=checkoutSessionUrl,proto3" json:"checkoutSessionUrl,omitempty"` - Status int64 `protobuf:"varint,15,opt,name=status,proto3" json:"status,omitempty"` - OrderNo string `protobuf:"bytes,16,opt,name=orderNo,proto3" json:"orderNo,omitempty"` - BundleName string `protobuf:"bytes,17,opt,name=bundleName,proto3" json:"bundleName,omitempty"` - ContractNo string `protobuf:"bytes,18,opt,name=contractNo,proto3" json:"contractNo,omitempty"` - ValueAddBundleUuid string `protobuf:"bytes,19,opt,name=valueAddBundleUuid,proto3" json:"valueAddBundleUuid,omitempty"` //增值套餐UUID - ValueAddBundleAmount float32 `protobuf:"fixed32,20,opt,name=valueAddBundleAmount,proto3" json:"valueAddBundleAmount,omitempty"` //增值套餐金额 - ValueAddOriginalPrice float32 `protobuf:"fixed32,21,opt,name=valueAddOriginalPrice,proto3" json:"valueAddOriginalPrice,omitempty"` //原单价 - ValueAddDiscountPrice float32 `protobuf:"fixed32,22,opt,name=valueAddDiscountPrice,proto3" json:"valueAddDiscountPrice,omitempty"` //优惠单价 - ValueAddSavedAmount float32 `protobuf:"fixed32,23,opt,name=valueAddSavedAmount,proto3" json:"valueAddSavedAmount,omitempty"` //节省金额 - Num int32 `protobuf:"varint,24,opt,name=num,proto3" json:"num,omitempty"` - TotalAmount float32 `protobuf:"fixed32,25,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"` //总金额 - Sex string `protobuf:"bytes,26,opt,name=sex,proto3" json:"sex,omitempty"` - Nationality string `protobuf:"bytes,27,opt,name=nationality,proto3" json:"nationality,omitempty"` - CertificatePicture string `protobuf:"bytes,28,opt,name=certificatePicture,proto3" json:"certificatePicture,omitempty"` - PlaceOfResidence string `protobuf:"bytes,29,opt,name=placeOfResidence,proto3" json:"placeOfResidence,omitempty"` - GroupPhoto string `protobuf:"bytes,30,opt,name=groupPhoto,proto3" json:"groupPhoto,omitempty"` - BundleCommonUid string `protobuf:"bytes,31,opt,name=bundleCommonUid,proto3" json:"bundleCommonUid,omitempty"` - AddBundleCommonUid string `protobuf:"bytes,32,opt,name=addBundleCommonUid,proto3" json:"addBundleCommonUid,omitempty"` - FinancialConfirmation int32 `protobuf:"varint,33,opt,name=financialConfirmation,proto3" json:"financialConfirmation,omitempty"` - TelNum string `protobuf:"bytes,34,opt,name=telNum,proto3" json:"telNum,omitempty"` - Language string `protobuf:"bytes,35,opt,name=language,proto3" json:"language,omitempty"` - PriceOptionsInfo []*PriceOptionsInfo `protobuf:"bytes,36,rep,name=priceOptionsInfo,proto3" json:"priceOptionsInfo,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + BundleUuid string `protobuf:"bytes,2,opt,name=bundleUuid,proto3" json:"bundleUuid"` + CustomerID string `protobuf:"bytes,3,opt,name=customerID,proto3" json:"customerID"` + CustomerNum string `protobuf:"bytes,4,opt,name=customerNum,proto3" json:"customerNum"` + CustomerName string `protobuf:"bytes,5,opt,name=customerName,proto3" json:"customerName"` + Amount float32 `protobuf:"fixed32,6,opt,name=amount,proto3" json:"amount"` + AmountType int64 `protobuf:"varint,7,opt,name=amountType,proto3" json:"amountType"` + SignContract string `protobuf:"bytes,8,opt,name=signContract,proto3" json:"signContract"` + Signature string `protobuf:"bytes,9,opt,name=signature,proto3" json:"signature"` + SignedTime string `protobuf:"bytes,10,opt,name=signedTime,proto3" json:"signedTime"` + PayType int64 `protobuf:"varint,11,opt,name=payType,proto3" json:"payType"` + PayTime string `protobuf:"bytes,12,opt,name=payTime,proto3" json:"payTime"` + CheckoutSessionId string `protobuf:"bytes,13,opt,name=checkoutSessionId,proto3" json:"checkoutSessionId"` + CheckoutSessionUrl string `protobuf:"bytes,14,opt,name=checkoutSessionUrl,proto3" json:"checkoutSessionUrl"` + Status int64 `protobuf:"varint,15,opt,name=status,proto3" json:"status"` + OrderNo string `protobuf:"bytes,16,opt,name=orderNo,proto3" json:"orderNo"` + BundleName string `protobuf:"bytes,17,opt,name=bundleName,proto3" json:"bundleName"` + ContractNo string `protobuf:"bytes,18,opt,name=contractNo,proto3" json:"contractNo"` + ValueAddBundleUuid string `protobuf:"bytes,19,opt,name=valueAddBundleUuid,proto3" json:"valueAddBundleUuid"` //增值套餐UUID + ValueAddBundleAmount float32 `protobuf:"fixed32,20,opt,name=valueAddBundleAmount,proto3" json:"valueAddBundleAmount"` //增值套餐金额 + ValueAddOriginalPrice float32 `protobuf:"fixed32,21,opt,name=valueAddOriginalPrice,proto3" json:"valueAddOriginalPrice"` //原单价 + ValueAddDiscountPrice float32 `protobuf:"fixed32,22,opt,name=valueAddDiscountPrice,proto3" json:"valueAddDiscountPrice"` //优惠单价 + ValueAddSavedAmount float32 `protobuf:"fixed32,23,opt,name=valueAddSavedAmount,proto3" json:"valueAddSavedAmount"` //节省金额 + Num int32 `protobuf:"varint,24,opt,name=num,proto3" json:"num"` + TotalAmount float32 `protobuf:"fixed32,25,opt,name=totalAmount,proto3" json:"totalAmount"` //总金额 + Sex string `protobuf:"bytes,26,opt,name=sex,proto3" json:"sex"` + Nationality string `protobuf:"bytes,27,opt,name=nationality,proto3" json:"nationality"` + CertificatePicture string `protobuf:"bytes,28,opt,name=certificatePicture,proto3" json:"certificatePicture"` + PlaceOfResidence string `protobuf:"bytes,29,opt,name=placeOfResidence,proto3" json:"placeOfResidence"` + GroupPhoto string `protobuf:"bytes,30,opt,name=groupPhoto,proto3" json:"groupPhoto"` + BundleCommonUid string `protobuf:"bytes,31,opt,name=bundleCommonUid,proto3" json:"bundleCommonUid"` + AddBundleCommonUid string `protobuf:"bytes,32,opt,name=addBundleCommonUid,proto3" json:"addBundleCommonUid"` + FinancialConfirmation int32 `protobuf:"varint,33,opt,name=financialConfirmation,proto3" json:"financialConfirmation"` + TelNum string `protobuf:"bytes,34,opt,name=telNum,proto3" json:"telNum"` + Language string `protobuf:"bytes,35,opt,name=language,proto3" json:"language"` + PriceOptionsInfo []*PriceOptionsInfo `protobuf:"bytes,36,rep,name=priceOptionsInfo,proto3" json:"priceOptionsInfo"` } func (x *OrderRecord) Reset() { @@ -1270,8 +1270,8 @@ type PriceOptionsInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - ValueUid string `protobuf:"bytes,2,opt,name=valueUid,proto3" json:"valueUid,omitempty"` + Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + ValueUid string `protobuf:"bytes,2,opt,name=valueUid,proto3" json:"valueUid"` } func (x *PriceOptionsInfo) Reset() { @@ -1325,22 +1325,22 @@ type OrderRecordsRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - CustomerNum string `protobuf:"bytes,3,opt,name=customerNum,proto3" json:"customerNum,omitempty"` - CustomerName string `protobuf:"bytes,4,opt,name=customerName,proto3" json:"customerName,omitempty"` - BundleUUID string `protobuf:"bytes,5,opt,name=bundleUUID,proto3" json:"bundleUUID,omitempty"` - OrderNo string `protobuf:"bytes,6,opt,name=orderNo,proto3" json:"orderNo,omitempty"` - Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` - BundleName string `protobuf:"bytes,8,opt,name=bundleName,proto3" json:"bundleName,omitempty"` - StartSignedTime string `protobuf:"bytes,9,opt,name=startSignedTime,proto3" json:"startSignedTime,omitempty"` - EndSignedTime string `protobuf:"bytes,10,opt,name=endSignedTime,proto3" json:"endSignedTime,omitempty"` - StartPayTime string `protobuf:"bytes,11,opt,name=startPayTime,proto3" json:"startPayTime,omitempty"` - EndPayTime string `protobuf:"bytes,12,opt,name=endPayTime,proto3" json:"endPayTime,omitempty"` - CustomerID string `protobuf:"bytes,13,opt,name=customerID,proto3" json:"customerID,omitempty"` - IsHaveValueAdd int64 `protobuf:"varint,14,opt,name=isHaveValueAdd,proto3" json:"isHaveValueAdd,omitempty"` //有无增值选项 - FinancialConfirmation int32 `protobuf:"varint,15,opt,name=financialConfirmation,proto3" json:"financialConfirmation,omitempty"` - TelNum string `protobuf:"bytes,16,opt,name=telNum,proto3" json:"telNum,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize"` + CustomerNum string `protobuf:"bytes,3,opt,name=customerNum,proto3" json:"customerNum"` + CustomerName string `protobuf:"bytes,4,opt,name=customerName,proto3" json:"customerName"` + BundleUUID string `protobuf:"bytes,5,opt,name=bundleUUID,proto3" json:"bundleUUID"` + OrderNo string `protobuf:"bytes,6,opt,name=orderNo,proto3" json:"orderNo"` + Status int64 `protobuf:"varint,7,opt,name=status,proto3" json:"status"` + BundleName string `protobuf:"bytes,8,opt,name=bundleName,proto3" json:"bundleName"` + StartSignedTime string `protobuf:"bytes,9,opt,name=startSignedTime,proto3" json:"startSignedTime"` + EndSignedTime string `protobuf:"bytes,10,opt,name=endSignedTime,proto3" json:"endSignedTime"` + StartPayTime string `protobuf:"bytes,11,opt,name=startPayTime,proto3" json:"startPayTime"` + EndPayTime string `protobuf:"bytes,12,opt,name=endPayTime,proto3" json:"endPayTime"` + CustomerID string `protobuf:"bytes,13,opt,name=customerID,proto3" json:"customerID"` + IsHaveValueAdd int64 `protobuf:"varint,14,opt,name=isHaveValueAdd,proto3" json:"isHaveValueAdd"` //有无增值选项 + FinancialConfirmation int32 `protobuf:"varint,15,opt,name=financialConfirmation,proto3" json:"financialConfirmation"` + TelNum string `protobuf:"bytes,16,opt,name=telNum,proto3" json:"telNum"` } func (x *OrderRecordsRequest) Reset() { @@ -1492,8 +1492,8 @@ type OrderRecordsResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrderRecords []*OrderRecord `protobuf:"bytes,1,rep,name=orderRecords,proto3" json:"orderRecords,omitempty"` - Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + OrderRecords []*OrderRecord `protobuf:"bytes,1,rep,name=orderRecords,proto3" json:"orderRecords"` + Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total"` } func (x *OrderRecordsResponse) Reset() { @@ -1547,9 +1547,9 @@ type OrderRecordsDetailRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - OrderNo string `protobuf:"bytes,2,opt,name=orderNo,proto3" json:"orderNo,omitempty"` - CustomerID string `protobuf:"bytes,3,opt,name=customerID,proto3" json:"customerID,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + OrderNo string `protobuf:"bytes,2,opt,name=orderNo,proto3" json:"orderNo"` + CustomerID string `protobuf:"bytes,3,opt,name=customerID,proto3" json:"customerID"` } func (x *OrderRecordsDetailRequest) Reset() { @@ -1610,8 +1610,8 @@ type OrderRecordsDetailResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrderRecord *OrderRecord `protobuf:"bytes,1,opt,name=orderRecord,proto3" json:"orderRecord,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` + OrderRecord *OrderRecord `protobuf:"bytes,1,opt,name=orderRecord,proto3" json:"orderRecord"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` } func (x *OrderRecordsDetailResponse) Reset() { @@ -1666,16 +1666,16 @@ type ValueAddBundleProfile struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` - OriginalPrice float32 `protobuf:"fixed32,3,opt,name=originalPrice,proto3" json:"originalPrice,omitempty"` - DiscountPrice float32 `protobuf:"fixed32,4,opt,name=discountPrice,proto3" json:"discountPrice,omitempty"` - TotalPrice float32 `protobuf:"fixed32,6,opt,name=totalPrice,proto3" json:"totalPrice,omitempty"` - SavedAmount float32 `protobuf:"fixed32,7,opt,name=savedAmount,proto3" json:"savedAmount,omitempty"` - DiscountPriceStatus bool `protobuf:"varint,8,opt,name=discountPriceStatus,proto3" json:"discountPriceStatus,omitempty"` - Choose bool `protobuf:"varint,9,opt,name=choose,proto3" json:"choose,omitempty"` - Status bool `protobuf:"varint,10,opt,name=status,proto3" json:"status,omitempty"` - AddBundleCommonUid string `protobuf:"bytes,11,opt,name=addBundleCommonUid,proto3" json:"addBundleCommonUid,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num"` + OriginalPrice float32 `protobuf:"fixed32,3,opt,name=originalPrice,proto3" json:"originalPrice"` + DiscountPrice float32 `protobuf:"fixed32,4,opt,name=discountPrice,proto3" json:"discountPrice"` + TotalPrice float32 `protobuf:"fixed32,6,opt,name=totalPrice,proto3" json:"totalPrice"` + SavedAmount float32 `protobuf:"fixed32,7,opt,name=savedAmount,proto3" json:"savedAmount"` + DiscountPriceStatus bool `protobuf:"varint,8,opt,name=discountPriceStatus,proto3" json:"discountPriceStatus"` + Choose bool `protobuf:"varint,9,opt,name=choose,proto3" json:"choose"` + Status bool `protobuf:"varint,10,opt,name=status,proto3" json:"status"` + AddBundleCommonUid string `protobuf:"bytes,11,opt,name=addBundleCommonUid,proto3" json:"addBundleCommonUid"` } func (x *ValueAddBundleProfile) Reset() { @@ -1785,7 +1785,7 @@ type CreateValueAddBundleRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Num int32 `protobuf:"varint,1,opt,name=num,proto3" json:"num,omitempty"` + Num int32 `protobuf:"varint,1,opt,name=num,proto3" json:"num"` } func (x *CreateValueAddBundleRequest) Reset() { @@ -1832,10 +1832,10 @@ type CreateValueAddBundleResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - TotalPrice float32 `protobuf:"fixed32,2,opt,name=totalPrice,proto3" json:"totalPrice,omitempty"` - SavedAmount float32 `protobuf:"fixed32,3,opt,name=savedAmount,proto3" json:"savedAmount,omitempty"` - Msg string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + TotalPrice float32 `protobuf:"fixed32,2,opt,name=totalPrice,proto3" json:"totalPrice"` + SavedAmount float32 `protobuf:"fixed32,3,opt,name=savedAmount,proto3" json:"savedAmount"` + Msg string `protobuf:"bytes,4,opt,name=msg,proto3" json:"msg"` } func (x *CreateValueAddBundleResponse) Reset() { @@ -1904,9 +1904,9 @@ type ValueAddBundleListRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` - BundleUuid string `protobuf:"bytes,2,opt,name=bundleUuid,proto3" json:"bundleUuid,omitempty"` - PriceType int32 `protobuf:"varint,3,opt,name=priceType,proto3" json:"priceType,omitempty"` + UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId"` + BundleUuid string `protobuf:"bytes,2,opt,name=bundleUuid,proto3" json:"bundleUuid"` + PriceType int32 `protobuf:"varint,3,opt,name=priceType,proto3" json:"priceType"` } func (x *ValueAddBundleListRequest) Reset() { @@ -1967,14 +1967,14 @@ type ValueAddBundleListResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OriginalPrice float32 `protobuf:"fixed32,1,opt,name=originalPrice,proto3" json:"originalPrice,omitempty"` - Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` - Data []*ValueAddBundleProfile `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` - Status bool `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"` - Num int32 `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"` - Price float32 `protobuf:"fixed32,6,opt,name=price,proto3" json:"price,omitempty"` - OrderNo bool `protobuf:"varint,7,opt,name=orderNo,proto3" json:"orderNo,omitempty"` - Msg string `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg,omitempty"` + OriginalPrice float32 `protobuf:"fixed32,1,opt,name=originalPrice,proto3" json:"originalPrice"` + Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total"` + Data []*ValueAddBundleProfile `protobuf:"bytes,3,rep,name=data,proto3" json:"data"` + Status bool `protobuf:"varint,4,opt,name=status,proto3" json:"status"` + Num int32 `protobuf:"varint,5,opt,name=num,proto3" json:"num"` + Price float32 `protobuf:"fixed32,6,opt,name=price,proto3" json:"price"` + OrderNo bool `protobuf:"varint,7,opt,name=orderNo,proto3" json:"orderNo"` + Msg string `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg"` } func (x *ValueAddBundleListResponse) Reset() { @@ -2070,7 +2070,7 @@ type ValueAddBundleDetailRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` } func (x *ValueAddBundleDetailRequest) Reset() { @@ -2117,9 +2117,9 @@ type ValueAddBundleDetailResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Data *ValueAddBundleProfile `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - PayTime string `protobuf:"bytes,2,opt,name=payTime,proto3" json:"payTime,omitempty"` - Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` + Data *ValueAddBundleProfile `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` + PayTime string `protobuf:"bytes,2,opt,name=payTime,proto3" json:"payTime"` + Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg"` } func (x *ValueAddBundleDetailResponse) Reset() { @@ -2180,7 +2180,7 @@ type FinancialConfirmationRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - OrderNo string `protobuf:"bytes,1,opt,name=orderNo,proto3" json:"orderNo,omitempty"` + OrderNo string `protobuf:"bytes,1,opt,name=orderNo,proto3" json:"orderNo"` } func (x *FinancialConfirmationRequest) Reset() { @@ -2229,10 +2229,10 @@ type ValueAddService struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName,omitempty"` //服务名称 - ServiceType int32 `protobuf:"varint,3,opt,name=serviceType,proto3" json:"serviceType,omitempty"` - ServiceLang []*ValueAddServiceLang `protobuf:"bytes,4,rep,name=serviceLang,proto3" json:"serviceLang,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName"` //服务名称 + ServiceType int32 `protobuf:"varint,3,opt,name=serviceType,proto3" json:"serviceType"` + ServiceLang []*ValueAddServiceLang `protobuf:"bytes,4,rep,name=serviceLang,proto3" json:"serviceLang"` } func (x *ValueAddService) Reset() { @@ -2300,17 +2300,17 @@ type ValueAddServiceLang struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName,omitempty"` //服务名称 - ServiceType int32 `protobuf:"varint,3,opt,name=serviceType,proto3" json:"serviceType,omitempty"` - PriceMode int32 `protobuf:"varint,4,opt,name=priceMode,proto3" json:"priceMode,omitempty"` - OriginalPrice string `protobuf:"bytes,5,opt,name=originalPrice,proto3" json:"originalPrice,omitempty"` - Unit string `protobuf:"bytes,6,opt,name=unit,proto3" json:"unit,omitempty"` - PriceType int64 `protobuf:"varint,7,opt,name=priceType,proto3" json:"priceType,omitempty"` - Language string `protobuf:"bytes,8,opt,name=language,proto3" json:"language,omitempty"` - CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - UpdatedAt string `protobuf:"bytes,10,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` - Options []*ValueAddPriceOptions `protobuf:"bytes,12,rep,name=options,proto3" json:"options,omitempty"` + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + ServiceName string `protobuf:"bytes,2,opt,name=serviceName,proto3" json:"serviceName"` //服务名称 + ServiceType int32 `protobuf:"varint,3,opt,name=serviceType,proto3" json:"serviceType"` + PriceMode int32 `protobuf:"varint,4,opt,name=priceMode,proto3" json:"priceMode"` + OriginalPrice string `protobuf:"bytes,5,opt,name=originalPrice,proto3" json:"originalPrice"` + Unit string `protobuf:"bytes,6,opt,name=unit,proto3" json:"unit"` + PriceType int64 `protobuf:"varint,7,opt,name=priceType,proto3" json:"priceType"` + Language string `protobuf:"bytes,8,opt,name=language,proto3" json:"language"` + CreatedAt string `protobuf:"bytes,9,opt,name=createdAt,proto3" json:"createdAt"` + UpdatedAt string `protobuf:"bytes,10,opt,name=updatedAt,proto3" json:"updatedAt"` + Options []*ValueAddPriceOptions `protobuf:"bytes,12,rep,name=options,proto3" json:"options"` } func (x *ValueAddServiceLang) Reset() { @@ -2428,10 +2428,10 @@ type ValueAddPriceOptions struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` - Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` - Price string `protobuf:"bytes,4,opt,name=price,proto3" json:"price,omitempty"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` + Num int32 `protobuf:"varint,2,opt,name=num,proto3" json:"num"` + Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol"` + Price string `protobuf:"bytes,4,opt,name=price,proto3" json:"price"` } func (x *ValueAddPriceOptions) Reset() { @@ -2500,10 +2500,10 @@ type ValueAddServiceListRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name"` + Language string `protobuf:"bytes,4,opt,name=language,proto3" json:"language"` } func (x *ValueAddServiceListRequest) Reset() { @@ -2571,9 +2571,9 @@ type ValueAddServiceListResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - ValueAddServiceList []*ValueAddService `protobuf:"bytes,3,rep,name=valueAddServiceList,proto3" json:"valueAddServiceList,omitempty"` + Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg"` + ValueAddServiceList []*ValueAddService `protobuf:"bytes,3,rep,name=valueAddServiceList,proto3" json:"valueAddServiceList"` } func (x *ValueAddServiceListResponse) Reset() { @@ -2635,8 +2635,8 @@ type ValueAddServiceDetailRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` - Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"` //语言 默认zh-CN, zh-CN zh-TW EN de-DE js-JP + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid"` + Language string `protobuf:"bytes,2,opt,name=language,proto3" json:"language"` //语言 默认zh-CN, zh-CN zh-TW EN de-DE js-JP } func (x *ValueAddServiceDetailRequest) Reset() { @@ -2690,8 +2690,8 @@ type ValueAddServiceDetailResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` - ValueAddServiceLang *ValueAddServiceLang `protobuf:"bytes,2,opt,name=valueAddServiceLang,proto3" json:"valueAddServiceLang,omitempty"` + Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"` + ValueAddServiceLang *ValueAddServiceLang `protobuf:"bytes,2,opt,name=valueAddServiceLang,proto3" json:"valueAddServiceLang"` } func (x *ValueAddServiceDetailResponse) Reset() { @@ -2745,16 +2745,16 @@ type BundleExtendRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` - AccountAdditional uint32 `protobuf:"varint,2,opt,name=accountAdditional,proto3" json:"accountAdditional,omitempty"` - VideoAdditional uint32 `protobuf:"varint,3,opt,name=videoAdditional,proto3" json:"videoAdditional,omitempty"` - ImagesAdditional uint32 `protobuf:"varint,4,opt,name=imagesAdditional,proto3" json:"imagesAdditional,omitempty"` - DataAdditional uint32 `protobuf:"varint,5,opt,name=dataAdditional,proto3" json:"dataAdditional,omitempty"` - AvailableDurationAdditional uint32 `protobuf:"varint,6,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional,omitempty"` - Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty"` - AssociatedorderNumber string `protobuf:"bytes,8,opt,name=associatedorderNumber,proto3" json:"associatedorderNumber,omitempty"` - OperatorName string `protobuf:"bytes,9,opt,name=operatorName,proto3" json:"operatorName,omitempty"` - OperatorPhoneNumber string `protobuf:"bytes,10,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` + UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId"` + AccountAdditional uint32 `protobuf:"varint,2,opt,name=accountAdditional,proto3" json:"accountAdditional"` + VideoAdditional uint32 `protobuf:"varint,3,opt,name=videoAdditional,proto3" json:"videoAdditional"` + ImagesAdditional uint32 `protobuf:"varint,4,opt,name=imagesAdditional,proto3" json:"imagesAdditional"` + DataAdditional uint32 `protobuf:"varint,5,opt,name=dataAdditional,proto3" json:"dataAdditional"` + AvailableDurationAdditional uint32 `protobuf:"varint,6,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional"` + Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark"` + AssociatedorderNumber string `protobuf:"bytes,8,opt,name=associatedorderNumber,proto3" json:"associatedorderNumber"` + OperatorName string `protobuf:"bytes,9,opt,name=operatorName,proto3" json:"operatorName"` + OperatorPhoneNumber string `protobuf:"bytes,10,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber"` } func (x *BundleExtendRequest) Reset() { @@ -2902,14 +2902,14 @@ type BundleExtendRecordsListRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` - PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` - User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` - Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator,omitempty"` - StartTime uint64 `protobuf:"varint,5,opt,name=startTime,proto3" json:"startTime,omitempty"` - EndTime uint64 `protobuf:"varint,6,opt,name=endTime,proto3" json:"endTime,omitempty"` - Type uint32 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` - AssociatedOrderNumber string `protobuf:"bytes,8,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber,omitempty"` + Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize"` + User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user"` + Operator string `protobuf:"bytes,4,opt,name=operator,proto3" json:"operator"` + StartTime uint64 `protobuf:"varint,5,opt,name=startTime,proto3" json:"startTime"` + EndTime uint64 `protobuf:"varint,6,opt,name=endTime,proto3" json:"endTime"` + Type uint32 `protobuf:"varint,7,opt,name=type,proto3" json:"type"` + AssociatedOrderNumber string `protobuf:"bytes,8,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber"` } func (x *BundleExtendRecordsListRequest) Reset() { @@ -3005,8 +3005,8 @@ type BundleExtendRecordsListResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Data []*BundleExtendRecordItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Data []*BundleExtendRecordItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data"` } func (x *BundleExtendRecordsListResponse) Reset() { @@ -3060,19 +3060,19 @@ type BundleExtendRecordItem struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` - UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber,omitempty"` - AccountAdditional uint32 `protobuf:"varint,3,opt,name=accountAdditional,proto3" json:"accountAdditional,omitempty"` - VideoAdditional uint32 `protobuf:"varint,4,opt,name=videoAdditional,proto3" json:"videoAdditional,omitempty"` - ImagesAdditional uint32 `protobuf:"varint,5,opt,name=imagesAdditional,proto3" json:"imagesAdditional,omitempty"` - DataAdditional uint32 `protobuf:"varint,6,opt,name=dataAdditional,proto3" json:"dataAdditional,omitempty"` - AvailableDurationAdditional uint32 `protobuf:"varint,7,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional,omitempty"` - Type int32 `protobuf:"varint,8,opt,name=type,proto3" json:"type,omitempty"` - CreatedAt uint64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt,omitempty"` - Remark string `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark,omitempty"` - AssociatedOrderNumber string `protobuf:"bytes,11,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber,omitempty"` - OperatorName string `protobuf:"bytes,12,opt,name=operatorName,proto3" json:"operatorName,omitempty"` - OperatorPhoneNumber string `protobuf:"bytes,13,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber,omitempty"` + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName"` + UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber"` + AccountAdditional uint32 `protobuf:"varint,3,opt,name=accountAdditional,proto3" json:"accountAdditional"` + VideoAdditional uint32 `protobuf:"varint,4,opt,name=videoAdditional,proto3" json:"videoAdditional"` + ImagesAdditional uint32 `protobuf:"varint,5,opt,name=imagesAdditional,proto3" json:"imagesAdditional"` + DataAdditional uint32 `protobuf:"varint,6,opt,name=dataAdditional,proto3" json:"dataAdditional"` + AvailableDurationAdditional uint32 `protobuf:"varint,7,opt,name=availableDurationAdditional,proto3" json:"availableDurationAdditional"` + Type int32 `protobuf:"varint,8,opt,name=type,proto3" json:"type"` + CreatedAt uint64 `protobuf:"varint,9,opt,name=createdAt,proto3" json:"createdAt"` + Remark string `protobuf:"bytes,10,opt,name=remark,proto3" json:"remark"` + AssociatedOrderNumber string `protobuf:"bytes,11,opt,name=associatedOrderNumber,proto3" json:"associatedOrderNumber"` + OperatorName string `protobuf:"bytes,12,opt,name=operatorName,proto3" json:"operatorName"` + OperatorPhoneNumber string `protobuf:"bytes,13,opt,name=operatorPhoneNumber,proto3" json:"operatorPhoneNumber"` } func (x *BundleExtendRecordItem) Reset() { @@ -3203,11 +3203,13 @@ type GetBundleBalanceReq struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` - Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` - BundleName string `protobuf:"bytes,3,opt,name=bundleName,proto3" json:"bundleName,omitempty"` - ExpiredTimeStart int64 `protobuf:"varint,4,opt,name=expiredTimeStart,proto3" json:"expiredTimeStart,omitempty"` - ExpiredTimeEnd int64 `protobuf:"varint,5,opt,name=expiredTimeEnd,proto3" json:"expiredTimeEnd,omitempty"` + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName"` + Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status"` + BundleName string `protobuf:"bytes,3,opt,name=bundleName,proto3" json:"bundleName"` + ExpiredTimeStart int64 `protobuf:"varint,4,opt,name=expiredTimeStart,proto3" json:"expiredTimeStart"` + ExpiredTimeEnd int64 `protobuf:"varint,5,opt,name=expiredTimeEnd,proto3" json:"expiredTimeEnd"` + Page int32 `protobuf:"varint,6,opt,name=page,proto3" json:"page"` + PageSize int32 `protobuf:"varint,7,opt,name=pageSize,proto3" json:"pageSize"` } func (x *GetBundleBalanceReq) Reset() { @@ -3277,31 +3279,184 @@ func (x *GetBundleBalanceReq) GetExpiredTimeEnd() int64 { return 0 } +func (x *GetBundleBalanceReq) GetPage() int32 { + if x != nil { + return x.Page + } + return 0 +} + +func (x *GetBundleBalanceReq) GetPageSize() int32 { + if x != nil { + return x.PageSize + } + return 0 +} + +type BundleBalanceItem struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName"` + UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber"` + Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status"` + BundleName string `protobuf:"bytes,4,opt,name=bundleName,proto3" json:"bundleName"` + ExpiredTime int64 `protobuf:"varint,5,opt,name=expiredTime,proto3" json:"expiredTime"` + AccountNumber int32 `protobuf:"varint,6,opt,name=accountNumber,proto3" json:"accountNumber"` + AccountConsumptionNumber int32 `protobuf:"varint,7,opt,name=accountConsumptionNumber,proto3" json:"accountConsumptionNumber"` + VideoNumber int32 `protobuf:"varint,8,opt,name=videoNumber,proto3" json:"videoNumber"` + VideoConsumptionNumber int32 `protobuf:"varint,9,opt,name=videoConsumptionNumber,proto3" json:"videoConsumptionNumber"` + ImageNumber int32 `protobuf:"varint,10,opt,name=imageNumber,proto3" json:"imageNumber"` + ImageConsumptionNumber int32 `protobuf:"varint,11,opt,name=imageConsumptionNumber,proto3" json:"imageConsumptionNumber"` + DataAnalysisNumber int32 `protobuf:"varint,12,opt,name=dataAnalysisNumber,proto3" json:"dataAnalysisNumber"` + DataAnalysisConsumptionNumber int32 `protobuf:"varint,13,opt,name=dataAnalysisConsumptionNumber,proto3" json:"dataAnalysisConsumptionNumber"` + ExpansionPacksNumber int32 `protobuf:"varint,14,opt,name=expansionPacksNumber,proto3" json:"expansionPacksNumber"` +} + +func (x *BundleBalanceItem) Reset() { + *x = BundleBalanceItem{} + if protoimpl.UnsafeEnabled { + mi := &file_pb_bundle_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *BundleBalanceItem) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BundleBalanceItem) ProtoMessage() {} + +func (x *BundleBalanceItem) ProtoReflect() protoreflect.Message { + mi := &file_pb_bundle_proto_msgTypes[39] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BundleBalanceItem.ProtoReflect.Descriptor instead. +func (*BundleBalanceItem) Descriptor() ([]byte, []int) { + return file_pb_bundle_proto_rawDescGZIP(), []int{39} +} + +func (x *BundleBalanceItem) GetUserName() string { + if x != nil { + return x.UserName + } + return "" +} + +func (x *BundleBalanceItem) GetUserPhoneNumber() string { + if x != nil { + return x.UserPhoneNumber + } + return "" +} + +func (x *BundleBalanceItem) GetStatus() int32 { + if x != nil { + return x.Status + } + return 0 +} + +func (x *BundleBalanceItem) GetBundleName() string { + if x != nil { + return x.BundleName + } + return "" +} + +func (x *BundleBalanceItem) GetExpiredTime() int64 { + if x != nil { + return x.ExpiredTime + } + return 0 +} + +func (x *BundleBalanceItem) GetAccountNumber() int32 { + if x != nil { + return x.AccountNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetAccountConsumptionNumber() int32 { + if x != nil { + return x.AccountConsumptionNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetVideoNumber() int32 { + if x != nil { + return x.VideoNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetVideoConsumptionNumber() int32 { + if x != nil { + return x.VideoConsumptionNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetImageNumber() int32 { + if x != nil { + return x.ImageNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetImageConsumptionNumber() int32 { + if x != nil { + return x.ImageConsumptionNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetDataAnalysisNumber() int32 { + if x != nil { + return x.DataAnalysisNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetDataAnalysisConsumptionNumber() int32 { + if x != nil { + return x.DataAnalysisConsumptionNumber + } + return 0 +} + +func (x *BundleBalanceItem) GetExpansionPacksNumber() int32 { + if x != nil { + return x.ExpansionPacksNumber + } + return 0 +} + type GetBundleBalanceResp struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - UserName string `protobuf:"bytes,1,opt,name=userName,proto3" json:"userName,omitempty"` - UserPhoneNumber string `protobuf:"bytes,2,opt,name=userPhoneNumber,proto3" json:"userPhoneNumber,omitempty"` - Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` - BundleName string `protobuf:"bytes,4,opt,name=bundleName,proto3" json:"bundleName,omitempty"` - ExpiredTime int64 `protobuf:"varint,5,opt,name=expiredTime,proto3" json:"expiredTime,omitempty"` - AccountNumber int32 `protobuf:"varint,6,opt,name=accountNumber,proto3" json:"accountNumber,omitempty"` - AccountConsumptionNumber int32 `protobuf:"varint,7,opt,name=accountConsumptionNumber,proto3" json:"accountConsumptionNumber,omitempty"` - VideoNumber int32 `protobuf:"varint,8,opt,name=videoNumber,proto3" json:"videoNumber,omitempty"` - VideoConsumptionNumber int32 `protobuf:"varint,9,opt,name=videoConsumptionNumber,proto3" json:"videoConsumptionNumber,omitempty"` - ImageNumber int32 `protobuf:"varint,10,opt,name=imageNumber,proto3" json:"imageNumber,omitempty"` - ImageConsumptionNumber int32 `protobuf:"varint,11,opt,name=imageConsumptionNumber,proto3" json:"imageConsumptionNumber,omitempty"` - DataAnalysisNumber int32 `protobuf:"varint,12,opt,name=dataAnalysisNumber,proto3" json:"dataAnalysisNumber,omitempty"` - DataAnalysisConsumptionNumber int32 `protobuf:"varint,13,opt,name=dataAnalysisConsumptionNumber,proto3" json:"dataAnalysisConsumptionNumber,omitempty"` - ExpansionPacksNumber int32 `protobuf:"varint,14,opt,name=expansionPacksNumber,proto3" json:"expansionPacksNumber,omitempty"` + Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"` + Data []*BundleBalanceItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data"` } func (x *GetBundleBalanceResp) Reset() { *x = GetBundleBalanceResp{} if protoimpl.UnsafeEnabled { - mi := &file_pb_bundle_proto_msgTypes[39] + mi := &file_pb_bundle_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3314,7 +3469,7 @@ func (x *GetBundleBalanceResp) String() string { func (*GetBundleBalanceResp) ProtoMessage() {} func (x *GetBundleBalanceResp) ProtoReflect() protoreflect.Message { - mi := &file_pb_bundle_proto_msgTypes[39] + mi := &file_pb_bundle_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3327,105 +3482,21 @@ func (x *GetBundleBalanceResp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetBundleBalanceResp.ProtoReflect.Descriptor instead. func (*GetBundleBalanceResp) Descriptor() ([]byte, []int) { - return file_pb_bundle_proto_rawDescGZIP(), []int{39} + return file_pb_bundle_proto_rawDescGZIP(), []int{40} } -func (x *GetBundleBalanceResp) GetUserName() string { +func (x *GetBundleBalanceResp) GetTotal() int64 { if x != nil { - return x.UserName - } - return "" -} - -func (x *GetBundleBalanceResp) GetUserPhoneNumber() string { - if x != nil { - return x.UserPhoneNumber - } - return "" -} - -func (x *GetBundleBalanceResp) GetStatus() int32 { - if x != nil { - return x.Status + return x.Total } return 0 } -func (x *GetBundleBalanceResp) GetBundleName() string { +func (x *GetBundleBalanceResp) GetData() []*BundleBalanceItem { if x != nil { - return x.BundleName + return x.Data } - return "" -} - -func (x *GetBundleBalanceResp) GetExpiredTime() int64 { - if x != nil { - return x.ExpiredTime - } - return 0 -} - -func (x *GetBundleBalanceResp) GetAccountNumber() int32 { - if x != nil { - return x.AccountNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetAccountConsumptionNumber() int32 { - if x != nil { - return x.AccountConsumptionNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetVideoNumber() int32 { - if x != nil { - return x.VideoNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetVideoConsumptionNumber() int32 { - if x != nil { - return x.VideoConsumptionNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetImageNumber() int32 { - if x != nil { - return x.ImageNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetImageConsumptionNumber() int32 { - if x != nil { - return x.ImageConsumptionNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetDataAnalysisNumber() int32 { - if x != nil { - return x.DataAnalysisNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetDataAnalysisConsumptionNumber() int32 { - if x != nil { - return x.DataAnalysisConsumptionNumber - } - return 0 -} - -func (x *GetBundleBalanceResp) GetExpansionPacksNumber() int32 { - if x != nil { - return x.ExpansionPacksNumber - } - return 0 + return nil } var File_pb_bundle_proto protoreflect.FileDescriptor @@ -3932,7 +4003,7 @@ var file_pb_bundle_proto_rawDesc = []byte{ 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x6f, 0x70, 0x65, 0x72, 0x61, - 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xbd, + 0x74, 0x6f, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xed, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, @@ -3944,171 +4015,180 @@ var file_pb_bundle_proto_rawDesc = []byte{ 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, - 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x22, 0xf6, - 0x04, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, - 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, - 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, - 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, - 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3a, 0x0a, - 0x18, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x18, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x76, 0x69, 0x64, - 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, - 0x76, 0x69, 0x64, 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x76, - 0x69, 0x64, 0x65, 0x6f, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x76, 0x69, 0x64, - 0x65, 0x6f, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, - 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, - 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, - 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x73, - 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, - 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, - 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x44, 0x0a, - 0x1d, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, - 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0d, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x1d, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, - 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, - 0x62, 0x65, 0x72, 0x12, 0x32, 0x0a, 0x14, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x50, 0x61, 0x63, 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x14, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, - 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x32, 0xaf, 0x0f, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61, + 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0xf3, + 0x04, 0x0a, 0x11, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x49, 0x74, 0x65, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x28, 0x0a, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, + 0x62, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x75, 0x73, 0x65, 0x72, 0x50, + 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x54, 0x69, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, + 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x18, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x18, 0x61, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x0b, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x4e, + 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x76, 0x69, 0x64, + 0x65, 0x6f, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x76, 0x69, 0x64, 0x65, + 0x6f, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x16, 0x76, 0x69, 0x64, 0x65, 0x6f, 0x43, + 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x62, + 0x65, 0x72, 0x12, 0x36, 0x0a, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x75, + 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x16, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x2e, 0x0a, 0x12, 0x64, 0x61, + 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, + 0x79, 0x73, 0x69, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x1d, 0x64, 0x61, + 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0d, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x1d, 0x64, 0x61, 0x74, 0x61, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x73, 0x69, 0x73, 0x43, + 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, + 0x12, 0x32, 0x0a, 0x14, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, + 0x6b, 0x73, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, + 0x65, 0x78, 0x70, 0x61, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x63, 0x6b, 0x73, 0x4e, 0x75, + 0x6d, 0x62, 0x65, 0x72, 0x22, 0x5b, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, + 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, + 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x32, 0xaf, 0x0f, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x3f, 0x0a, 0x0c, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, + 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, + 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, + 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, + 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, + 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, + 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, + 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x0c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x44, 0x65, - 0x6c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3f, 0x0a, 0x09, 0x48, 0x61, 0x6e, 0x64, - 0x53, 0x68, 0x65, 0x6c, 0x66, 0x12, 0x18, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x48, - 0x61, 0x6e, 0x64, 0x53, 0x68, 0x65, 0x6c, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0a, 0x53, 0x61, 0x76, - 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x14, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x47, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, - 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x56, - 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x65, 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x0a, 0x53, 0x61, 0x76, 0x65, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x12, 0x15, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, + 0x12, 0x47, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x32, + 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x0e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x56, 0x32, 0x12, 0x1b, 0x2e, 0x62, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x32, 0x22, 0x00, 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, + 0x6c, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x56, 0x32, 0x22, 0x00, - 0x12, 0x45, 0x0a, 0x0a, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, - 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x1a, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, - 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, + 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x42, + 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x42, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, + 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x42, 0x79, 0x4f, 0x72, 0x64, + 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x13, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, + 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x4f, 0x72, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, - 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x21, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, - 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, - 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, + 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, + 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x73, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x21, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x46, 0x69, 0x6e, + 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x61, 0x6e, 0x63, 0x69, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, + 0x64, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5d, 0x0a, + 0x12, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, + 0x69, 0x73, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x62, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x63, 0x0a, 0x14, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x42, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, - 0x64, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4a, 0x0a, 0x13, 0x53, 0x61, 0x76, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1b, + 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x00, 0x12, 0x4a, 0x0a, 0x13, 0x53, 0x61, 0x76, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, + 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x1a, 0x14, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, + 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, + 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, + 0x66, 0x0a, 0x15, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x24, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x61, 0x6e, 0x67, 0x1a, 0x14, 0x2e, 0x62, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x53, 0x61, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x00, 0x12, 0x60, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x15, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, - 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x24, - 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x41, 0x64, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, - 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, - 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x17, 0x42, 0x75, - 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, - 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, - 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, - 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, - 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4b, 0x0a, 0x0c, 0x42, 0x75, 0x6e, 0x64, 0x6c, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, + 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x17, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, + 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x26, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, + 0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x63, + 0x6f, 0x72, 0x64, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1b, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, + 0x47, 0x65, 0x74, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x2e, 0x47, 0x65, 0x74, + 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x22, 0x00, 0x42, 0x0a, 0x5a, 0x08, 0x2e, 0x2f, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4123,7 +4203,7 @@ func file_pb_bundle_proto_rawDescGZIP() []byte { return file_pb_bundle_proto_rawDescData } -var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 40) +var file_pb_bundle_proto_msgTypes = make([]protoimpl.MessageInfo, 41) var file_pb_bundle_proto_goTypes = []interface{}{ (*CommonResponse)(nil), // 0: bundle.CommonResponse (*BundleProfile)(nil), // 1: bundle.BundleProfile @@ -4164,7 +4244,8 @@ var file_pb_bundle_proto_goTypes = []interface{}{ (*BundleExtendRecordsListResponse)(nil), // 36: bundle.BundleExtendRecordsListResponse (*BundleExtendRecordItem)(nil), // 37: bundle.BundleExtendRecordItem (*GetBundleBalanceReq)(nil), // 38: bundle.GetBundleBalanceReq - (*GetBundleBalanceResp)(nil), // 39: bundle.GetBundleBalanceResp + (*BundleBalanceItem)(nil), // 39: bundle.BundleBalanceItem + (*GetBundleBalanceResp)(nil), // 40: bundle.GetBundleBalanceResp } var file_pb_bundle_proto_depIdxs = []int32{ 4, // 0: bundle.BundleProfile.selectValueAddService:type_name -> bundle.SelectValueAddService @@ -4184,59 +4265,60 @@ var file_pb_bundle_proto_depIdxs = []int32{ 26, // 14: bundle.ValueAddServiceListResponse.valueAddServiceList:type_name -> bundle.ValueAddService 27, // 15: bundle.ValueAddServiceDetailResponse.valueAddServiceLang:type_name -> bundle.ValueAddServiceLang 37, // 16: bundle.BundleExtendRecordsListResponse.data:type_name -> bundle.BundleExtendRecordItem - 1, // 17: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile - 1, // 18: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile - 5, // 19: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest - 9, // 20: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest - 1, // 21: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile - 6, // 22: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest - 8, // 23: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest - 6, // 24: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest - 8, // 25: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest - 12, // 26: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord - 12, // 27: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord - 12, // 28: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord - 14, // 29: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest - 16, // 30: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest - 25, // 31: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest - 19, // 32: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest - 21, // 33: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest - 23, // 34: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest - 27, // 35: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang - 29, // 36: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest - 31, // 37: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest - 33, // 38: bundle.Bundle.BundleExtend:input_type -> bundle.BundleExtendRequest - 35, // 39: bundle.Bundle.BundleExtendRecordsList:input_type -> bundle.BundleExtendRecordsListRequest - 38, // 40: bundle.Bundle.GetBundleBalance:input_type -> bundle.GetBundleBalanceReq - 0, // 41: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse - 0, // 42: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse - 0, // 43: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse - 0, // 44: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse - 3, // 45: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse - 7, // 46: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse - 11, // 47: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 - 7, // 48: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse - 10, // 49: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse - 0, // 50: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse - 0, // 51: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse - 0, // 52: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse - 15, // 53: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse - 17, // 54: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse - 0, // 55: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse - 20, // 56: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse - 22, // 57: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse - 24, // 58: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse - 3, // 59: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse - 30, // 60: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse - 32, // 61: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse - 34, // 62: bundle.Bundle.BundleExtend:output_type -> bundle.BundleExtendResponse - 36, // 63: bundle.Bundle.BundleExtendRecordsList:output_type -> bundle.BundleExtendRecordsListResponse - 39, // 64: bundle.Bundle.GetBundleBalance:output_type -> bundle.GetBundleBalanceResp - 41, // [41:65] is the sub-list for method output_type - 17, // [17:41] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 39, // 17: bundle.GetBundleBalanceResp.data:type_name -> bundle.BundleBalanceItem + 1, // 18: bundle.Bundle.CreateBundle:input_type -> bundle.BundleProfile + 1, // 19: bundle.Bundle.UpdateBundle:input_type -> bundle.BundleProfile + 5, // 20: bundle.Bundle.DeleteBundle:input_type -> bundle.DelBundleRequest + 9, // 21: bundle.Bundle.HandShelf:input_type -> bundle.HandShelfRequest + 1, // 22: bundle.Bundle.SaveBundle:input_type -> bundle.BundleProfile + 6, // 23: bundle.Bundle.BundleListV2:input_type -> bundle.BundleListRequest + 8, // 24: bundle.Bundle.BundleDetailV2:input_type -> bundle.BundleDetailRequest + 6, // 25: bundle.Bundle.BundleList:input_type -> bundle.BundleListRequest + 8, // 26: bundle.Bundle.BundleDetail:input_type -> bundle.BundleDetailRequest + 12, // 27: bundle.Bundle.CreateOrderRecord:input_type -> bundle.OrderRecord + 12, // 28: bundle.Bundle.UpdateOrderRecord:input_type -> bundle.OrderRecord + 12, // 29: bundle.Bundle.UpdateOrderRecordByOrderNo:input_type -> bundle.OrderRecord + 14, // 30: bundle.Bundle.OrderRecordsList:input_type -> bundle.OrderRecordsRequest + 16, // 31: bundle.Bundle.OrderRecordsDetail:input_type -> bundle.OrderRecordsDetailRequest + 25, // 32: bundle.Bundle.UpdateFinancialConfirmationStatus:input_type -> bundle.FinancialConfirmationRequest + 19, // 33: bundle.Bundle.CreateValueAddBundle:input_type -> bundle.CreateValueAddBundleRequest + 21, // 34: bundle.Bundle.ValueAddBundleList:input_type -> bundle.ValueAddBundleListRequest + 23, // 35: bundle.Bundle.ValueAddBundleDetail:input_type -> bundle.ValueAddBundleDetailRequest + 27, // 36: bundle.Bundle.SaveValueAddService:input_type -> bundle.ValueAddServiceLang + 29, // 37: bundle.Bundle.ValueAddServiceList:input_type -> bundle.ValueAddServiceListRequest + 31, // 38: bundle.Bundle.ValueAddServiceDetail:input_type -> bundle.ValueAddServiceDetailRequest + 33, // 39: bundle.Bundle.BundleExtend:input_type -> bundle.BundleExtendRequest + 35, // 40: bundle.Bundle.BundleExtendRecordsList:input_type -> bundle.BundleExtendRecordsListRequest + 38, // 41: bundle.Bundle.GetBundleBalance:input_type -> bundle.GetBundleBalanceReq + 0, // 42: bundle.Bundle.CreateBundle:output_type -> bundle.CommonResponse + 0, // 43: bundle.Bundle.UpdateBundle:output_type -> bundle.CommonResponse + 0, // 44: bundle.Bundle.DeleteBundle:output_type -> bundle.CommonResponse + 0, // 45: bundle.Bundle.HandShelf:output_type -> bundle.CommonResponse + 3, // 46: bundle.Bundle.SaveBundle:output_type -> bundle.SaveResponse + 7, // 47: bundle.Bundle.BundleListV2:output_type -> bundle.BundleListResponse + 11, // 48: bundle.Bundle.BundleDetailV2:output_type -> bundle.BundleDetailResponseV2 + 7, // 49: bundle.Bundle.BundleList:output_type -> bundle.BundleListResponse + 10, // 50: bundle.Bundle.BundleDetail:output_type -> bundle.BundleDetailResponse + 0, // 51: bundle.Bundle.CreateOrderRecord:output_type -> bundle.CommonResponse + 0, // 52: bundle.Bundle.UpdateOrderRecord:output_type -> bundle.CommonResponse + 0, // 53: bundle.Bundle.UpdateOrderRecordByOrderNo:output_type -> bundle.CommonResponse + 15, // 54: bundle.Bundle.OrderRecordsList:output_type -> bundle.OrderRecordsResponse + 17, // 55: bundle.Bundle.OrderRecordsDetail:output_type -> bundle.OrderRecordsDetailResponse + 0, // 56: bundle.Bundle.UpdateFinancialConfirmationStatus:output_type -> bundle.CommonResponse + 20, // 57: bundle.Bundle.CreateValueAddBundle:output_type -> bundle.CreateValueAddBundleResponse + 22, // 58: bundle.Bundle.ValueAddBundleList:output_type -> bundle.ValueAddBundleListResponse + 24, // 59: bundle.Bundle.ValueAddBundleDetail:output_type -> bundle.ValueAddBundleDetailResponse + 3, // 60: bundle.Bundle.SaveValueAddService:output_type -> bundle.SaveResponse + 30, // 61: bundle.Bundle.ValueAddServiceList:output_type -> bundle.ValueAddServiceListResponse + 32, // 62: bundle.Bundle.ValueAddServiceDetail:output_type -> bundle.ValueAddServiceDetailResponse + 34, // 63: bundle.Bundle.BundleExtend:output_type -> bundle.BundleExtendResponse + 36, // 64: bundle.Bundle.BundleExtendRecordsList:output_type -> bundle.BundleExtendRecordsListResponse + 40, // 65: bundle.Bundle.GetBundleBalance:output_type -> bundle.GetBundleBalanceResp + 42, // [42:66] is the sub-list for method output_type + 18, // [18:42] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name } func init() { file_pb_bundle_proto_init() } @@ -4714,6 +4796,18 @@ func file_pb_bundle_proto_init() { } } file_pb_bundle_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*BundleBalanceItem); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pb_bundle_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBundleBalanceResp); i { case 0: return &v.state @@ -4732,7 +4826,7 @@ func file_pb_bundle_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pb_bundle_proto_rawDesc, NumEnums: 0, - NumMessages: 40, + NumMessages: 41, NumExtensions: 0, NumServices: 1, }, diff --git a/pb/bundle/bundle.validator.pb.go b/pb/bundle/bundle.validator.pb.go index 5110929..56bbaa8 100644 --- a/pb/bundle/bundle.validator.pb.go +++ b/pb/bundle/bundle.validator.pb.go @@ -249,6 +249,16 @@ func (this *BundleExtendRecordItem) Validate() error { func (this *GetBundleBalanceReq) Validate() error { return nil } -func (this *GetBundleBalanceResp) Validate() error { +func (this *BundleBalanceItem) Validate() error { + return nil +} +func (this *GetBundleBalanceResp) Validate() error { + for _, item := range this.Data { + if item != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(item); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Data", err) + } + } + } return nil } From a631cccb13b7a26c41f34cf67667ee746d4cf3cf Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 13 Jun 2025 11:01:57 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/app.go | 3 - internal/dao/bundleDao.go | 125 ++++++++++++++++++++-------------- internal/logic/bundleLogic.go | 40 +++++++++-- internal/model/bundle.go | 70 ++++++++++++++----- 4 files changed, 160 insertions(+), 78 deletions(-) diff --git a/cmd/app.go b/cmd/app.go index 42e54ce..1308bbd 100644 --- a/cmd/app.go +++ b/cmd/app.go @@ -4,7 +4,6 @@ import ( bundleConfig "micro-bundle/config" "micro-bundle/internal/controller" _ "micro-bundle/internal/handler" - "micro-bundle/internal/logic" "micro-bundle/pkg/app" "micro-bundle/pkg/tracing" @@ -32,8 +31,6 @@ func main() { if err != nil { panic(err) } - logic.GetBundleBalance(nil) - return //l, err := net.Listen("tcp", ":8883") //if err != nil { // fmt.Printf("failed to listen: %v", err) diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index 9560b18..fb630ec 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -8,7 +8,6 @@ import ( "micro-bundle/pkg/app" commonErr "micro-bundle/pkg/err" "micro-bundle/pkg/msg" - "micro-bundle/pkg/utils" "time" "gorm.io/gorm" @@ -391,40 +390,76 @@ func AddBundleExtendRecord(data model.BundleExtensionRecords) error { return app.ModuleClients.BundleDB.Create(&data).Error } -func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) ([]model.BundleExtendRecordItemPo, int64, error) { - session := app.ModuleClients.BundleDB.Select("*,mu.nickname as user_name,mu.tel_num as user_phone_number,fu.tel_num as operator_phone_number,fu.nickname as operator_name"). - Model(&model.BundleExtensionRecords{}). - Joins("left join `fontree-account`.`user` fu on operator_id = fu.id left join `micro-account`.`user` mu on user_id = mu.id ") - if req.EndTime != 0 { - session = session.Where("bundle_extension_records.created_at < ?", time.Unix(int64(req.EndTime), 0)) +func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) (data []model.BundleExtendRecordItemPo, total int64, err error) { + sql := ` + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + bova.num AS service_num, + bova.service_type AS service_type, + bova.order_uuid, + bova.uuid AS bova_uuid, + NULL AS account_additional, + NULL AS images_additional, + NULL AS data_additional, + NULL AS video_additional, + NULL AS operator_name, + NULL AS operator_phone_number, + bova.created_at + FROM + fiee_bundle.bundle_order_value_add AS bova + ` + "LEFT JOIN `micro-account`.`user` u ON u.id = bova.customer_id" + ` + + UNION ALL + + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + NULL AS service_num, + NULL AS service_type, + NULL AS order_uuid, + NULL AS bova_uuid, + ber.account_additional, + ber.images_additional, + ber.data_additional, + ber.video_additional, + ber.operator_name, + ber.operator_phone_number, + ber.created_at + FROM + fiee_bundle.bundle_extension_records ber + ` + "LEFT JOIN `micro-account`.`user` u ON u.id = ber.user_id" + ` + ORDER BY created_at DESC + LIMIT ? OFFSET ?; + ` + countSql := ` + SELECT COUNT(*) AS total_count FROM ( + SELECT bova.created_at + FROM fiee_bundle.bundle_order_value_add AS bova + ` + "LEFT JOIN `micro-account`.`user` u ON u.id = bova.customer_id" + ` + UNION ALL + SELECT ber.created_at + FROM fiee_bundle.bundle_extension_records ber + ` + "LEFT JOIN `micro-account`.`user` u ON u.id = ber.user_id" + ` + ) AS total_table; + ` + + // 查询总数 + err = app.ModuleClients.BundleDB.Raw(countSql).Scan(&total).Error + if err != nil { + return nil, 0, err } - if req.StartTime != 0 { - session = session.Where("bundle_extension_records.created_at > ?", time.Unix(int64(req.StartTime), 0)) + if req.Page == 0 { + req.Page = 1 } - if req.Operator != "" { - if utils.IsPhoneNumber(req.Operator) { - session = session.Where("fu.tel_num = ?", req.Operator) - } else { - session = session.Where("fu.nickname = ?", req.Operator) - } + if req.PageSize == 0 { + req.PageSize = 100 } - if req.User != "" { - if utils.IsPhoneNumber(req.User) { - session = session.Where("mu.tel_num = ?", req.User) - } else { - session = session.Where("mu.nickname = ?", req.User) - } - } - if req.AssociatedOrderNumber != "" { - session = session.Where("associated_order_number = ?", req.AssociatedOrderNumber) - } - if req.Type != 0 { - session = session.Where("`type` = ?", req.Type) - } - var total int64 - res := []model.BundleExtendRecordItemPo{} - session.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)).Find(&res).Count(&total) - return res, total, session.Error + offset := (req.Page - 1) * req.PageSize + + // 查询数据 + err = app.ModuleClients.BundleDB.Raw(sql, req.PageSize, offset).Scan(&data).Error + return } func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, total int64, err error) { @@ -453,7 +488,11 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalan bova.uuid as bova_uuid, cma.user_id as cma_uuid, ber.id as ber_id, - bova.source as oder_source + bova.source as oder_source, + ber.account_additional, + ber.images_additional, + ber.data_additional, + ber.video_additional `). Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). @@ -466,23 +505,3 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalan Scan(&data) return } - -// func GetBundleCapacity(tx *gorm.DB) { -// // 子查询: 每个 customer_id 的最新 created_at -// subQuery := tx.Table("fiee_bundle.bundle_order_records"). -// Select("customer_id, MAX(created_at) as max_created_at"). -// Group("customer_id") - -// // 主查询 -// tx.Table("fiee_bundle.bundle_order_records AS bor"). -// Select("bor.*, bova.*"). -// Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). -// Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). -// Where("bor.created_at < bova.created_at"). -// Where("bor.expiration_time > NOW()"). -// Scan(&results) -// } - -// func GetBundleUsage(tx *gorm.DB, userIds []int){ - -// } diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index a8d2395..41e8dfc 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -379,9 +379,35 @@ func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundl if err != nil { return nil, err } - result := new(bundle.BundleExtendRecordsListResponse) + var result = &bundle.BundleExtendRecordsListResponse{} + result.Data = lo.Map(data, func(data model.BundleExtendRecordItemPo, _ int) (ber *bundle.BundleExtendRecordItem) { + ber = &bundle.BundleExtendRecordItem{} + ber.CreatedAt = uint64(data.CreatedAt.UnixMilli()) + ber.UserName = data.UserName + ber.UserPhoneNumber = data.UserPhoneNumber + if data.ServiceType == 0 { + ber.AccountAdditional += uint32(data.AccountAdditional) + ber.VideoAdditional += uint32(data.VideoAdditional) + ber.ImagesAdditional += uint32(data.ImagesAdditional) + ber.DataAdditional += uint32(data.DataAdditional) + ber.OperatorName = data.OperatorName + ber.OperatorPhoneNumber = data.OperatorPhoneNumber + } else { + switch data.ServiceType { + case 1: + ber.VideoAdditional += uint32(data.ServiceNum) + case 2: + ber.ImagesAdditional += uint32(data.ServiceNum) + case 3: + ber.DataAdditional += uint32(data.ServiceNum) + case 4: + ber.AccountAdditional += uint32(data.ServiceNum) + } + ber.AssociatedOrderNumber = data.OrderUUID + } + return + }) result.Total = total - err = copier.Copy(result.Data, &data) return result, err } @@ -477,9 +503,15 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalance })) // 去重bundle_extension_records.id 统计绑定的账号数 - user.ExpansionPacksNumber += len(lo.UniqBy(userData, func(data model.BundleBalancePo) int { + lo.ForEach(lo.UniqBy(userData, func(data model.BundleBalancePo) int { return data.BerID - })) + }), func(data model.BundleBalancePo, index int) { + user.ExpansionPacksNumber++ + user.AccountCap += data.AccountAdditional + user.VideoCap += data.VideAadditiona + user.DataAnalysisCap += data.DataAdditional + user.ImageCap += data.ImagesAdditional + }) } result := &bundle.GetBundleBalanceResp{} result.Total = total diff --git a/internal/model/bundle.go b/internal/model/bundle.go index feb3e52..b1e47de 100644 --- a/internal/model/bundle.go +++ b/internal/model/bundle.go @@ -85,7 +85,6 @@ type BundleExtensionRecords struct { AvailableDurationAdditional uint `gorm:"column:available_duration_additional;type:int(11) unsigned;comment:可用时长增加" json:"available_duration_additional"` Type int `gorm:"column:type;type:tinyint(4);comment:类型 0:手动操作" json:"type"` Remark string `gorm:"column:remark;type:text;comment:备注" json:"remark"` - AssociatedOrderNumber string `gorm:"column:associated_order_number;type:varchar(256);comment:关联增值服务订单号" json:"associated_order_number"` OperatorId int `gorm:"column:operator_id;type:int(11);comment:操作人id" json:"operator_id"` OperatorName string `gorm:"column:operator_name;type:varchar(256)" json:"operatorName"` OperatorPhoneNumber string `gorm:"column:operator_phone_number;type:varchar(256)" json:"operatorPhoneNumber"` @@ -97,24 +96,59 @@ func (*BundleExtensionRecords) TableName() string { } type BundleExtendRecordItemPo struct { - BundleExtensionRecords - UserName string `json:"userName" gorm:"column:user_name"` - UserPhoneNumber int64 `json:"userPhoneNumber" gorm:"column:user_phone_number"` + UserID uint + UserName string + UserPhoneNumber string + ServiceNum int + ServiceType int + AccountAdditional int + ImagesAdditional int + DataAdditional int + VideoAdditional int + OperatorName string + OperatorPhoneNumber string + OrderUUID string + CreatedAt time.Time +} + +type BundleExtendRecordItemDto struct { + ID uint `gorm:"primarykey"` + CreatedAt time.Time + UpdatedAt time.Time + DeletedAt soft_delete.DeletedAt + UserId int `gorm:"column:user_id;type:int(11);comment:艺人id;NOT NULL" json:"user_id"` + AccountAdditional uint `gorm:"column:account_additional;type:int(11) unsigned;comment:账号额外增加" json:"account_additional"` + VideoAdditional uint `gorm:"column:video_additional;type:int(11) unsigned;comment:图文额外增加" json:"video_additional"` + ImagesAdditional uint `gorm:"column:images_additional;type:int(11) unsigned;comment:图文额外增加" json:"images_additional"` + DataAdditional uint `gorm:"column:data_additional;type:int(11) unsigned;comment:数据额外增加" json:"data_additional"` + AvailableDurationAdditional uint `gorm:"column:available_duration_additional;type:int(11) unsigned;comment:可用时长增加" json:"available_duration_additional"` + Type int `gorm:"column:type;type:tinyint(4);comment:类型 0:手动操作" json:"type"` + Remark string `gorm:"column:remark;type:text;comment:备注" json:"remark"` + AssociatedOrderNumber string `gorm:"column:associated_order_number;type:varchar(256);comment:关联增值服务订单号" json:"associated_order_number"` + OperatorId int `gorm:"column:operator_id;type:int(11);comment:操作人id" json:"operator_id"` + OperatorName string `gorm:"column:operator_name;type:varchar(256)" json:"operatorName"` + OperatorPhoneNumber string `gorm:"column:operator_phone_number;type:varchar(256)" json:"operatorPhoneNumber"` + UserName string `json:"userName" gorm:"column:user_name"` + UserPhoneNumber string `json:"userPhoneNumber" gorm:"column:user_phone_number"` } type BundleBalancePo struct { - UserID int `gorm:"column:user_id"` - UserName string `gorm:"column:user_name"` - UserPhoneNumber string `gorm:"column:user_phone_nmber"` - BundleName string `gorm:"column:bundle_name"` - ExpirationTime time.Time `gorm:"column:expired_time"` - BundleStatus int `gorm:"column:bundle_status"` - ServiceNum int `gorm:"column:service_num"` - ServiceType int `gorm:"column:service_type"` - WorkCategory int `gorm:"column:work_category"` - CwUUID *string `gorm:"column:cw_uuid"` - BovaUUID *string `gorm:"column:bova_uuid"` - CmaUUID *string `gorm:"column:cma_uuid"` - BerID int `gorm:"column:ber_id"` - OderSource int `gorm:"column:oder_source"` + UserID int `gorm:"column:user_id"` + UserName string `gorm:"column:user_name"` + UserPhoneNumber string `gorm:"column:user_phone_nmber"` + BundleName string `gorm:"column:bundle_name"` + ExpirationTime time.Time `gorm:"column:expired_time"` + BundleStatus int `gorm:"column:bundle_status"` + ServiceNum int `gorm:"column:service_num"` + ServiceType int `gorm:"column:service_type"` + WorkCategory int `gorm:"column:work_category"` + CwUUID *string `gorm:"column:cw_uuid"` + BovaUUID *string `gorm:"column:bova_uuid"` + CmaUUID *string `gorm:"column:cma_uuid"` + BerID int `gorm:"column:ber_id"` + OderSource int `gorm:"column:oder_source"` + AccountAdditional int `gorm:"column:account_additional"` + ImagesAdditional int `gorm:"column:images_additional"` + DataAdditional int `gorm:"column:data_additional"` + VideAadditiona int `gorm:"column:video_additional"` } From 5f2c9f0f643dcf26021befdc4f9a979dbe211620 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 13 Jun 2025 13:54:58 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/dao/bundleDao.go | 186 +++++++++++++++++++++++++++----------- 1 file changed, 133 insertions(+), 53 deletions(-) diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index fb630ec..df3be93 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -8,6 +8,8 @@ import ( "micro-bundle/pkg/app" commonErr "micro-bundle/pkg/err" "micro-bundle/pkg/msg" + "micro-bundle/pkg/utils" + "strings" "time" "gorm.io/gorm" @@ -391,64 +393,124 @@ func AddBundleExtendRecord(data model.BundleExtensionRecords) error { } func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) (data []model.BundleExtendRecordItemPo, total int64, err error) { + var berConditions []string + var berArgs []any + var bovaConditions []string + var bovaArgs []any + // 动态条件拼接示例 + if req.User != "" { + if utils.IsPhoneNumber(req.User) { + berConditions = append(berConditions, "u.tel_num = ?") + berArgs = append(berArgs, req.User) + } else { + berConditions = append(berConditions, "u.nickname LIKE ?") + berArgs = append(berArgs, "%"+req.User+"%") + } + } + if req.Operator != "" { + if utils.IsPhoneNumber(req.Operator) { + berConditions = append(berConditions, "operator_phone_number = ?") + berArgs = append(berArgs, "%"+req.User+"%") + } else { + berConditions = append(berConditions, "operator_name LIKE ?") + berArgs = append(berArgs, "%"+req.User+"%") + } + } + if req.Type != 0 { + switch req.Type { + case 1: // 手动创建 + { + bovaConditions = append(berConditions, "bova_uuid IS NULL") + } + case 2: // 自行购买 + { + berConditions = append(berConditions, "operator_name IS NULL") + } + } + } + if req.AssociatedOrderNumber != "" { + bovaConditions = append(bovaConditions, "order_uuid LIKE ?") + bovaArgs = append(bovaArgs, "%"+req.AssociatedOrderNumber+"%") + } + if req.StartTime != 0 { + berConditions = append(berConditions, "ber.created_at >= ?") + berArgs = append(berArgs, time.UnixMilli(int64(req.StartTime))) + bovaConditions = append(bovaConditions, "bova.created_at >= ?") + bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.StartTime))) + } + if req.EndTime != 0 { + berConditions = append(berConditions, "ber.created_at <= ?") + berArgs = append(berArgs, time.UnixMilli(int64(req.EndTime))) + bovaConditions = append(bovaConditions, "bova.created_at <= ?") + bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.EndTime))) + } + berCWhereClause := "" + if len(berConditions) > 0 { + berCWhereClause = " WHERE " + strings.Join(berConditions, " AND ") + } + bovaCWhereClause := "" + if len(berConditions) > 0 { + bovaCWhereClause = " WHERE " + strings.Join(bovaConditions, " AND ") + } + // 拼接数据查询SQL sql := ` - SELECT - u.nickname AS user_name, - u.tel_num AS user_phone_number, - bova.num AS service_num, - bova.service_type AS service_type, - bova.order_uuid, - bova.uuid AS bova_uuid, - NULL AS account_additional, - NULL AS images_additional, - NULL AS data_additional, - NULL AS video_additional, - NULL AS operator_name, - NULL AS operator_phone_number, - bova.created_at - FROM - fiee_bundle.bundle_order_value_add AS bova - ` + "LEFT JOIN `micro-account`.`user` u ON u.id = bova.customer_id" + ` - - UNION ALL - - SELECT - u.nickname AS user_name, - u.tel_num AS user_phone_number, - NULL AS service_num, - NULL AS service_type, - NULL AS order_uuid, - NULL AS bova_uuid, - ber.account_additional, - ber.images_additional, - ber.data_additional, - ber.video_additional, - ber.operator_name, - ber.operator_phone_number, - ber.created_at - FROM - fiee_bundle.bundle_extension_records ber - ` + "LEFT JOIN `micro-account`.`user` u ON u.id = ber.user_id" + ` - ORDER BY created_at DESC - LIMIT ? OFFSET ?; + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + bova.num AS service_num, + bova.service_type AS service_type, + bova.order_uuid, + bova.uuid AS bova_uuid, + NULL AS account_additional, + NULL AS images_additional, + NULL AS data_additional, + NULL AS video_additional, + NULL AS operator_name, + NULL AS operator_phone_number, + bova.created_at as created_at + FROM + fiee_bundle.bundle_order_value_add AS bova + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id + ` + bovaCWhereClause + ` + UNION ALL + + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + NULL AS service_num, + NULL AS service_type, + NULL AS order_uuid, + NULL AS bova_uuid, + ber.account_additional, + ber.images_additional, + ber.data_additional, + ber.video_additional, + ber.operator_name, + ber.operator_phone_number, + ber.created_at as created_at + FROM + fiee_bundle.bundle_extension_records ber + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id + ` + berCWhereClause + ` + ORDER BY created_at DESC + LIMIT ? OFFSET ?; ` + + // 拼接总数查询SQL countSql := ` SELECT COUNT(*) AS total_count FROM ( - SELECT bova.created_at + SELECT bova.created_at as created_at FROM fiee_bundle.bundle_order_value_add AS bova - ` + "LEFT JOIN `micro-account`.`user` u ON u.id = bova.customer_id" + ` + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id + ` + bovaCWhereClause + ` UNION ALL - SELECT ber.created_at + SELECT ber.created_at as created_at FROM fiee_bundle.bundle_extension_records ber - ` + "LEFT JOIN `micro-account`.`user` u ON u.id = ber.user_id" + ` + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id + ` + berCWhereClause + ` ) AS total_table; ` - // 查询总数 - err = app.ModuleClients.BundleDB.Raw(countSql).Scan(&total).Error - if err != nil { - return nil, 0, err - } if req.Page == 0 { req.Page = 1 } @@ -457,8 +519,15 @@ func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) (data } offset := (req.Page - 1) * req.PageSize + // 查询总数 + err = app.ModuleClients.BundleDB.Raw(countSql, append(bovaArgs, berArgs...)...).Scan(&total).Error + if err != nil { + return nil, 0, err + } + // 查询数据 - err = app.ModuleClients.BundleDB.Raw(sql, req.PageSize, offset).Scan(&data).Error + argsWithPage := append(append(bovaArgs, berArgs...), req.PageSize, offset) + err = app.ModuleClients.BundleDB.Raw(sql, argsWithPage...).Scan(&data).Error return } @@ -473,7 +542,7 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalan if req.PageSize != 0 && req.Page != 0 { subQuery = subQuery.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)) } - app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). + session := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). Select(` bor.customer_id as user_id, u.nickname as user_name, @@ -500,8 +569,19 @@ func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalan Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bor.customer_id"). Joins("LEFT JOIN fiee_bundle.cast_media_account cma ON cma.artist_uuid = u.id"). Joins("LEFT JOIN fiee_bundle.bundle_extension_records ber ON ber.user_id = bor.customer_id"). - Where("bor.customer_id != ?", ""). - // Where("") - Scan(&data) + Where("bor.customer_id != ?", "") + if req.BundleName != "" { + session.Where("bor.bundle_name like ?", "%"+req.BundleName+"%") + } + if req.UserName != "" { + session.Where("u.nickname like ?", "%"+req.UserName+"%") + } + if req.ExpiredTimeStart != 0 { + session.Where("bor.expiration_time >= ?", req.ExpiredTimeStart) + } + if req.ExpiredTimeEnd != 0 { + session.Where("bor.expiration_time <= ?", req.ExpiredTimeEnd) + } + err = session.Scan(&data).Error return } From c8a129d34e9fea614cc2c988008273fb47d58ec2 Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 13 Jun 2025 14:12:09 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=8B=86=E5=88=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/controller/bundleV2.go | 12 -- internal/controller/bundle_extend.go | 19 +++ internal/dao/bundleDao.go | 200 -------------------------- internal/dao/bundleExtend.go | 208 +++++++++++++++++++++++++++ internal/logic/bundleExtendLogic.go | 182 +++++++++++++++++++++++ internal/logic/bundleLogic.go | 173 ---------------------- 6 files changed, 409 insertions(+), 385 deletions(-) create mode 100644 internal/controller/bundle_extend.go create mode 100644 internal/dao/bundleExtend.go create mode 100644 internal/logic/bundleExtendLogic.go diff --git a/internal/controller/bundleV2.go b/internal/controller/bundleV2.go index 377dd31..4ce0e0a 100644 --- a/internal/controller/bundleV2.go +++ b/internal/controller/bundleV2.go @@ -33,15 +33,3 @@ func (b *BundleProvider) ValueAddServiceList(_ context.Context, req *bundle.Valu func (b *BundleProvider) ValueAddServiceDetail(_ context.Context, req *bundle.ValueAddServiceDetailRequest) (res *bundle.ValueAddServiceDetailResponse, err error) { return logic.ValueAddServiceDetail(req) } - -func (b *BundleProvider) BundleExtend(_ context.Context, req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { - return logic.BundleExtend(req) -} - -func (b *BundleProvider) BundleExtendRecordsList(_ context.Context, req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { - return logic.BundleExtendRecordsList(req) -} - -func (b *BundleProvider) GetBundleBalance(_ context.Context, req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { - return logic.GetBundleBalance(req) -} diff --git a/internal/controller/bundle_extend.go b/internal/controller/bundle_extend.go new file mode 100644 index 0000000..7197ed8 --- /dev/null +++ b/internal/controller/bundle_extend.go @@ -0,0 +1,19 @@ +package controller + +import ( + "context" + "micro-bundle/internal/logic" + "micro-bundle/pb/bundle" +) + +func (b *BundleProvider) BundleExtend(_ context.Context, req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { + return logic.BundleExtend(req) +} + +func (b *BundleProvider) BundleExtendRecordsList(_ context.Context, req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { + return logic.BundleExtendRecordsList(req) +} + +func (b *BundleProvider) GetBundleBalance(_ context.Context, req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { + return logic.GetBundleBalance(req) +} diff --git a/internal/dao/bundleDao.go b/internal/dao/bundleDao.go index df3be93..2cfb36a 100644 --- a/internal/dao/bundleDao.go +++ b/internal/dao/bundleDao.go @@ -8,8 +8,6 @@ import ( "micro-bundle/pkg/app" commonErr "micro-bundle/pkg/err" "micro-bundle/pkg/msg" - "micro-bundle/pkg/utils" - "strings" "time" "gorm.io/gorm" @@ -387,201 +385,3 @@ func GetBundleLangsByUuid(uuid string) ([]*model.BundleProfileLang, error) { Find(&result).Error return result, err } - -func AddBundleExtendRecord(data model.BundleExtensionRecords) error { - return app.ModuleClients.BundleDB.Create(&data).Error -} - -func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) (data []model.BundleExtendRecordItemPo, total int64, err error) { - var berConditions []string - var berArgs []any - var bovaConditions []string - var bovaArgs []any - // 动态条件拼接示例 - if req.User != "" { - if utils.IsPhoneNumber(req.User) { - berConditions = append(berConditions, "u.tel_num = ?") - berArgs = append(berArgs, req.User) - } else { - berConditions = append(berConditions, "u.nickname LIKE ?") - berArgs = append(berArgs, "%"+req.User+"%") - } - } - if req.Operator != "" { - if utils.IsPhoneNumber(req.Operator) { - berConditions = append(berConditions, "operator_phone_number = ?") - berArgs = append(berArgs, "%"+req.User+"%") - } else { - berConditions = append(berConditions, "operator_name LIKE ?") - berArgs = append(berArgs, "%"+req.User+"%") - } - } - if req.Type != 0 { - switch req.Type { - case 1: // 手动创建 - { - bovaConditions = append(berConditions, "bova_uuid IS NULL") - } - case 2: // 自行购买 - { - berConditions = append(berConditions, "operator_name IS NULL") - } - } - } - if req.AssociatedOrderNumber != "" { - bovaConditions = append(bovaConditions, "order_uuid LIKE ?") - bovaArgs = append(bovaArgs, "%"+req.AssociatedOrderNumber+"%") - } - if req.StartTime != 0 { - berConditions = append(berConditions, "ber.created_at >= ?") - berArgs = append(berArgs, time.UnixMilli(int64(req.StartTime))) - bovaConditions = append(bovaConditions, "bova.created_at >= ?") - bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.StartTime))) - } - if req.EndTime != 0 { - berConditions = append(berConditions, "ber.created_at <= ?") - berArgs = append(berArgs, time.UnixMilli(int64(req.EndTime))) - bovaConditions = append(bovaConditions, "bova.created_at <= ?") - bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.EndTime))) - } - berCWhereClause := "" - if len(berConditions) > 0 { - berCWhereClause = " WHERE " + strings.Join(berConditions, " AND ") - } - bovaCWhereClause := "" - if len(berConditions) > 0 { - bovaCWhereClause = " WHERE " + strings.Join(bovaConditions, " AND ") - } - // 拼接数据查询SQL - sql := ` - SELECT - u.nickname AS user_name, - u.tel_num AS user_phone_number, - bova.num AS service_num, - bova.service_type AS service_type, - bova.order_uuid, - bova.uuid AS bova_uuid, - NULL AS account_additional, - NULL AS images_additional, - NULL AS data_additional, - NULL AS video_additional, - NULL AS operator_name, - NULL AS operator_phone_number, - bova.created_at as created_at - FROM - fiee_bundle.bundle_order_value_add AS bova - LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id - ` + bovaCWhereClause + ` - UNION ALL - - SELECT - u.nickname AS user_name, - u.tel_num AS user_phone_number, - NULL AS service_num, - NULL AS service_type, - NULL AS order_uuid, - NULL AS bova_uuid, - ber.account_additional, - ber.images_additional, - ber.data_additional, - ber.video_additional, - ber.operator_name, - ber.operator_phone_number, - ber.created_at as created_at - FROM - fiee_bundle.bundle_extension_records ber - LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id - ` + berCWhereClause + ` - ORDER BY created_at DESC - LIMIT ? OFFSET ?; - ` - - // 拼接总数查询SQL - countSql := ` - SELECT COUNT(*) AS total_count FROM ( - SELECT bova.created_at as created_at - FROM fiee_bundle.bundle_order_value_add AS bova - LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id - ` + bovaCWhereClause + ` - UNION ALL - SELECT ber.created_at as created_at - FROM fiee_bundle.bundle_extension_records ber - LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id - ` + berCWhereClause + ` - ) AS total_table; - ` - - if req.Page == 0 { - req.Page = 1 - } - if req.PageSize == 0 { - req.PageSize = 100 - } - offset := (req.Page - 1) * req.PageSize - - // 查询总数 - err = app.ModuleClients.BundleDB.Raw(countSql, append(bovaArgs, berArgs...)...).Scan(&total).Error - if err != nil { - return nil, 0, err - } - - // 查询数据 - argsWithPage := append(append(bovaArgs, berArgs...), req.PageSize, offset) - err = app.ModuleClients.BundleDB.Raw(sql, argsWithPage...).Scan(&data).Error - return -} - -func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, total int64, err error) { - subQuery := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records"). - Select("customer_id, MAX(created_at) as max_created_at"). - Group("customer_id") - err = subQuery.Count(&total).Error - if err != nil { - return - } - if req.PageSize != 0 && req.Page != 0 { - subQuery = subQuery.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)) - } - session := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). - Select(` - bor.customer_id as user_id, - u.nickname as user_name, - u.tel_num as user_phone_number, - bor.bundle_name as bundle_name, - bor.expiration_time as expiration_time, - bor.status as bundle_status, - bova.num as service_num, - bova.service_type as service_type, - cw.work_category as work_category, - cw.uuid as cw_uuid, - bova.uuid as bova_uuid, - cma.user_id as cma_uuid, - ber.id as ber_id, - bova.source as oder_source, - ber.account_additional, - ber.images_additional, - ber.data_additional, - ber.video_additional - `). - Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). - Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). - Joins("LEFT JOIN fiee_bundle.cast_work cw ON cw.artist_uuid = bor.customer_id AND cw.created_at > UNIX_TIMESTAMP(bor.created_at)"). - Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bor.customer_id"). - Joins("LEFT JOIN fiee_bundle.cast_media_account cma ON cma.artist_uuid = u.id"). - Joins("LEFT JOIN fiee_bundle.bundle_extension_records ber ON ber.user_id = bor.customer_id"). - Where("bor.customer_id != ?", "") - if req.BundleName != "" { - session.Where("bor.bundle_name like ?", "%"+req.BundleName+"%") - } - if req.UserName != "" { - session.Where("u.nickname like ?", "%"+req.UserName+"%") - } - if req.ExpiredTimeStart != 0 { - session.Where("bor.expiration_time >= ?", req.ExpiredTimeStart) - } - if req.ExpiredTimeEnd != 0 { - session.Where("bor.expiration_time <= ?", req.ExpiredTimeEnd) - } - err = session.Scan(&data).Error - return -} diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go new file mode 100644 index 0000000..41172d0 --- /dev/null +++ b/internal/dao/bundleExtend.go @@ -0,0 +1,208 @@ +package dao + +import ( + "micro-bundle/internal/model" + "micro-bundle/pb/bundle" + "micro-bundle/pkg/app" + "micro-bundle/pkg/utils" + "strings" + "time" +) + +func AddBundleExtendRecord(data model.BundleExtensionRecords) error { + return app.ModuleClients.BundleDB.Create(&data).Error +} + +func GetBundleExtendRecordList(req *bundle.BundleExtendRecordsListRequest) (data []model.BundleExtendRecordItemPo, total int64, err error) { + var berConditions []string + var berArgs []any + var bovaConditions []string + var bovaArgs []any + // 动态条件拼接示例 + if req.User != "" { + if utils.IsPhoneNumber(req.User) { + berConditions = append(berConditions, "u.tel_num = ?") + berArgs = append(berArgs, req.User) + } else { + berConditions = append(berConditions, "u.nickname LIKE ?") + berArgs = append(berArgs, "%"+req.User+"%") + } + } + if req.Operator != "" { + if utils.IsPhoneNumber(req.Operator) { + berConditions = append(berConditions, "operator_phone_number = ?") + berArgs = append(berArgs, "%"+req.User+"%") + } else { + berConditions = append(berConditions, "operator_name LIKE ?") + berArgs = append(berArgs, "%"+req.User+"%") + } + } + if req.Type != 0 { + switch req.Type { + case 1: // 手动创建 + { + bovaConditions = append(berConditions, "bova_uuid IS NULL") + } + case 2: // 自行购买 + { + berConditions = append(berConditions, "operator_name IS NULL") + } + } + } + if req.AssociatedOrderNumber != "" { + bovaConditions = append(bovaConditions, "order_uuid LIKE ?") + bovaArgs = append(bovaArgs, "%"+req.AssociatedOrderNumber+"%") + } + if req.StartTime != 0 { + berConditions = append(berConditions, "ber.created_at >= ?") + berArgs = append(berArgs, time.UnixMilli(int64(req.StartTime))) + bovaConditions = append(bovaConditions, "bova.created_at >= ?") + bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.StartTime))) + } + if req.EndTime != 0 { + berConditions = append(berConditions, "ber.created_at <= ?") + berArgs = append(berArgs, time.UnixMilli(int64(req.EndTime))) + bovaConditions = append(bovaConditions, "bova.created_at <= ?") + bovaArgs = append(bovaArgs, time.UnixMilli(int64(req.EndTime))) + } + berCWhereClause := "" + if len(berConditions) > 0 { + berCWhereClause = " WHERE " + strings.Join(berConditions, " AND ") + } + bovaCWhereClause := "" + if len(berConditions) > 0 { + bovaCWhereClause = " WHERE " + strings.Join(bovaConditions, " AND ") + } + // 拼接数据查询SQL + sql := ` + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + bova.num AS service_num, + bova.service_type AS service_type, + bova.order_uuid, + bova.uuid AS bova_uuid, + NULL AS account_additional, + NULL AS images_additional, + NULL AS data_additional, + NULL AS video_additional, + NULL AS operator_name, + NULL AS operator_phone_number, + bova.created_at as created_at + FROM + fiee_bundle.bundle_order_value_add AS bova + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id + ` + bovaCWhereClause + ` + UNION ALL + + SELECT + u.nickname AS user_name, + u.tel_num AS user_phone_number, + NULL AS service_num, + NULL AS service_type, + NULL AS order_uuid, + NULL AS bova_uuid, + ber.account_additional, + ber.images_additional, + ber.data_additional, + ber.video_additional, + ber.operator_name, + ber.operator_phone_number, + ber.created_at as created_at + FROM + fiee_bundle.bundle_extension_records ber + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id + ` + berCWhereClause + ` + ORDER BY created_at DESC + LIMIT ? OFFSET ?; + ` + + // 拼接总数查询SQL + countSql := ` + SELECT COUNT(*) AS total_count FROM ( + SELECT bova.created_at as created_at + FROM fiee_bundle.bundle_order_value_add AS bova + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = bova.customer_id + ` + bovaCWhereClause + ` + UNION ALL + SELECT ber.created_at as created_at + FROM fiee_bundle.bundle_extension_records ber + LEFT JOIN ` + "`micro-account`.`user`" + ` u ON u.id = ber.user_id + ` + berCWhereClause + ` + ) AS total_table; + ` + + if req.Page == 0 { + req.Page = 1 + } + if req.PageSize == 0 { + req.PageSize = 100 + } + offset := (req.Page - 1) * req.PageSize + + // 查询总数 + err = app.ModuleClients.BundleDB.Raw(countSql, append(bovaArgs, berArgs...)...).Scan(&total).Error + if err != nil { + return nil, 0, err + } + + // 查询数据 + argsWithPage := append(append(bovaArgs, berArgs...), req.PageSize, offset) + err = app.ModuleClients.BundleDB.Raw(sql, argsWithPage...).Scan(&data).Error + return +} + +func GetBundleBalance(req *bundle.GetBundleBalanceReq) (data []model.BundleBalancePo, total int64, err error) { + subQuery := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records"). + Select("customer_id, MAX(created_at) as max_created_at"). + Group("customer_id") + err = subQuery.Count(&total).Error + if err != nil { + return + } + if req.PageSize != 0 && req.Page != 0 { + subQuery = subQuery.Limit(int(req.PageSize)).Offset(int(req.Page-1) * int(req.PageSize)) + } + session := app.ModuleClients.BundleDB.Table("fiee_bundle.bundle_order_records AS bor"). + Select(` + bor.customer_id as user_id, + u.nickname as user_name, + u.tel_num as user_phone_number, + bor.bundle_name as bundle_name, + bor.expiration_time as expiration_time, + bor.status as bundle_status, + bova.num as service_num, + bova.service_type as service_type, + cw.work_category as work_category, + cw.uuid as cw_uuid, + bova.uuid as bova_uuid, + cma.user_id as cma_uuid, + ber.id as ber_id, + bova.source as oder_source, + ber.account_additional, + ber.images_additional, + ber.data_additional, + ber.video_additional + `). + Joins("JOIN (?) t ON bor.customer_id = t.customer_id AND bor.created_at = t.max_created_at", subQuery). + Joins("LEFT JOIN fiee_bundle.bundle_order_value_add bova ON bova.order_uuid = bor.uuid"). + Joins("LEFT JOIN fiee_bundle.cast_work cw ON cw.artist_uuid = bor.customer_id AND cw.created_at > UNIX_TIMESTAMP(bor.created_at)"). + Joins("LEFT JOIN `micro-account`.`user` u ON u.id = bor.customer_id"). + Joins("LEFT JOIN fiee_bundle.cast_media_account cma ON cma.artist_uuid = u.id"). + Joins("LEFT JOIN fiee_bundle.bundle_extension_records ber ON ber.user_id = bor.customer_id"). + Where("bor.customer_id != ?", "") + if req.BundleName != "" { + session.Where("bor.bundle_name like ?", "%"+req.BundleName+"%") + } + if req.UserName != "" { + session.Where("u.nickname like ?", "%"+req.UserName+"%") + } + if req.ExpiredTimeStart != 0 { + session.Where("bor.expiration_time >= ?", req.ExpiredTimeStart) + } + if req.ExpiredTimeEnd != 0 { + session.Where("bor.expiration_time <= ?", req.ExpiredTimeEnd) + } + err = session.Scan(&data).Error + return +} diff --git a/internal/logic/bundleExtendLogic.go b/internal/logic/bundleExtendLogic.go new file mode 100644 index 0000000..6367d45 --- /dev/null +++ b/internal/logic/bundleExtendLogic.go @@ -0,0 +1,182 @@ +package logic + +import ( + "micro-bundle/internal/dao" + "micro-bundle/internal/model" + "micro-bundle/pb/bundle" + "time" + + "github.com/dubbogo/gost/log/logger" + "github.com/jinzhu/copier" + "github.com/samber/lo" +) + +func BundleExtend(req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { + data := model.BundleExtensionRecords{} + if err := copier.CopyWithOption(&data, req, copier.Option{DeepCopy: true}); err != nil { + return nil, err + } + return nil, dao.AddBundleExtendRecord(data) +} + +func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { + data, total, err := dao.GetBundleExtendRecordList(req) + if err != nil { + return nil, err + } + var result = &bundle.BundleExtendRecordsListResponse{} + result.Data = lo.Map(data, func(data model.BundleExtendRecordItemPo, _ int) (ber *bundle.BundleExtendRecordItem) { + ber = &bundle.BundleExtendRecordItem{} + ber.CreatedAt = uint64(data.CreatedAt.UnixMilli()) + ber.UserName = data.UserName + ber.UserPhoneNumber = data.UserPhoneNumber + if data.ServiceType == 0 { + ber.AccountAdditional += uint32(data.AccountAdditional) + ber.VideoAdditional += uint32(data.VideoAdditional) + ber.ImagesAdditional += uint32(data.ImagesAdditional) + ber.DataAdditional += uint32(data.DataAdditional) + ber.OperatorName = data.OperatorName + ber.OperatorPhoneNumber = data.OperatorPhoneNumber + } else { + switch data.ServiceType { + case 1: + ber.VideoAdditional += uint32(data.ServiceNum) + case 2: + ber.ImagesAdditional += uint32(data.ServiceNum) + case 3: + ber.DataAdditional += uint32(data.ServiceNum) + case 4: + ber.AccountAdditional += uint32(data.ServiceNum) + } + ber.AssociatedOrderNumber = data.OrderUUID + } + return + }) + result.Total = total + return result, err +} + +func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { + // start := time.Now() + // defer func() { + // fmt.Printf("(time.Now().UnixMilli() - start.UnixMilli()): %v\n", (time.Now().UnixMilli() - start.UnixMilli())) + // }() + data, total, err := dao.GetBundleBalance(req) + if err != nil { + return nil, err + } + type userDataDto struct { + UserID int + UserName string + UserPhoneNumber string + BundleName string + ExpirationTime time.Time + BundleStatus int + VideoCap int + ImageCap int + DataAnalysisCap int + AccountCap int + VideoUsed int + ImageUsed int + DataAnalysisUsed int + AccountUsed int + ExpansionPacksNumber int + } + usersMap := map[int]*userDataDto{} + lo.ForEach(data, func(data model.BundleBalancePo, index int) { + _, ok := usersMap[data.UserID] + if !ok { + usersMap[data.UserID] = &userDataDto{ + UserID: data.UserID, + UserName: data.UserName, + UserPhoneNumber: data.UserPhoneNumber, + BundleStatus: data.BundleStatus, + ExpirationTime: data.ExpirationTime, + } + } + }) + for _, user := range usersMap { + userData := lo.Filter(data, func(data model.BundleBalancePo, _ int) bool { + return data.UserID == user.UserID + }) + // 去重bundle_order_value_add.uuid 计算可用量 + lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.BovaUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.BovaUUID + }), func(data model.BundleBalancePo, index int) { + if data.OderSource == 3 { + user.ExpansionPacksNumber++ + } + logger.Infof("增加数据类型%v(%v),user_id:%v,uuid:%v", data.ServiceType, data.ServiceNum, data.UserID, *data.BovaUUID) + switch data.ServiceType { + case 1: + user.VideoCap += data.ServiceNum + case 2: + user.ImageCap += data.ServiceNum + case 3: + user.DataAnalysisCap += data.ServiceNum + case 4: + user.AccountCap += data.ServiceNum + default: + logger.Warn("不存在的数据类型:", data.ServiceType) + } + }) + + // 去重work_category.uuid 统计绑定的发布数 + lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.CwUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.CwUUID + }), func(data model.BundleBalancePo, index int) { + logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", data.ServiceType, data.UserID, *data.CwUUID) + switch data.WorkCategory { + case 1: + user.ImageUsed++ + case 2: + user.VideoUsed++ + default: + logger.Warn("不存在的数据类型:", data.WorkCategory) + } + }) + + // 去重cast_media_account.uuid 统计绑定的账号数 + user.AccountUsed += len(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { + return data.CmaUUID != nil + }), func(data model.BundleBalancePo) string { + return *data.CmaUUID + })) + + // 去重bundle_extension_records.id 统计绑定的账号数 + lo.ForEach(lo.UniqBy(userData, func(data model.BundleBalancePo) int { + return data.BerID + }), func(data model.BundleBalancePo, index int) { + user.ExpansionPacksNumber++ + user.AccountCap += data.AccountAdditional + user.VideoCap += data.VideAadditiona + user.DataAnalysisCap += data.DataAdditional + user.ImageCap += data.ImagesAdditional + }) + } + result := &bundle.GetBundleBalanceResp{} + result.Total = total + result.Data = lo.MapToSlice(usersMap, func(_ int, user *userDataDto) *bundle.BundleBalanceItem { + return &bundle.BundleBalanceItem{ + UserName: user.UserName, + UserPhoneNumber: user.UserPhoneNumber, + BundleName: user.BundleName, + Status: int32(user.BundleStatus), + ExpiredTime: user.ExpirationTime.UnixMilli(), + AccountNumber: int32(user.AccountCap), + AccountConsumptionNumber: int32(user.AccountUsed), + ImageNumber: int32(user.ImageCap), + ImageConsumptionNumber: int32(user.ImageUsed), + VideoNumber: int32(user.VideoCap), + VideoConsumptionNumber: int32(user.VideoUsed), + DataAnalysisNumber: int32(user.DataAnalysisCap), + DataAnalysisConsumptionNumber: int32(user.DataAnalysisUsed), + ExpansionPacksNumber: int32(user.ExpansionPacksNumber), + } + }) + return result, nil +} diff --git a/internal/logic/bundleLogic.go b/internal/logic/bundleLogic.go index 41e8dfc..0784043 100644 --- a/internal/logic/bundleLogic.go +++ b/internal/logic/bundleLogic.go @@ -6,15 +6,12 @@ import ( "micro-bundle/internal/dao" "micro-bundle/pkg/app" "micro-bundle/pkg/msg" - "time" "micro-bundle/internal/model" "micro-bundle/pb/bundle" - "dubbo.apache.org/dubbo-go/v3/common/logger" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" "github.com/jinzhu/copier" - "github.com/samber/lo" "gorm.io/gorm" ) @@ -365,173 +362,3 @@ func diffUpdateBundleToValueAddService(tx *gorm.DB, bundleUuid string, selectSer } return nil } - -func BundleExtend(req *bundle.BundleExtendRequest) (*bundle.BundleExtendResponse, error) { - data := model.BundleExtensionRecords{} - if err := copier.CopyWithOption(&data, req, copier.Option{DeepCopy: true}); err != nil { - return nil, err - } - return nil, dao.AddBundleExtendRecord(data) -} - -func BundleExtendRecordsList(req *bundle.BundleExtendRecordsListRequest) (*bundle.BundleExtendRecordsListResponse, error) { - data, total, err := dao.GetBundleExtendRecordList(req) - if err != nil { - return nil, err - } - var result = &bundle.BundleExtendRecordsListResponse{} - result.Data = lo.Map(data, func(data model.BundleExtendRecordItemPo, _ int) (ber *bundle.BundleExtendRecordItem) { - ber = &bundle.BundleExtendRecordItem{} - ber.CreatedAt = uint64(data.CreatedAt.UnixMilli()) - ber.UserName = data.UserName - ber.UserPhoneNumber = data.UserPhoneNumber - if data.ServiceType == 0 { - ber.AccountAdditional += uint32(data.AccountAdditional) - ber.VideoAdditional += uint32(data.VideoAdditional) - ber.ImagesAdditional += uint32(data.ImagesAdditional) - ber.DataAdditional += uint32(data.DataAdditional) - ber.OperatorName = data.OperatorName - ber.OperatorPhoneNumber = data.OperatorPhoneNumber - } else { - switch data.ServiceType { - case 1: - ber.VideoAdditional += uint32(data.ServiceNum) - case 2: - ber.ImagesAdditional += uint32(data.ServiceNum) - case 3: - ber.DataAdditional += uint32(data.ServiceNum) - case 4: - ber.AccountAdditional += uint32(data.ServiceNum) - } - ber.AssociatedOrderNumber = data.OrderUUID - } - return - }) - result.Total = total - return result, err -} - -func GetBundleBalance(req *bundle.GetBundleBalanceReq) (*bundle.GetBundleBalanceResp, error) { - // start := time.Now() - // defer func() { - // fmt.Printf("(time.Now().UnixMilli() - start.UnixMilli()): %v\n", (time.Now().UnixMilli() - start.UnixMilli())) - // }() - data, total, err := dao.GetBundleBalance(req) - if err != nil { - return nil, err - } - type userDataDto struct { - UserID int - UserName string - UserPhoneNumber string - BundleName string - ExpirationTime time.Time - BundleStatus int - VideoCap int - ImageCap int - DataAnalysisCap int - AccountCap int - VideoUsed int - ImageUsed int - DataAnalysisUsed int - AccountUsed int - ExpansionPacksNumber int - } - usersMap := map[int]*userDataDto{} - lo.ForEach(data, func(data model.BundleBalancePo, index int) { - _, ok := usersMap[data.UserID] - if !ok { - usersMap[data.UserID] = &userDataDto{ - UserID: data.UserID, - UserName: data.UserName, - UserPhoneNumber: data.UserPhoneNumber, - BundleStatus: data.BundleStatus, - ExpirationTime: data.ExpirationTime, - } - } - }) - for _, user := range usersMap { - userData := lo.Filter(data, func(data model.BundleBalancePo, _ int) bool { - return data.UserID == user.UserID - }) - // 去重bundle_order_value_add.uuid 计算可用量 - lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { - return data.BovaUUID != nil - }), func(data model.BundleBalancePo) string { - return *data.BovaUUID - }), func(data model.BundleBalancePo, index int) { - if data.OderSource == 3 { - user.ExpansionPacksNumber++ - } - logger.Infof("增加数据类型%v(%v),user_id:%v,uuid:%v", data.ServiceType, data.ServiceNum, data.UserID, *data.BovaUUID) - switch data.ServiceType { - case 1: - user.VideoCap += data.ServiceNum - case 2: - user.ImageCap += data.ServiceNum - case 3: - user.DataAnalysisCap += data.ServiceNum - case 4: - user.AccountCap += data.ServiceNum - default: - logger.Warn("不存在的数据类型:", data.ServiceType) - } - }) - - // 去重work_category.uuid 统计绑定的发布数 - lo.ForEach(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { - return data.CwUUID != nil - }), func(data model.BundleBalancePo) string { - return *data.CwUUID - }), func(data model.BundleBalancePo, index int) { - logger.Infof("减少数据类型%v,user_id:%v,uuid:%v", data.ServiceType, data.UserID, *data.CwUUID) - switch data.WorkCategory { - case 1: - user.ImageUsed++ - case 2: - user.VideoUsed++ - default: - logger.Warn("不存在的数据类型:", data.WorkCategory) - } - }) - - // 去重cast_media_account.uuid 统计绑定的账号数 - user.AccountUsed += len(lo.UniqBy(lo.Filter(userData, func(data model.BundleBalancePo, _ int) bool { - return data.CmaUUID != nil - }), func(data model.BundleBalancePo) string { - return *data.CmaUUID - })) - - // 去重bundle_extension_records.id 统计绑定的账号数 - lo.ForEach(lo.UniqBy(userData, func(data model.BundleBalancePo) int { - return data.BerID - }), func(data model.BundleBalancePo, index int) { - user.ExpansionPacksNumber++ - user.AccountCap += data.AccountAdditional - user.VideoCap += data.VideAadditiona - user.DataAnalysisCap += data.DataAdditional - user.ImageCap += data.ImagesAdditional - }) - } - result := &bundle.GetBundleBalanceResp{} - result.Total = total - result.Data = lo.MapToSlice(usersMap, func(_ int, user *userDataDto) *bundle.BundleBalanceItem { - return &bundle.BundleBalanceItem{ - UserName: user.UserName, - UserPhoneNumber: user.UserPhoneNumber, - BundleName: user.BundleName, - Status: int32(user.BundleStatus), - ExpiredTime: user.ExpirationTime.UnixMilli(), - AccountNumber: int32(user.AccountCap), - AccountConsumptionNumber: int32(user.AccountUsed), - ImageNumber: int32(user.ImageCap), - ImageConsumptionNumber: int32(user.ImageUsed), - VideoNumber: int32(user.VideoCap), - VideoConsumptionNumber: int32(user.VideoUsed), - DataAnalysisNumber: int32(user.DataAnalysisCap), - DataAnalysisConsumptionNumber: int32(user.DataAnalysisUsed), - ExpansionPacksNumber: int32(user.ExpansionPacksNumber), - } - }) - return result, nil -}