resourcesCenter.pb.go 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.1
  5. // source: resourcesCenter.proto
  6. package resourcesCenter
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. //option go_package = "resourcesCenter/";
  28. type Response struct {
  29. state protoimpl.MessageState
  30. sizeCache protoimpl.SizeCache
  31. unknownFields protoimpl.UnknownFields
  32. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  33. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  34. }
  35. func (x *Response) Reset() {
  36. *x = Response{}
  37. if protoimpl.UnsafeEnabled {
  38. mi := &file_resourcesCenter_proto_msgTypes[0]
  39. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  40. ms.StoreMessageInfo(mi)
  41. }
  42. }
  43. func (x *Response) String() string {
  44. return protoimpl.X.MessageStringOf(x)
  45. }
  46. func (*Response) ProtoMessage() {}
  47. func (x *Response) ProtoReflect() protoreflect.Message {
  48. mi := &file_resourcesCenter_proto_msgTypes[0]
  49. if protoimpl.UnsafeEnabled && x != nil {
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. if ms.LoadMessageInfo() == nil {
  52. ms.StoreMessageInfo(mi)
  53. }
  54. return ms
  55. }
  56. return mi.MessageOf(x)
  57. }
  58. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  59. func (*Response) Descriptor() ([]byte, []int) {
  60. return file_resourcesCenter_proto_rawDescGZIP(), []int{0}
  61. }
  62. func (x *Response) GetCode() int64 {
  63. if x != nil {
  64. return x.Code
  65. }
  66. return 0
  67. }
  68. func (x *Response) GetMessage() string {
  69. if x != nil {
  70. return x.Message
  71. }
  72. return ""
  73. }
  74. type Balance struct {
  75. state protoimpl.MessageState
  76. sizeCache protoimpl.SizeCache
  77. unknownFields protoimpl.UnknownFields
  78. AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
  79. CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识
  80. DepartmentId int64 `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
  81. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` //资源名称
  82. ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型
  83. Number int64 `protobuf:"varint,6,opt,name=number,proto3" json:"number,omitempty"` //数量
  84. Spec string `protobuf:"bytes,7,opt,name=spec,proto3" json:"spec,omitempty"` //规格
  85. AppId string `protobuf:"bytes,8,opt,name=appId,proto3" json:"appId,omitempty"` //标识
  86. Model int64 `protobuf:"varint,9,opt,name=model,proto3" json:"model,omitempty"` //操作类型0使用1新增
  87. }
  88. func (x *Balance) Reset() {
  89. *x = Balance{}
  90. if protoimpl.UnsafeEnabled {
  91. mi := &file_resourcesCenter_proto_msgTypes[1]
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. ms.StoreMessageInfo(mi)
  94. }
  95. }
  96. func (x *Balance) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*Balance) ProtoMessage() {}
  100. func (x *Balance) ProtoReflect() protoreflect.Message {
  101. mi := &file_resourcesCenter_proto_msgTypes[1]
  102. if protoimpl.UnsafeEnabled && x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use Balance.ProtoReflect.Descriptor instead.
  112. func (*Balance) Descriptor() ([]byte, []int) {
  113. return file_resourcesCenter_proto_rawDescGZIP(), []int{1}
  114. }
  115. func (x *Balance) GetAccountId() string {
  116. if x != nil {
  117. return x.AccountId
  118. }
  119. return ""
  120. }
  121. func (x *Balance) GetCompanyId() int64 {
  122. if x != nil {
  123. return x.CompanyId
  124. }
  125. return 0
  126. }
  127. func (x *Balance) GetDepartmentId() int64 {
  128. if x != nil {
  129. return x.DepartmentId
  130. }
  131. return 0
  132. }
  133. func (x *Balance) GetName() string {
  134. if x != nil {
  135. return x.Name
  136. }
  137. return ""
  138. }
  139. func (x *Balance) GetResourceType() string {
  140. if x != nil {
  141. return x.ResourceType
  142. }
  143. return ""
  144. }
  145. func (x *Balance) GetNumber() int64 {
  146. if x != nil {
  147. return x.Number
  148. }
  149. return 0
  150. }
  151. func (x *Balance) GetSpec() string {
  152. if x != nil {
  153. return x.Spec
  154. }
  155. return ""
  156. }
  157. func (x *Balance) GetAppId() string {
  158. if x != nil {
  159. return x.AppId
  160. }
  161. return ""
  162. }
  163. func (x *Balance) GetModel() int64 {
  164. if x != nil {
  165. return x.Model
  166. }
  167. return 0
  168. }
  169. type Detailed struct {
  170. state protoimpl.MessageState
  171. sizeCache protoimpl.SizeCache
  172. unknownFields protoimpl.UnknownFields
  173. AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
  174. CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //企业标识
  175. ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源类型
  176. ExportNum int64 `protobuf:"varint,4,opt,name=exportNum,proto3" json:"exportNum,omitempty"` //导出数量
  177. DeductionType string `protobuf:"bytes,5,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //扣费类型(1高级字段包)
  178. RuleId int64 `protobuf:"varint,6,opt,name=ruleId,proto3" json:"ruleId,omitempty"` //使用规则标识
  179. ExportTime int64 `protobuf:"varint,7,opt,name=exportTime,proto3" json:"exportTime,omitempty"` //导出时间
  180. UserType int64 `protobuf:"varint,8,opt,name=userType,proto3" json:"userType,omitempty"` //流水类型0使用1新增
  181. DepartmentId int64 `protobuf:"varint,9,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //组织标识
  182. UserId string `protobuf:"bytes,10,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
  183. }
  184. func (x *Detailed) Reset() {
  185. *x = Detailed{}
  186. if protoimpl.UnsafeEnabled {
  187. mi := &file_resourcesCenter_proto_msgTypes[2]
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. ms.StoreMessageInfo(mi)
  190. }
  191. }
  192. func (x *Detailed) String() string {
  193. return protoimpl.X.MessageStringOf(x)
  194. }
  195. func (*Detailed) ProtoMessage() {}
  196. func (x *Detailed) ProtoReflect() protoreflect.Message {
  197. mi := &file_resourcesCenter_proto_msgTypes[2]
  198. if protoimpl.UnsafeEnabled && x != nil {
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. if ms.LoadMessageInfo() == nil {
  201. ms.StoreMessageInfo(mi)
  202. }
  203. return ms
  204. }
  205. return mi.MessageOf(x)
  206. }
  207. // Deprecated: Use Detailed.ProtoReflect.Descriptor instead.
  208. func (*Detailed) Descriptor() ([]byte, []int) {
  209. return file_resourcesCenter_proto_rawDescGZIP(), []int{2}
  210. }
  211. func (x *Detailed) GetAccountId() string {
  212. if x != nil {
  213. return x.AccountId
  214. }
  215. return ""
  216. }
  217. func (x *Detailed) GetCompanyId() int64 {
  218. if x != nil {
  219. return x.CompanyId
  220. }
  221. return 0
  222. }
  223. func (x *Detailed) GetResourceType() string {
  224. if x != nil {
  225. return x.ResourceType
  226. }
  227. return ""
  228. }
  229. func (x *Detailed) GetExportNum() int64 {
  230. if x != nil {
  231. return x.ExportNum
  232. }
  233. return 0
  234. }
  235. func (x *Detailed) GetDeductionType() string {
  236. if x != nil {
  237. return x.DeductionType
  238. }
  239. return ""
  240. }
  241. func (x *Detailed) GetRuleId() int64 {
  242. if x != nil {
  243. return x.RuleId
  244. }
  245. return 0
  246. }
  247. func (x *Detailed) GetExportTime() int64 {
  248. if x != nil {
  249. return x.ExportTime
  250. }
  251. return 0
  252. }
  253. func (x *Detailed) GetUserType() int64 {
  254. if x != nil {
  255. return x.UserType
  256. }
  257. return 0
  258. }
  259. func (x *Detailed) GetDepartmentId() int64 {
  260. if x != nil {
  261. return x.DepartmentId
  262. }
  263. return 0
  264. }
  265. func (x *Detailed) GetUserId() string {
  266. if x != nil {
  267. return x.UserId
  268. }
  269. return ""
  270. }
  271. type ResourcesAuth struct {
  272. state protoimpl.MessageState
  273. sizeCache protoimpl.SizeCache
  274. unknownFields protoimpl.UnknownFields
  275. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  276. AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
  277. ResourcesId int64 `protobuf:"varint,3,opt,name=resourcesId,proto3" json:"resourcesId,omitempty"` //资源标识
  278. Quota int64 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"` //定额
  279. Ratio int64 `protobuf:"varint,5,opt,name=ratio,proto3" json:"ratio,omitempty"` //比例
  280. State int64 `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` //状态
  281. }
  282. func (x *ResourcesAuth) Reset() {
  283. *x = ResourcesAuth{}
  284. if protoimpl.UnsafeEnabled {
  285. mi := &file_resourcesCenter_proto_msgTypes[3]
  286. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  287. ms.StoreMessageInfo(mi)
  288. }
  289. }
  290. func (x *ResourcesAuth) String() string {
  291. return protoimpl.X.MessageStringOf(x)
  292. }
  293. func (*ResourcesAuth) ProtoMessage() {}
  294. func (x *ResourcesAuth) ProtoReflect() protoreflect.Message {
  295. mi := &file_resourcesCenter_proto_msgTypes[3]
  296. if protoimpl.UnsafeEnabled && x != nil {
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. if ms.LoadMessageInfo() == nil {
  299. ms.StoreMessageInfo(mi)
  300. }
  301. return ms
  302. }
  303. return mi.MessageOf(x)
  304. }
  305. // Deprecated: Use ResourcesAuth.ProtoReflect.Descriptor instead.
  306. func (*ResourcesAuth) Descriptor() ([]byte, []int) {
  307. return file_resourcesCenter_proto_rawDescGZIP(), []int{3}
  308. }
  309. func (x *ResourcesAuth) GetId() int64 {
  310. if x != nil {
  311. return x.Id
  312. }
  313. return 0
  314. }
  315. func (x *ResourcesAuth) GetAccountId() string {
  316. if x != nil {
  317. return x.AccountId
  318. }
  319. return ""
  320. }
  321. func (x *ResourcesAuth) GetResourcesId() int64 {
  322. if x != nil {
  323. return x.ResourcesId
  324. }
  325. return 0
  326. }
  327. func (x *ResourcesAuth) GetQuota() int64 {
  328. if x != nil {
  329. return x.Quota
  330. }
  331. return 0
  332. }
  333. func (x *ResourcesAuth) GetRatio() int64 {
  334. if x != nil {
  335. return x.Ratio
  336. }
  337. return 0
  338. }
  339. func (x *ResourcesAuth) GetState() int64 {
  340. if x != nil {
  341. return x.State
  342. }
  343. return 0
  344. }
  345. type ResourceBalance struct {
  346. state protoimpl.MessageState
  347. sizeCache protoimpl.SizeCache
  348. unknownFields protoimpl.UnknownFields
  349. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  350. AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //人员标识
  351. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称
  352. Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量
  353. ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源代码
  354. Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格
  355. }
  356. func (x *ResourceBalance) Reset() {
  357. *x = ResourceBalance{}
  358. if protoimpl.UnsafeEnabled {
  359. mi := &file_resourcesCenter_proto_msgTypes[4]
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. ms.StoreMessageInfo(mi)
  362. }
  363. }
  364. func (x *ResourceBalance) String() string {
  365. return protoimpl.X.MessageStringOf(x)
  366. }
  367. func (*ResourceBalance) ProtoMessage() {}
  368. func (x *ResourceBalance) ProtoReflect() protoreflect.Message {
  369. mi := &file_resourcesCenter_proto_msgTypes[4]
  370. if protoimpl.UnsafeEnabled && x != nil {
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. if ms.LoadMessageInfo() == nil {
  373. ms.StoreMessageInfo(mi)
  374. }
  375. return ms
  376. }
  377. return mi.MessageOf(x)
  378. }
  379. // Deprecated: Use ResourceBalance.ProtoReflect.Descriptor instead.
  380. func (*ResourceBalance) Descriptor() ([]byte, []int) {
  381. return file_resourcesCenter_proto_rawDescGZIP(), []int{4}
  382. }
  383. func (x *ResourceBalance) GetId() int64 {
  384. if x != nil {
  385. return x.Id
  386. }
  387. return 0
  388. }
  389. func (x *ResourceBalance) GetAccountId() string {
  390. if x != nil {
  391. return x.AccountId
  392. }
  393. return ""
  394. }
  395. func (x *ResourceBalance) GetName() string {
  396. if x != nil {
  397. return x.Name
  398. }
  399. return ""
  400. }
  401. func (x *ResourceBalance) GetNumber() int64 {
  402. if x != nil {
  403. return x.Number
  404. }
  405. return 0
  406. }
  407. func (x *ResourceBalance) GetResourceType() string {
  408. if x != nil {
  409. return x.ResourceType
  410. }
  411. return ""
  412. }
  413. func (x *ResourceBalance) GetSpec() string {
  414. if x != nil {
  415. return x.Spec
  416. }
  417. return ""
  418. }
  419. type ConsumeRecord struct {
  420. state protoimpl.MessageState
  421. sizeCache protoimpl.SizeCache
  422. unknownFields protoimpl.UnknownFields
  423. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  424. AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //用户标识
  425. CompanyId int64 `protobuf:"varint,3,opt,name=companyId,proto3" json:"companyId,omitempty"` //用户标识
  426. ResourceType string `protobuf:"bytes,4,opt,name=resourceType,proto3" json:"resourceType,omitempty"`
  427. ExportNum int64 `protobuf:"varint,5,opt,name=exportNum,proto3" json:"exportNum,omitempty"`
  428. DeductionType int64 `protobuf:"varint,6,opt,name=deductionType,proto3" json:"deductionType,omitempty"`
  429. RuleId int64 `protobuf:"varint,7,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
  430. ExportTime string `protobuf:"bytes,8,opt,name=exportTime,proto3" json:"exportTime,omitempty"`
  431. UserType int64 `protobuf:"varint,9,opt,name=userType,proto3" json:"userType,omitempty"`
  432. DepartmentId int64 `protobuf:"varint,10,opt,name=departmentId,proto3" json:"departmentId,omitempty"`
  433. UserId string `protobuf:"bytes,11,opt,name=userId,proto3" json:"userId,omitempty"`
  434. }
  435. func (x *ConsumeRecord) Reset() {
  436. *x = ConsumeRecord{}
  437. if protoimpl.UnsafeEnabled {
  438. mi := &file_resourcesCenter_proto_msgTypes[5]
  439. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  440. ms.StoreMessageInfo(mi)
  441. }
  442. }
  443. func (x *ConsumeRecord) String() string {
  444. return protoimpl.X.MessageStringOf(x)
  445. }
  446. func (*ConsumeRecord) ProtoMessage() {}
  447. func (x *ConsumeRecord) ProtoReflect() protoreflect.Message {
  448. mi := &file_resourcesCenter_proto_msgTypes[5]
  449. if protoimpl.UnsafeEnabled && x != nil {
  450. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  451. if ms.LoadMessageInfo() == nil {
  452. ms.StoreMessageInfo(mi)
  453. }
  454. return ms
  455. }
  456. return mi.MessageOf(x)
  457. }
  458. // Deprecated: Use ConsumeRecord.ProtoReflect.Descriptor instead.
  459. func (*ConsumeRecord) Descriptor() ([]byte, []int) {
  460. return file_resourcesCenter_proto_rawDescGZIP(), []int{5}
  461. }
  462. func (x *ConsumeRecord) GetId() int64 {
  463. if x != nil {
  464. return x.Id
  465. }
  466. return 0
  467. }
  468. func (x *ConsumeRecord) GetAccountId() string {
  469. if x != nil {
  470. return x.AccountId
  471. }
  472. return ""
  473. }
  474. func (x *ConsumeRecord) GetCompanyId() int64 {
  475. if x != nil {
  476. return x.CompanyId
  477. }
  478. return 0
  479. }
  480. func (x *ConsumeRecord) GetResourceType() string {
  481. if x != nil {
  482. return x.ResourceType
  483. }
  484. return ""
  485. }
  486. func (x *ConsumeRecord) GetExportNum() int64 {
  487. if x != nil {
  488. return x.ExportNum
  489. }
  490. return 0
  491. }
  492. func (x *ConsumeRecord) GetDeductionType() int64 {
  493. if x != nil {
  494. return x.DeductionType
  495. }
  496. return 0
  497. }
  498. func (x *ConsumeRecord) GetRuleId() int64 {
  499. if x != nil {
  500. return x.RuleId
  501. }
  502. return 0
  503. }
  504. func (x *ConsumeRecord) GetExportTime() string {
  505. if x != nil {
  506. return x.ExportTime
  507. }
  508. return ""
  509. }
  510. func (x *ConsumeRecord) GetUserType() int64 {
  511. if x != nil {
  512. return x.UserType
  513. }
  514. return 0
  515. }
  516. func (x *ConsumeRecord) GetDepartmentId() int64 {
  517. if x != nil {
  518. return x.DepartmentId
  519. }
  520. return 0
  521. }
  522. func (x *ConsumeRecord) GetUserId() string {
  523. if x != nil {
  524. return x.UserId
  525. }
  526. return ""
  527. }
  528. type ResourcesReq struct {
  529. state protoimpl.MessageState
  530. sizeCache protoimpl.SizeCache
  531. unknownFields protoimpl.UnknownFields
  532. AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
  533. }
  534. func (x *ResourcesReq) Reset() {
  535. *x = ResourcesReq{}
  536. if protoimpl.UnsafeEnabled {
  537. mi := &file_resourcesCenter_proto_msgTypes[6]
  538. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  539. ms.StoreMessageInfo(mi)
  540. }
  541. }
  542. func (x *ResourcesReq) String() string {
  543. return protoimpl.X.MessageStringOf(x)
  544. }
  545. func (*ResourcesReq) ProtoMessage() {}
  546. func (x *ResourcesReq) ProtoReflect() protoreflect.Message {
  547. mi := &file_resourcesCenter_proto_msgTypes[6]
  548. if protoimpl.UnsafeEnabled && x != nil {
  549. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  550. if ms.LoadMessageInfo() == nil {
  551. ms.StoreMessageInfo(mi)
  552. }
  553. return ms
  554. }
  555. return mi.MessageOf(x)
  556. }
  557. // Deprecated: Use ResourcesReq.ProtoReflect.Descriptor instead.
  558. func (*ResourcesReq) Descriptor() ([]byte, []int) {
  559. return file_resourcesCenter_proto_rawDescGZIP(), []int{6}
  560. }
  561. func (x *ResourcesReq) GetAccountId() string {
  562. if x != nil {
  563. return x.AccountId
  564. }
  565. return ""
  566. }
  567. //根据账户标识查询资源权限请求参数
  568. type ResourcesAuthRes struct {
  569. state protoimpl.MessageState
  570. sizeCache protoimpl.SizeCache
  571. unknownFields protoimpl.UnknownFields
  572. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  573. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  574. Data []*ResourcesAuth `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //账号拥有的资源权限
  575. }
  576. func (x *ResourcesAuthRes) Reset() {
  577. *x = ResourcesAuthRes{}
  578. if protoimpl.UnsafeEnabled {
  579. mi := &file_resourcesCenter_proto_msgTypes[7]
  580. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  581. ms.StoreMessageInfo(mi)
  582. }
  583. }
  584. func (x *ResourcesAuthRes) String() string {
  585. return protoimpl.X.MessageStringOf(x)
  586. }
  587. func (*ResourcesAuthRes) ProtoMessage() {}
  588. func (x *ResourcesAuthRes) ProtoReflect() protoreflect.Message {
  589. mi := &file_resourcesCenter_proto_msgTypes[7]
  590. if protoimpl.UnsafeEnabled && x != nil {
  591. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  592. if ms.LoadMessageInfo() == nil {
  593. ms.StoreMessageInfo(mi)
  594. }
  595. return ms
  596. }
  597. return mi.MessageOf(x)
  598. }
  599. // Deprecated: Use ResourcesAuthRes.ProtoReflect.Descriptor instead.
  600. func (*ResourcesAuthRes) Descriptor() ([]byte, []int) {
  601. return file_resourcesCenter_proto_rawDescGZIP(), []int{7}
  602. }
  603. func (x *ResourcesAuthRes) GetCode() int64 {
  604. if x != nil {
  605. return x.Code
  606. }
  607. return 0
  608. }
  609. func (x *ResourcesAuthRes) GetMessage() string {
  610. if x != nil {
  611. return x.Message
  612. }
  613. return ""
  614. }
  615. func (x *ResourcesAuthRes) GetData() []*ResourcesAuth {
  616. if x != nil {
  617. return x.Data
  618. }
  619. return nil
  620. }
  621. //根据账户标识查询账户余额
  622. type AccountBalanceRes struct {
  623. state protoimpl.MessageState
  624. sizeCache protoimpl.SizeCache
  625. unknownFields protoimpl.UnknownFields
  626. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  627. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  628. Data []*ResourceBalance `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  629. }
  630. func (x *AccountBalanceRes) Reset() {
  631. *x = AccountBalanceRes{}
  632. if protoimpl.UnsafeEnabled {
  633. mi := &file_resourcesCenter_proto_msgTypes[8]
  634. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  635. ms.StoreMessageInfo(mi)
  636. }
  637. }
  638. func (x *AccountBalanceRes) String() string {
  639. return protoimpl.X.MessageStringOf(x)
  640. }
  641. func (*AccountBalanceRes) ProtoMessage() {}
  642. func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message {
  643. mi := &file_resourcesCenter_proto_msgTypes[8]
  644. if protoimpl.UnsafeEnabled && x != nil {
  645. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  646. if ms.LoadMessageInfo() == nil {
  647. ms.StoreMessageInfo(mi)
  648. }
  649. return ms
  650. }
  651. return mi.MessageOf(x)
  652. }
  653. // Deprecated: Use AccountBalanceRes.ProtoReflect.Descriptor instead.
  654. func (*AccountBalanceRes) Descriptor() ([]byte, []int) {
  655. return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
  656. }
  657. func (x *AccountBalanceRes) GetCode() int64 {
  658. if x != nil {
  659. return x.Code
  660. }
  661. return 0
  662. }
  663. func (x *AccountBalanceRes) GetMessage() string {
  664. if x != nil {
  665. return x.Message
  666. }
  667. return ""
  668. }
  669. func (x *AccountBalanceRes) GetData() []*ResourceBalance {
  670. if x != nil {
  671. return x.Data
  672. }
  673. return nil
  674. }
  675. //查询流水账
  676. type ConsumeRecordRes struct {
  677. state protoimpl.MessageState
  678. sizeCache protoimpl.SizeCache
  679. unknownFields protoimpl.UnknownFields
  680. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  681. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  682. Data []*ConsumeRecord `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  683. }
  684. func (x *ConsumeRecordRes) Reset() {
  685. *x = ConsumeRecordRes{}
  686. if protoimpl.UnsafeEnabled {
  687. mi := &file_resourcesCenter_proto_msgTypes[9]
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. ms.StoreMessageInfo(mi)
  690. }
  691. }
  692. func (x *ConsumeRecordRes) String() string {
  693. return protoimpl.X.MessageStringOf(x)
  694. }
  695. func (*ConsumeRecordRes) ProtoMessage() {}
  696. func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message {
  697. mi := &file_resourcesCenter_proto_msgTypes[9]
  698. if protoimpl.UnsafeEnabled && x != nil {
  699. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  700. if ms.LoadMessageInfo() == nil {
  701. ms.StoreMessageInfo(mi)
  702. }
  703. return ms
  704. }
  705. return mi.MessageOf(x)
  706. }
  707. // Deprecated: Use ConsumeRecordRes.ProtoReflect.Descriptor instead.
  708. func (*ConsumeRecordRes) Descriptor() ([]byte, []int) {
  709. return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
  710. }
  711. func (x *ConsumeRecordRes) GetCode() int64 {
  712. if x != nil {
  713. return x.Code
  714. }
  715. return 0
  716. }
  717. func (x *ConsumeRecordRes) GetMessage() string {
  718. if x != nil {
  719. return x.Message
  720. }
  721. return ""
  722. }
  723. func (x *ConsumeRecordRes) GetData() []*ConsumeRecord {
  724. if x != nil {
  725. return x.Data
  726. }
  727. return nil
  728. }
  729. var File_resourcesCenter_proto protoreflect.FileDescriptor
  730. var file_resourcesCenter_proto_rawDesc = []byte{
  731. 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
  732. 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  733. 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70,
  734. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
  735. 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
  736. 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  737. 0x67, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c,
  738. 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  739. 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
  740. 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  741. 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65,
  742. 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
  743. 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12,
  744. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  745. 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,
  746. 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  747. 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
  748. 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12,
  749. 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70,
  750. 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
  751. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65,
  752. 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xbe,
  753. 0x02, 0x0a, 0x08, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61,
  754. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  755. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d,
  756. 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f,
  757. 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
  758. 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72,
  759. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65,
  760. 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  761. 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64,
  762. 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  763. 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
  764. 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
  765. 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72,
  766. 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70,
  767. 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  768. 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  769. 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
  770. 0x74, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72,
  771. 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  772. 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
  773. 0xa1, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74,
  774. 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69,
  775. 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02,
  776. 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
  777. 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x18, 0x03,
  778. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49,
  779. 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
  780. 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f,
  781. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x14, 0x0a,
  782. 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74,
  783. 0x61, 0x74, 0x65, 0x22, 0xa3, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
  784. 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
  785. 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75,
  786. 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f,
  787. 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
  788. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d,
  789. 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  790. 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
  791. 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  792. 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20,
  793. 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xd3, 0x02, 0x0a, 0x0d, 0x43, 0x6f,
  794. 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  795. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61,
  796. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  797. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d,
  798. 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f,
  799. 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
  800. 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72,
  801. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65,
  802. 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  803. 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64,
  804. 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03,
  805. 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
  806. 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52,
  807. 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72,
  808. 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70,
  809. 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  810. 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  811. 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
  812. 0x74, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72,
  813. 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  814. 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
  815. 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12,
  816. 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  817. 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x74, 0x0a,
  818. 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
  819. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  820. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  821. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  822. 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
  823. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
  824. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64,
  825. 0x61, 0x74, 0x61, 0x22, 0x77, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61,
  826. 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65,
  827. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07,
  828. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d,
  829. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
  830. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  831. 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42,
  832. 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x74, 0x0a, 0x10,
  833. 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73,
  834. 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
  835. 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18,
  836. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32,
  837. 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72,
  838. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43,
  839. 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61,
  840. 0x74, 0x61, 0x32, 0xaf, 0x03, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  841. 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65,
  842. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65,
  843. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
  844. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73,
  845. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63,
  846. 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57,
  847. 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c,
  848. 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  849. 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  850. 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
  851. 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c,
  852. 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x55, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43,
  853. 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x72,
  854. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52,
  855. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65,
  856. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f,
  857. 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x48,
  858. 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61,
  859. 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
  860. 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x19, 0x2e,
  861. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
  862. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61,
  863. 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x19,
  864. 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
  865. 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f,
  866. 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70,
  867. 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  868. }
  869. var (
  870. file_resourcesCenter_proto_rawDescOnce sync.Once
  871. file_resourcesCenter_proto_rawDescData = file_resourcesCenter_proto_rawDesc
  872. )
  873. func file_resourcesCenter_proto_rawDescGZIP() []byte {
  874. file_resourcesCenter_proto_rawDescOnce.Do(func() {
  875. file_resourcesCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_resourcesCenter_proto_rawDescData)
  876. })
  877. return file_resourcesCenter_proto_rawDescData
  878. }
  879. var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  880. var file_resourcesCenter_proto_goTypes = []interface{}{
  881. (*Response)(nil), // 0: resourcesCenter.Response
  882. (*Balance)(nil), // 1: resourcesCenter.Balance
  883. (*Detailed)(nil), // 2: resourcesCenter.Detailed
  884. (*ResourcesAuth)(nil), // 3: resourcesCenter.ResourcesAuth
  885. (*ResourceBalance)(nil), // 4: resourcesCenter.ResourceBalance
  886. (*ConsumeRecord)(nil), // 5: resourcesCenter.ConsumeRecord
  887. (*ResourcesReq)(nil), // 6: resourcesCenter.ResourcesReq
  888. (*ResourcesAuthRes)(nil), // 7: resourcesCenter.ResourcesAuthRes
  889. (*AccountBalanceRes)(nil), // 8: resourcesCenter.AccountBalanceRes
  890. (*ConsumeRecordRes)(nil), // 9: resourcesCenter.ConsumeRecordRes
  891. }
  892. var file_resourcesCenter_proto_depIdxs = []int32{
  893. 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth
  894. 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance
  895. 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord
  896. 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesReq
  897. 6, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.ResourcesReq
  898. 6, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.ResourcesReq
  899. 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
  900. 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
  901. 8, // 8: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.AccountBalanceRes
  902. 8, // 9: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
  903. 9, // 10: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
  904. 0, // 11: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
  905. 0, // 12: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
  906. 8, // [8:13] is the sub-list for method output_type
  907. 3, // [3:8] is the sub-list for method input_type
  908. 3, // [3:3] is the sub-list for extension type_name
  909. 3, // [3:3] is the sub-list for extension extendee
  910. 0, // [0:3] is the sub-list for field type_name
  911. }
  912. func init() { file_resourcesCenter_proto_init() }
  913. func file_resourcesCenter_proto_init() {
  914. if File_resourcesCenter_proto != nil {
  915. return
  916. }
  917. if !protoimpl.UnsafeEnabled {
  918. file_resourcesCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  919. switch v := v.(*Response); i {
  920. case 0:
  921. return &v.state
  922. case 1:
  923. return &v.sizeCache
  924. case 2:
  925. return &v.unknownFields
  926. default:
  927. return nil
  928. }
  929. }
  930. file_resourcesCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  931. switch v := v.(*Balance); i {
  932. case 0:
  933. return &v.state
  934. case 1:
  935. return &v.sizeCache
  936. case 2:
  937. return &v.unknownFields
  938. default:
  939. return nil
  940. }
  941. }
  942. file_resourcesCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  943. switch v := v.(*Detailed); i {
  944. case 0:
  945. return &v.state
  946. case 1:
  947. return &v.sizeCache
  948. case 2:
  949. return &v.unknownFields
  950. default:
  951. return nil
  952. }
  953. }
  954. file_resourcesCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  955. switch v := v.(*ResourcesAuth); i {
  956. case 0:
  957. return &v.state
  958. case 1:
  959. return &v.sizeCache
  960. case 2:
  961. return &v.unknownFields
  962. default:
  963. return nil
  964. }
  965. }
  966. file_resourcesCenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  967. switch v := v.(*ResourceBalance); i {
  968. case 0:
  969. return &v.state
  970. case 1:
  971. return &v.sizeCache
  972. case 2:
  973. return &v.unknownFields
  974. default:
  975. return nil
  976. }
  977. }
  978. file_resourcesCenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  979. switch v := v.(*ConsumeRecord); i {
  980. case 0:
  981. return &v.state
  982. case 1:
  983. return &v.sizeCache
  984. case 2:
  985. return &v.unknownFields
  986. default:
  987. return nil
  988. }
  989. }
  990. file_resourcesCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  991. switch v := v.(*ResourcesReq); i {
  992. case 0:
  993. return &v.state
  994. case 1:
  995. return &v.sizeCache
  996. case 2:
  997. return &v.unknownFields
  998. default:
  999. return nil
  1000. }
  1001. }
  1002. file_resourcesCenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1003. switch v := v.(*ResourcesAuthRes); i {
  1004. case 0:
  1005. return &v.state
  1006. case 1:
  1007. return &v.sizeCache
  1008. case 2:
  1009. return &v.unknownFields
  1010. default:
  1011. return nil
  1012. }
  1013. }
  1014. file_resourcesCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1015. switch v := v.(*AccountBalanceRes); i {
  1016. case 0:
  1017. return &v.state
  1018. case 1:
  1019. return &v.sizeCache
  1020. case 2:
  1021. return &v.unknownFields
  1022. default:
  1023. return nil
  1024. }
  1025. }
  1026. file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1027. switch v := v.(*ConsumeRecordRes); i {
  1028. case 0:
  1029. return &v.state
  1030. case 1:
  1031. return &v.sizeCache
  1032. case 2:
  1033. return &v.unknownFields
  1034. default:
  1035. return nil
  1036. }
  1037. }
  1038. }
  1039. type x struct{}
  1040. out := protoimpl.TypeBuilder{
  1041. File: protoimpl.DescBuilder{
  1042. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1043. RawDescriptor: file_resourcesCenter_proto_rawDesc,
  1044. NumEnums: 0,
  1045. NumMessages: 10,
  1046. NumExtensions: 0,
  1047. NumServices: 1,
  1048. },
  1049. GoTypes: file_resourcesCenter_proto_goTypes,
  1050. DependencyIndexes: file_resourcesCenter_proto_depIdxs,
  1051. MessageInfos: file_resourcesCenter_proto_msgTypes,
  1052. }.Build()
  1053. File_resourcesCenter_proto = out.File
  1054. file_resourcesCenter_proto_rawDesc = nil
  1055. file_resourcesCenter_proto_goTypes = nil
  1056. file_resourcesCenter_proto_depIdxs = nil
  1057. }
  1058. // Reference imports to suppress errors if they are not otherwise used.
  1059. var _ context.Context
  1060. var _ grpc.ClientConnInterface
  1061. // This is a compile-time assertion to ensure that this generated file
  1062. // is compatible with the grpc package it is being compiled against.
  1063. const _ = grpc.SupportPackageIsVersion6
  1064. // ResourcesCenterClient is the client API for ResourcesCenter service.
  1065. //
  1066. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1067. type ResourcesCenterClient interface {
  1068. //查询账户资源权限
  1069. FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
  1070. //查询账户资源余额
  1071. FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
  1072. //查询流水账
  1073. FindConsumeRecord(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
  1074. //根据账户标识修改资源结存账
  1075. UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error)
  1076. //根据账户标识记录资源使用流水账
  1077. UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error)
  1078. }
  1079. type resourcesCenterClient struct {
  1080. cc grpc.ClientConnInterface
  1081. }
  1082. func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient {
  1083. return &resourcesCenterClient{cc}
  1084. }
  1085. func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
  1086. out := new(AccountBalanceRes)
  1087. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findResourcesAuth", in, out, opts...)
  1088. if err != nil {
  1089. return nil, err
  1090. }
  1091. return out, nil
  1092. }
  1093. func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
  1094. out := new(AccountBalanceRes)
  1095. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findAccountBalance", in, out, opts...)
  1096. if err != nil {
  1097. return nil, err
  1098. }
  1099. return out, nil
  1100. }
  1101. func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
  1102. out := new(ConsumeRecordRes)
  1103. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findConsumeRecord", in, out, opts...)
  1104. if err != nil {
  1105. return nil, err
  1106. }
  1107. return out, nil
  1108. }
  1109. func (c *resourcesCenterClient) UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error) {
  1110. out := new(Response)
  1111. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserBalance", in, out, opts...)
  1112. if err != nil {
  1113. return nil, err
  1114. }
  1115. return out, nil
  1116. }
  1117. func (c *resourcesCenterClient) UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error) {
  1118. out := new(Response)
  1119. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserDetailed", in, out, opts...)
  1120. if err != nil {
  1121. return nil, err
  1122. }
  1123. return out, nil
  1124. }
  1125. // ResourcesCenterServer is the server API for ResourcesCenter service.
  1126. type ResourcesCenterServer interface {
  1127. //查询账户资源权限
  1128. FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
  1129. //查询账户资源余额
  1130. FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
  1131. //查询流水账
  1132. FindConsumeRecord(context.Context, *ResourcesReq) (*ConsumeRecordRes, error)
  1133. //根据账户标识修改资源结存账
  1134. UpdateUserBalance(context.Context, *Balance) (*Response, error)
  1135. //根据账户标识记录资源使用流水账
  1136. UpdateUserDetailed(context.Context, *Detailed) (*Response, error)
  1137. }
  1138. // UnimplementedResourcesCenterServer can be embedded to have forward compatible implementations.
  1139. type UnimplementedResourcesCenterServer struct {
  1140. }
  1141. func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
  1142. return nil, status.Errorf(codes.Unimplemented, "method FindResourcesAuth not implemented")
  1143. }
  1144. func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
  1145. return nil, status.Errorf(codes.Unimplemented, "method FindAccountBalance not implemented")
  1146. }
  1147. func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *ResourcesReq) (*ConsumeRecordRes, error) {
  1148. return nil, status.Errorf(codes.Unimplemented, "method FindConsumeRecord not implemented")
  1149. }
  1150. func (*UnimplementedResourcesCenterServer) UpdateUserBalance(context.Context, *Balance) (*Response, error) {
  1151. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserBalance not implemented")
  1152. }
  1153. func (*UnimplementedResourcesCenterServer) UpdateUserDetailed(context.Context, *Detailed) (*Response, error) {
  1154. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserDetailed not implemented")
  1155. }
  1156. func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) {
  1157. s.RegisterService(&_ResourcesCenter_serviceDesc, srv)
  1158. }
  1159. func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1160. in := new(ResourcesReq)
  1161. if err := dec(in); err != nil {
  1162. return nil, err
  1163. }
  1164. if interceptor == nil {
  1165. return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, in)
  1166. }
  1167. info := &grpc.UnaryServerInfo{
  1168. Server: srv,
  1169. FullMethod: "/resourcesCenter.ResourcesCenter/FindResourcesAuth",
  1170. }
  1171. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1172. return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesReq))
  1173. }
  1174. return interceptor(ctx, in, info, handler)
  1175. }
  1176. func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1177. in := new(ResourcesReq)
  1178. if err := dec(in); err != nil {
  1179. return nil, err
  1180. }
  1181. if interceptor == nil {
  1182. return srv.(ResourcesCenterServer).FindAccountBalance(ctx, in)
  1183. }
  1184. info := &grpc.UnaryServerInfo{
  1185. Server: srv,
  1186. FullMethod: "/resourcesCenter.ResourcesCenter/FindAccountBalance",
  1187. }
  1188. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1189. return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*ResourcesReq))
  1190. }
  1191. return interceptor(ctx, in, info, handler)
  1192. }
  1193. func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1194. in := new(ResourcesReq)
  1195. if err := dec(in); err != nil {
  1196. return nil, err
  1197. }
  1198. if interceptor == nil {
  1199. return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, in)
  1200. }
  1201. info := &grpc.UnaryServerInfo{
  1202. Server: srv,
  1203. FullMethod: "/resourcesCenter.ResourcesCenter/FindConsumeRecord",
  1204. }
  1205. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1206. return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*ResourcesReq))
  1207. }
  1208. return interceptor(ctx, in, info, handler)
  1209. }
  1210. func _ResourcesCenter_UpdateUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1211. in := new(Balance)
  1212. if err := dec(in); err != nil {
  1213. return nil, err
  1214. }
  1215. if interceptor == nil {
  1216. return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, in)
  1217. }
  1218. info := &grpc.UnaryServerInfo{
  1219. Server: srv,
  1220. FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserBalance",
  1221. }
  1222. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1223. return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, req.(*Balance))
  1224. }
  1225. return interceptor(ctx, in, info, handler)
  1226. }
  1227. func _ResourcesCenter_UpdateUserDetailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1228. in := new(Detailed)
  1229. if err := dec(in); err != nil {
  1230. return nil, err
  1231. }
  1232. if interceptor == nil {
  1233. return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, in)
  1234. }
  1235. info := &grpc.UnaryServerInfo{
  1236. Server: srv,
  1237. FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserDetailed",
  1238. }
  1239. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1240. return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, req.(*Detailed))
  1241. }
  1242. return interceptor(ctx, in, info, handler)
  1243. }
  1244. var _ResourcesCenter_serviceDesc = grpc.ServiceDesc{
  1245. ServiceName: "resourcesCenter.ResourcesCenter",
  1246. HandlerType: (*ResourcesCenterServer)(nil),
  1247. Methods: []grpc.MethodDesc{
  1248. {
  1249. MethodName: "findResourcesAuth",
  1250. Handler: _ResourcesCenter_FindResourcesAuth_Handler,
  1251. },
  1252. {
  1253. MethodName: "findAccountBalance",
  1254. Handler: _ResourcesCenter_FindAccountBalance_Handler,
  1255. },
  1256. {
  1257. MethodName: "findConsumeRecord",
  1258. Handler: _ResourcesCenter_FindConsumeRecord_Handler,
  1259. },
  1260. {
  1261. MethodName: "updateUserBalance",
  1262. Handler: _ResourcesCenter_UpdateUserBalance_Handler,
  1263. },
  1264. {
  1265. MethodName: "updateUserDetailed",
  1266. Handler: _ResourcesCenter_UpdateUserDetailed_Handler,
  1267. },
  1268. },
  1269. Streams: []grpc.StreamDesc{},
  1270. Metadata: "resourcesCenter.proto",
  1271. }