123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425 |
- // 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 int64 `protobuf:"varint,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"` //用户标识
- }
- 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() int64 {
- if x != nil {
- return x.RuleId
- }
- return 0
- }
- 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 ""
- }
- 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"`
- AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,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) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- 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"`
- AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //用户标识
- CompanyId int64 `protobuf:"varint,3,opt,name=companyId,proto3" json:"companyId,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"`
- DeductionType int64 `protobuf:"varint,6,opt,name=deductionType,proto3" json:"deductionType,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"`
- DepartmentId int64 `protobuf:"varint,10,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
- UserId string `protobuf:"bytes,11,opt,name=userId,proto3" json:"userId,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) GetAccountId() string {
- if x != nil {
- return x.AccountId
- }
- return ""
- }
- func (x *ConsumeRecord) GetCompanyId() int64 {
- if x != nil {
- return x.CompanyId
- }
- return 0
- }
- 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) GetDeductionType() int64 {
- if x != nil {
- return x.DeductionType
- }
- 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) GetDepartmentId() int64 {
- if x != nil {
- return x.DepartmentId
- }
- return 0
- }
- func (x *ConsumeRecord) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- 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 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[7]
- 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[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 ResourcesAuthRes.ProtoReflect.Descriptor instead.
- func (*ResourcesAuthRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{7}
- }
- 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[8]
- 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[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 AccountBalanceRes.ProtoReflect.Descriptor instead.
- func (*AccountBalanceRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
- }
- 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 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"`
- }
- func (x *ConsumeRecordRes) Reset() {
- *x = ConsumeRecordRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_resourcesCenter_proto_msgTypes[9]
- 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[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 ConsumeRecordRes.ProtoReflect.Descriptor instead.
- func (*ConsumeRecordRes) Descriptor() ([]byte, []int) {
- return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
- }
- 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
- }
- 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, 0xbe,
- 0x02, 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, 0x03, 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, 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, 0xa3, 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, 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, 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, 0xd3, 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, 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, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d,
- 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x03, 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, 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, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
- 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, 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, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
- 0x74, 0x49, 0x64, 0x18, 0x0a, 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, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 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, 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, 0x74, 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, 0x32, 0xaf, 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, 0x55, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43,
- 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 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, 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, 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, 10)
- 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
- (*ResourcesAuthRes)(nil), // 7: resourcesCenter.ResourcesAuthRes
- (*AccountBalanceRes)(nil), // 8: resourcesCenter.AccountBalanceRes
- (*ConsumeRecordRes)(nil), // 9: 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
- 6, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.ResourcesReq
- 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
- 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
- 8, // 8: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.AccountBalanceRes
- 8, // 9: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
- 9, // 10: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
- 0, // 11: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
- 0, // 12: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
- 8, // [8:13] is the sub-list for method output_type
- 3, // [3:8] 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.(*ResourcesAuthRes); 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.(*AccountBalanceRes); 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.(*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: 10,
- 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 *ResourcesReq, 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)
- }
- 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 *ResourcesReq, 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
- }
- // 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, *ResourcesReq) (*ConsumeRecordRes, error)
- //根据账户标识修改资源结存账
- UpdateUserBalance(context.Context, *Balance) (*Response, error)
- //根据账户标识记录资源使用流水账
- UpdateUserDetailed(context.Context, *Detailed) (*Response, 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, *ResourcesReq) (*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 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(ResourcesReq)
- 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.(*ResourcesReq))
- }
- 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)
- }
- 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,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "resourcesCenter.proto",
- }
|