// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.1 // source: resourcesCenter.proto package resourcesCenter import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 //option go_package = "resourcesCenter/"; type Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 } func (x *Response) Reset() { *x = Response{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Response) String() string { return protoimpl.X.MessageStringOf(x) } func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[0] 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 Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{0} } func (x *Response) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *Response) GetMessage() string { if x != nil { return x.Message } return "" } type Balance struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识 CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识 DepartmentId int64 `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` //资源名称 ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型 Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` //数量 Spec string `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"` //规格 AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"` //标识 Model int64 `protobuf:"varint,9,opt,name=model,proto3" json:"model,omitempty"` //操作类型0使用1新增 } func (x *Balance) Reset() { *x = Balance{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Balance) String() string { return protoimpl.X.MessageStringOf(x) } func (*Balance) ProtoMessage() {} func (x *Balance) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[1] 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 Balance.ProtoReflect.Descriptor instead. func (*Balance) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{1} } func (x *Balance) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *Balance) GetCompanyId() int64 { if x != nil { return x.CompanyId } return 0 } func (x *Balance) GetDepartmentId() int64 { if x != nil { return x.DepartmentId } return 0 } func (x *Balance) GetName() string { if x != nil { return x.Name } return "" } func (x *Balance) GetResourceType() string { if x != nil { return x.ResourceType } return "" } func (x *Balance) GetNumber() int64 { if x != nil { return x.Number } return 0 } func (x *Balance) GetSpec() string { if x != nil { return x.Spec } return "" } func (x *Balance) GetAppId() string { if x != nil { return x.AppId } return "" } func (x *Balance) GetModel() int64 { if x != nil { return x.Model } return 0 } type Detailed struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识 CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识 ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型 ExportNum int64 `protobuf:"varint,4,opt,name=exportNum,proto3" json:"exportNum,omitempty"` //导出数量 DeductionType string `protobuf:"bytes,5,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //扣费类型(1高级字段包) RuleId string `protobuf:"bytes,6,opt,name=ruleId,proto3" json:"ruleId,omitempty"` //使用规则标识 ExportTime int64 `protobuf:"varint,7,opt,name=exportTime,proto3" json:"exportTime,omitempty"` //导出时间 UserType int64 `protobuf:"varint,8,opt,name=userType,proto3" json:"userType,omitempty"` //流水类型0使用1新增 DepartmentId int64 `protobuf:"varint,9,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识 UserId string `protobuf:"bytes,10,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识 DeductionNumb int64 `protobuf:"varint,11,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量 Url string `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"` //下载地址 SearchCriteria string `protobuf:"bytes,13,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"` //搜索条件 Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"` //数据来源 } func (x *Detailed) Reset() { *x = Detailed{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Detailed) String() string { return protoimpl.X.MessageStringOf(x) } func (*Detailed) ProtoMessage() {} func (x *Detailed) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[2] 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 Detailed.ProtoReflect.Descriptor instead. func (*Detailed) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{2} } func (x *Detailed) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *Detailed) GetCompanyId() int64 { if x != nil { return x.CompanyId } return 0 } func (x *Detailed) GetResourceType() string { if x != nil { return x.ResourceType } return "" } func (x *Detailed) GetExportNum() int64 { if x != nil { return x.ExportNum } return 0 } func (x *Detailed) GetDeductionType() string { if x != nil { return x.DeductionType } return "" } func (x *Detailed) GetRuleId() string { if x != nil { return x.RuleId } return "" } func (x *Detailed) GetExportTime() int64 { if x != nil { return x.ExportTime } return 0 } func (x *Detailed) GetUserType() int64 { if x != nil { return x.UserType } return 0 } func (x *Detailed) GetDepartmentId() int64 { if x != nil { return x.DepartmentId } return 0 } func (x *Detailed) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *Detailed) GetDeductionNumb() int64 { if x != nil { return x.DeductionNumb } return 0 } func (x *Detailed) GetUrl() string { if x != nil { return x.Url } return "" } func (x *Detailed) GetSearchCriteria() string { if x != nil { return x.SearchCriteria } return "" } func (x *Detailed) GetSource() string { if x != nil { return x.Source } return "" } type ResourcesAuth struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识 ResourcesId int64 `protobuf:"varint,3,opt,name=resourcesId,proto3" json:"resourcesId,omitempty"` //资源标识 Quota int64 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"` //定额 Ratio int64 `protobuf:"varint,5,opt,name=ratio,proto3" json:"ratio,omitempty"` //比例 State int64 `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` //状态 } func (x *ResourcesAuth) Reset() { *x = ResourcesAuth{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResourcesAuth) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResourcesAuth) ProtoMessage() {} func (x *ResourcesAuth) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[3] 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 ResourcesAuth.ProtoReflect.Descriptor instead. func (*ResourcesAuth) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{3} } func (x *ResourcesAuth) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *ResourcesAuth) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *ResourcesAuth) GetResourcesId() int64 { if x != nil { return x.ResourcesId } return 0 } func (x *ResourcesAuth) GetQuota() int64 { if x != nil { return x.Quota } return 0 } func (x *ResourcesAuth) GetRatio() int64 { if x != nil { return x.Ratio } return 0 } func (x *ResourcesAuth) GetState() int64 { if x != nil { return x.State } return 0 } type ResourceBalance struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称 Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量 ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源代码 Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格 } func (x *ResourceBalance) Reset() { *x = ResourceBalance{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResourceBalance) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResourceBalance) ProtoMessage() {} func (x *ResourceBalance) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[4] 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 ResourceBalance.ProtoReflect.Descriptor instead. func (*ResourceBalance) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{4} } func (x *ResourceBalance) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *ResourceBalance) GetName() string { if x != nil { return x.Name } return "" } func (x *ResourceBalance) GetNumber() int64 { if x != nil { return x.Number } return 0 } func (x *ResourceBalance) GetResourceType() string { if x != nil { return x.ResourceType } return "" } func (x *ResourceBalance) GetSpec() string { if x != nil { return x.Spec } return "" } type ConsumeRecord struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` ResourceType string `protobuf:"bytes,4,opt,name=resourceType,proto3" json:"resourceType,omitempty"` ExportNum int64 `protobuf:"varint,5,opt,name=exportNum,proto3" json:"exportNum,omitempty"` DeductionNumb int64 `protobuf:"varint,6,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` RuleId int64 `protobuf:"varint,7,opt,name=ruleId,proto3" json:"ruleId,omitempty"` ExportTime string `protobuf:"bytes,8,opt,name=exportTime,proto3" json:"exportTime,omitempty"` UserType int64 `protobuf:"varint,9,opt,name=userType,proto3" json:"userType,omitempty"` Url string `protobuf:"bytes,10,opt,name=url,proto3" json:"url,omitempty"` SearchCriteria string `protobuf:"bytes,11,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"` Source string `protobuf:"bytes,12,opt,name=source,proto3" json:"source,omitempty"` } func (x *ConsumeRecord) Reset() { *x = ConsumeRecord{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ConsumeRecord) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConsumeRecord) ProtoMessage() {} func (x *ConsumeRecord) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[5] 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 ConsumeRecord.ProtoReflect.Descriptor instead. func (*ConsumeRecord) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{5} } func (x *ConsumeRecord) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *ConsumeRecord) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *ConsumeRecord) GetName() string { if x != nil { return x.Name } return "" } func (x *ConsumeRecord) GetResourceType() string { if x != nil { return x.ResourceType } return "" } func (x *ConsumeRecord) GetExportNum() int64 { if x != nil { return x.ExportNum } return 0 } func (x *ConsumeRecord) GetDeductionNumb() int64 { if x != nil { return x.DeductionNumb } return 0 } func (x *ConsumeRecord) GetRuleId() int64 { if x != nil { return x.RuleId } return 0 } func (x *ConsumeRecord) GetExportTime() string { if x != nil { return x.ExportTime } return "" } func (x *ConsumeRecord) GetUserType() int64 { if x != nil { return x.UserType } return 0 } func (x *ConsumeRecord) GetUrl() string { if x != nil { return x.Url } return "" } func (x *ConsumeRecord) GetSearchCriteria() string { if x != nil { return x.SearchCriteria } return "" } func (x *ConsumeRecord) GetSource() string { if x != nil { return x.Source } return "" } type ResourcesReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` } func (x *ResourcesReq) Reset() { *x = ResourcesReq{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResourcesReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResourcesReq) ProtoMessage() {} func (x *ResourcesReq) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[6] 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 ResourcesReq.ProtoReflect.Descriptor instead. func (*ResourcesReq) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{6} } func (x *ResourcesReq) GetAccountId() string { if x != nil { return x.AccountId } return "" } type PreviewReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields InfoId string `protobuf:"bytes,1,opt,name=infoId,proto3" json:"infoId,omitempty"` //信息标识 AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //企业标识 DeductionType string `protobuf:"bytes,3,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //资源代码 } func (x *PreviewReq) Reset() { *x = PreviewReq{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PreviewReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*PreviewReq) ProtoMessage() {} func (x *PreviewReq) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[7] 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 PreviewReq.ProtoReflect.Descriptor instead. func (*PreviewReq) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{7} } func (x *PreviewReq) GetInfoId() string { if x != nil { return x.InfoId } return "" } func (x *PreviewReq) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *PreviewReq) GetDeductionType() string { if x != nil { return x.DeductionType } return "" } type PreviewRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 RepeatNumb int64 `protobuf:"varint,3,opt,name=repeatNumb,proto3" json:"repeatNumb,omitempty"` //重复数量 DeductionNumb int64 `protobuf:"varint,4,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量 } func (x *PreviewRes) Reset() { *x = PreviewRes{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *PreviewRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*PreviewRes) ProtoMessage() {} func (x *PreviewRes) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[8] 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 PreviewRes.ProtoReflect.Descriptor instead. func (*PreviewRes) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{8} } func (x *PreviewRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *PreviewRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *PreviewRes) GetRepeatNumb() int64 { if x != nil { return x.RepeatNumb } return 0 } func (x *PreviewRes) GetDeductionNumb() int64 { if x != nil { return x.DeductionNumb } return 0 } //根据账户标识查询资源权限请求参数 type ResourcesAuthRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 Data []*ResourcesAuth `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //账号拥有的资源权限 } func (x *ResourcesAuthRes) Reset() { *x = ResourcesAuthRes{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResourcesAuthRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResourcesAuthRes) ProtoMessage() {} func (x *ResourcesAuthRes) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[9] 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 ResourcesAuthRes.ProtoReflect.Descriptor instead. func (*ResourcesAuthRes) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{9} } func (x *ResourcesAuthRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *ResourcesAuthRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *ResourcesAuthRes) GetData() []*ResourcesAuth { if x != nil { return x.Data } return nil } //根据账户标识查询账户余额 type AccountBalanceRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data []*ResourceBalance `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` } func (x *AccountBalanceRes) Reset() { *x = AccountBalanceRes{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AccountBalanceRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*AccountBalanceRes) ProtoMessage() {} func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[10] 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 AccountBalanceRes.ProtoReflect.Descriptor instead. func (*AccountBalanceRes) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{10} } func (x *AccountBalanceRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *AccountBalanceRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *AccountBalanceRes) GetData() []*ResourceBalance { if x != nil { return x.Data } return nil } //查询流水账 type RecordReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` } func (x *RecordReq) Reset() { *x = RecordReq{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *RecordReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*RecordReq) ProtoMessage() {} func (x *RecordReq) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[11] 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 RecordReq.ProtoReflect.Descriptor instead. func (*RecordReq) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{11} } func (x *RecordReq) GetAccountId() string { if x != nil { return x.AccountId } return "" } func (x *RecordReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *RecordReq) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *RecordReq) GetPage() int64 { if x != nil { return x.Page } return 0 } type ConsumeRecordRes struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data []*ConsumeRecord `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` } func (x *ConsumeRecordRes) Reset() { *x = ConsumeRecordRes{} if protoimpl.UnsafeEnabled { mi := &file_resourcesCenter_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ConsumeRecordRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConsumeRecordRes) ProtoMessage() {} func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message { mi := &file_resourcesCenter_proto_msgTypes[12] 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 ConsumeRecordRes.ProtoReflect.Descriptor instead. func (*ConsumeRecordRes) Descriptor() ([]byte, []int) { return file_resourcesCenter_proto_rawDescGZIP(), []int{12} } func (x *ConsumeRecordRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *ConsumeRecordRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *ConsumeRecordRes) GetData() []*ConsumeRecord { if x != nil { return x.Data } return nil } func (x *ConsumeRecordRes) GetCount() int64 { if x != nil { return x.Count } return 0 } var File_resourcesCenter_proto protoreflect.FileDescriptor var file_resourcesCenter_proto_rawDesc = []byte{ 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xb6, 0x03, 0x0a, 0x08, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xd9, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x68, 0x0a, 0x0a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x22, 0x74, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x77, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x71, 0x0a, 0x09, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xfb, 0x03, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_resourcesCenter_proto_rawDescOnce sync.Once file_resourcesCenter_proto_rawDescData = file_resourcesCenter_proto_rawDesc ) func file_resourcesCenter_proto_rawDescGZIP() []byte { file_resourcesCenter_proto_rawDescOnce.Do(func() { file_resourcesCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_resourcesCenter_proto_rawDescData) }) return file_resourcesCenter_proto_rawDescData } var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_resourcesCenter_proto_goTypes = []interface{}{ (*Response)(nil), // 0: resourcesCenter.Response (*Balance)(nil), // 1: resourcesCenter.Balance (*Detailed)(nil), // 2: resourcesCenter.Detailed (*ResourcesAuth)(nil), // 3: resourcesCenter.ResourcesAuth (*ResourceBalance)(nil), // 4: resourcesCenter.ResourceBalance (*ConsumeRecord)(nil), // 5: resourcesCenter.ConsumeRecord (*ResourcesReq)(nil), // 6: resourcesCenter.ResourcesReq (*PreviewReq)(nil), // 7: resourcesCenter.PreviewReq (*PreviewRes)(nil), // 8: resourcesCenter.PreviewRes (*ResourcesAuthRes)(nil), // 9: resourcesCenter.ResourcesAuthRes (*AccountBalanceRes)(nil), // 10: resourcesCenter.AccountBalanceRes (*RecordReq)(nil), // 11: resourcesCenter.RecordReq (*ConsumeRecordRes)(nil), // 12: resourcesCenter.ConsumeRecordRes } var file_resourcesCenter_proto_depIdxs = []int32{ 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesReq 6, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.ResourcesReq 11, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.RecordReq 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed 7, // 8: resourcesCenter.ResourcesCenter.findPreview:input_type -> resourcesCenter.PreviewReq 10, // 9: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.AccountBalanceRes 10, // 10: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes 12, // 11: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes 0, // 12: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response 0, // 13: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response 12, // 14: resourcesCenter.ResourcesCenter.findPreview:output_type -> resourcesCenter.ConsumeRecordRes 9, // [9:15] is the sub-list for method output_type 3, // [3:9] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_resourcesCenter_proto_init() } func file_resourcesCenter_proto_init() { if File_resourcesCenter_proto != nil { return } if !protoimpl.UnsafeEnabled { file_resourcesCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Response); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Balance); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Detailed); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourcesAuth); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourceBalance); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConsumeRecord); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourcesReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PreviewReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*PreviewRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ResourcesAuthRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AccountBalanceRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RecordReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_resourcesCenter_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ConsumeRecordRes); 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_resourcesCenter_proto_rawDesc, NumEnums: 0, NumMessages: 13, NumExtensions: 0, NumServices: 1, }, GoTypes: file_resourcesCenter_proto_goTypes, DependencyIndexes: file_resourcesCenter_proto_depIdxs, MessageInfos: file_resourcesCenter_proto_msgTypes, }.Build() File_resourcesCenter_proto = out.File file_resourcesCenter_proto_rawDesc = nil file_resourcesCenter_proto_goTypes = nil file_resourcesCenter_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // ResourcesCenterClient is the client API for ResourcesCenter service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type ResourcesCenterClient interface { //查询账户资源权限 FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) //查询账户资源余额 FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) //查询流水账 FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) //根据账户标识修改资源结存账 UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error) //根据账户标识记录资源使用流水账 UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error) //预览信息 FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) } type resourcesCenterClient struct { cc grpc.ClientConnInterface } func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient { return &resourcesCenterClient{cc} } func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) { out := new(AccountBalanceRes) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findResourcesAuth", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) { out := new(AccountBalanceRes) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findAccountBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) { out := new(ConsumeRecordRes) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findConsumeRecord", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *resourcesCenterClient) UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *resourcesCenterClient) UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserDetailed", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *resourcesCenterClient) FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) { out := new(ConsumeRecordRes) err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findPreview", in, out, opts...) if err != nil { return nil, err } return out, nil } // ResourcesCenterServer is the server API for ResourcesCenter service. type ResourcesCenterServer interface { //查询账户资源权限 FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error) //查询账户资源余额 FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) //查询流水账 FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error) //根据账户标识修改资源结存账 UpdateUserBalance(context.Context, *Balance) (*Response, error) //根据账户标识记录资源使用流水账 UpdateUserDetailed(context.Context, *Detailed) (*Response, error) //预览信息 FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error) } // UnimplementedResourcesCenterServer can be embedded to have forward compatible implementations. type UnimplementedResourcesCenterServer struct { } func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error) { return nil, status.Errorf(codes.Unimplemented, "method FindResourcesAuth not implemented") } func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) { return nil, status.Errorf(codes.Unimplemented, "method FindAccountBalance not implemented") } func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error) { return nil, status.Errorf(codes.Unimplemented, "method FindConsumeRecord not implemented") } func (*UnimplementedResourcesCenterServer) UpdateUserBalance(context.Context, *Balance) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateUserBalance not implemented") } func (*UnimplementedResourcesCenterServer) UpdateUserDetailed(context.Context, *Detailed) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateUserDetailed not implemented") } func (*UnimplementedResourcesCenterServer) FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error) { return nil, status.Errorf(codes.Unimplemented, "method FindPreview not implemented") } func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) { s.RegisterService(&_ResourcesCenter_serviceDesc, srv) } func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResourcesReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/FindResourcesAuth", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesReq)) } return interceptor(ctx, in, info, handler) } func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ResourcesReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).FindAccountBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/FindAccountBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*ResourcesReq)) } return interceptor(ctx, in, info, handler) } func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RecordReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/FindConsumeRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*RecordReq)) } return interceptor(ctx, in, info, handler) } func _ResourcesCenter_UpdateUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Balance) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, req.(*Balance)) } return interceptor(ctx, in, info, handler) } func _ResourcesCenter_UpdateUserDetailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(Detailed) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserDetailed", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, req.(*Detailed)) } return interceptor(ctx, in, info, handler) } func _ResourcesCenter_FindPreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PreviewReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ResourcesCenterServer).FindPreview(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/resourcesCenter.ResourcesCenter/FindPreview", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ResourcesCenterServer).FindPreview(ctx, req.(*PreviewReq)) } return interceptor(ctx, in, info, handler) } var _ResourcesCenter_serviceDesc = grpc.ServiceDesc{ ServiceName: "resourcesCenter.ResourcesCenter", HandlerType: (*ResourcesCenterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "findResourcesAuth", Handler: _ResourcesCenter_FindResourcesAuth_Handler, }, { MethodName: "findAccountBalance", Handler: _ResourcesCenter_FindAccountBalance_Handler, }, { MethodName: "findConsumeRecord", Handler: _ResourcesCenter_FindConsumeRecord_Handler, }, { MethodName: "updateUserBalance", Handler: _ResourcesCenter_UpdateUserBalance_Handler, }, { MethodName: "updateUserDetailed", Handler: _ResourcesCenter_UpdateUserDetailed_Handler, }, { MethodName: "findPreview", Handler: _ResourcesCenter_FindPreview_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "resourcesCenter.proto", }