resourcesCenter.pb.go 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783
  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 string `protobuf:"bytes,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. DeductionNumb int64 `protobuf:"varint,11,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量
  184. Url string `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"` //下载地址
  185. SearchCriteria string `protobuf:"bytes,13,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"` //搜索条件
  186. Source string `protobuf:"bytes,14,opt,name=source,proto3" json:"source,omitempty"` //数据来源
  187. }
  188. func (x *Detailed) Reset() {
  189. *x = Detailed{}
  190. if protoimpl.UnsafeEnabled {
  191. mi := &file_resourcesCenter_proto_msgTypes[2]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. }
  196. func (x *Detailed) String() string {
  197. return protoimpl.X.MessageStringOf(x)
  198. }
  199. func (*Detailed) ProtoMessage() {}
  200. func (x *Detailed) ProtoReflect() protoreflect.Message {
  201. mi := &file_resourcesCenter_proto_msgTypes[2]
  202. if protoimpl.UnsafeEnabled && x != nil {
  203. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  204. if ms.LoadMessageInfo() == nil {
  205. ms.StoreMessageInfo(mi)
  206. }
  207. return ms
  208. }
  209. return mi.MessageOf(x)
  210. }
  211. // Deprecated: Use Detailed.ProtoReflect.Descriptor instead.
  212. func (*Detailed) Descriptor() ([]byte, []int) {
  213. return file_resourcesCenter_proto_rawDescGZIP(), []int{2}
  214. }
  215. func (x *Detailed) GetAccountId() string {
  216. if x != nil {
  217. return x.AccountId
  218. }
  219. return ""
  220. }
  221. func (x *Detailed) GetCompanyId() int64 {
  222. if x != nil {
  223. return x.CompanyId
  224. }
  225. return 0
  226. }
  227. func (x *Detailed) GetResourceType() string {
  228. if x != nil {
  229. return x.ResourceType
  230. }
  231. return ""
  232. }
  233. func (x *Detailed) GetExportNum() int64 {
  234. if x != nil {
  235. return x.ExportNum
  236. }
  237. return 0
  238. }
  239. func (x *Detailed) GetDeductionType() string {
  240. if x != nil {
  241. return x.DeductionType
  242. }
  243. return ""
  244. }
  245. func (x *Detailed) GetRuleId() string {
  246. if x != nil {
  247. return x.RuleId
  248. }
  249. return ""
  250. }
  251. func (x *Detailed) GetExportTime() int64 {
  252. if x != nil {
  253. return x.ExportTime
  254. }
  255. return 0
  256. }
  257. func (x *Detailed) GetUserType() int64 {
  258. if x != nil {
  259. return x.UserType
  260. }
  261. return 0
  262. }
  263. func (x *Detailed) GetDepartmentId() int64 {
  264. if x != nil {
  265. return x.DepartmentId
  266. }
  267. return 0
  268. }
  269. func (x *Detailed) GetUserId() string {
  270. if x != nil {
  271. return x.UserId
  272. }
  273. return ""
  274. }
  275. func (x *Detailed) GetDeductionNumb() int64 {
  276. if x != nil {
  277. return x.DeductionNumb
  278. }
  279. return 0
  280. }
  281. func (x *Detailed) GetUrl() string {
  282. if x != nil {
  283. return x.Url
  284. }
  285. return ""
  286. }
  287. func (x *Detailed) GetSearchCriteria() string {
  288. if x != nil {
  289. return x.SearchCriteria
  290. }
  291. return ""
  292. }
  293. func (x *Detailed) GetSource() string {
  294. if x != nil {
  295. return x.Source
  296. }
  297. return ""
  298. }
  299. type ResourcesAuth struct {
  300. state protoimpl.MessageState
  301. sizeCache protoimpl.SizeCache
  302. unknownFields protoimpl.UnknownFields
  303. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  304. AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //账户标识
  305. ResourcesId int64 `protobuf:"varint,3,opt,name=resourcesId,proto3" json:"resourcesId,omitempty"` //资源标识
  306. Quota int64 `protobuf:"varint,4,opt,name=quota,proto3" json:"quota,omitempty"` //定额
  307. Ratio int64 `protobuf:"varint,5,opt,name=ratio,proto3" json:"ratio,omitempty"` //比例
  308. State int64 `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` //状态
  309. }
  310. func (x *ResourcesAuth) Reset() {
  311. *x = ResourcesAuth{}
  312. if protoimpl.UnsafeEnabled {
  313. mi := &file_resourcesCenter_proto_msgTypes[3]
  314. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  315. ms.StoreMessageInfo(mi)
  316. }
  317. }
  318. func (x *ResourcesAuth) String() string {
  319. return protoimpl.X.MessageStringOf(x)
  320. }
  321. func (*ResourcesAuth) ProtoMessage() {}
  322. func (x *ResourcesAuth) ProtoReflect() protoreflect.Message {
  323. mi := &file_resourcesCenter_proto_msgTypes[3]
  324. if protoimpl.UnsafeEnabled && x != nil {
  325. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  326. if ms.LoadMessageInfo() == nil {
  327. ms.StoreMessageInfo(mi)
  328. }
  329. return ms
  330. }
  331. return mi.MessageOf(x)
  332. }
  333. // Deprecated: Use ResourcesAuth.ProtoReflect.Descriptor instead.
  334. func (*ResourcesAuth) Descriptor() ([]byte, []int) {
  335. return file_resourcesCenter_proto_rawDescGZIP(), []int{3}
  336. }
  337. func (x *ResourcesAuth) GetId() int64 {
  338. if x != nil {
  339. return x.Id
  340. }
  341. return 0
  342. }
  343. func (x *ResourcesAuth) GetAccountId() string {
  344. if x != nil {
  345. return x.AccountId
  346. }
  347. return ""
  348. }
  349. func (x *ResourcesAuth) GetResourcesId() int64 {
  350. if x != nil {
  351. return x.ResourcesId
  352. }
  353. return 0
  354. }
  355. func (x *ResourcesAuth) GetQuota() int64 {
  356. if x != nil {
  357. return x.Quota
  358. }
  359. return 0
  360. }
  361. func (x *ResourcesAuth) GetRatio() int64 {
  362. if x != nil {
  363. return x.Ratio
  364. }
  365. return 0
  366. }
  367. func (x *ResourcesAuth) GetState() int64 {
  368. if x != nil {
  369. return x.State
  370. }
  371. return 0
  372. }
  373. type ResourceBalance struct {
  374. state protoimpl.MessageState
  375. sizeCache protoimpl.SizeCache
  376. unknownFields protoimpl.UnknownFields
  377. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  378. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称
  379. Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量
  380. ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源代码
  381. Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格
  382. }
  383. func (x *ResourceBalance) Reset() {
  384. *x = ResourceBalance{}
  385. if protoimpl.UnsafeEnabled {
  386. mi := &file_resourcesCenter_proto_msgTypes[4]
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. ms.StoreMessageInfo(mi)
  389. }
  390. }
  391. func (x *ResourceBalance) String() string {
  392. return protoimpl.X.MessageStringOf(x)
  393. }
  394. func (*ResourceBalance) ProtoMessage() {}
  395. func (x *ResourceBalance) ProtoReflect() protoreflect.Message {
  396. mi := &file_resourcesCenter_proto_msgTypes[4]
  397. if protoimpl.UnsafeEnabled && x != nil {
  398. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  399. if ms.LoadMessageInfo() == nil {
  400. ms.StoreMessageInfo(mi)
  401. }
  402. return ms
  403. }
  404. return mi.MessageOf(x)
  405. }
  406. // Deprecated: Use ResourceBalance.ProtoReflect.Descriptor instead.
  407. func (*ResourceBalance) Descriptor() ([]byte, []int) {
  408. return file_resourcesCenter_proto_rawDescGZIP(), []int{4}
  409. }
  410. func (x *ResourceBalance) GetId() int64 {
  411. if x != nil {
  412. return x.Id
  413. }
  414. return 0
  415. }
  416. func (x *ResourceBalance) GetName() string {
  417. if x != nil {
  418. return x.Name
  419. }
  420. return ""
  421. }
  422. func (x *ResourceBalance) GetNumber() int64 {
  423. if x != nil {
  424. return x.Number
  425. }
  426. return 0
  427. }
  428. func (x *ResourceBalance) GetResourceType() string {
  429. if x != nil {
  430. return x.ResourceType
  431. }
  432. return ""
  433. }
  434. func (x *ResourceBalance) GetSpec() string {
  435. if x != nil {
  436. return x.Spec
  437. }
  438. return ""
  439. }
  440. type ConsumeRecord struct {
  441. state protoimpl.MessageState
  442. sizeCache protoimpl.SizeCache
  443. unknownFields protoimpl.UnknownFields
  444. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  445. UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` //用户标识
  446. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  447. ResourceType string `protobuf:"bytes,4,opt,name=resourceType,proto3" json:"resourceType,omitempty"`
  448. ExportNum int64 `protobuf:"varint,5,opt,name=exportNum,proto3" json:"exportNum,omitempty"`
  449. DeductionNumb int64 `protobuf:"varint,6,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"`
  450. RuleId int64 `protobuf:"varint,7,opt,name=ruleId,proto3" json:"ruleId,omitempty"`
  451. ExportTime string `protobuf:"bytes,8,opt,name=exportTime,proto3" json:"exportTime,omitempty"`
  452. UserType int64 `protobuf:"varint,9,opt,name=userType,proto3" json:"userType,omitempty"`
  453. Url string `protobuf:"bytes,10,opt,name=url,proto3" json:"url,omitempty"`
  454. SearchCriteria string `protobuf:"bytes,11,opt,name=searchCriteria,proto3" json:"searchCriteria,omitempty"`
  455. Source string `protobuf:"bytes,12,opt,name=source,proto3" json:"source,omitempty"`
  456. }
  457. func (x *ConsumeRecord) Reset() {
  458. *x = ConsumeRecord{}
  459. if protoimpl.UnsafeEnabled {
  460. mi := &file_resourcesCenter_proto_msgTypes[5]
  461. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  462. ms.StoreMessageInfo(mi)
  463. }
  464. }
  465. func (x *ConsumeRecord) String() string {
  466. return protoimpl.X.MessageStringOf(x)
  467. }
  468. func (*ConsumeRecord) ProtoMessage() {}
  469. func (x *ConsumeRecord) ProtoReflect() protoreflect.Message {
  470. mi := &file_resourcesCenter_proto_msgTypes[5]
  471. if protoimpl.UnsafeEnabled && x != nil {
  472. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  473. if ms.LoadMessageInfo() == nil {
  474. ms.StoreMessageInfo(mi)
  475. }
  476. return ms
  477. }
  478. return mi.MessageOf(x)
  479. }
  480. // Deprecated: Use ConsumeRecord.ProtoReflect.Descriptor instead.
  481. func (*ConsumeRecord) Descriptor() ([]byte, []int) {
  482. return file_resourcesCenter_proto_rawDescGZIP(), []int{5}
  483. }
  484. func (x *ConsumeRecord) GetId() int64 {
  485. if x != nil {
  486. return x.Id
  487. }
  488. return 0
  489. }
  490. func (x *ConsumeRecord) GetUserId() string {
  491. if x != nil {
  492. return x.UserId
  493. }
  494. return ""
  495. }
  496. func (x *ConsumeRecord) GetName() string {
  497. if x != nil {
  498. return x.Name
  499. }
  500. return ""
  501. }
  502. func (x *ConsumeRecord) GetResourceType() string {
  503. if x != nil {
  504. return x.ResourceType
  505. }
  506. return ""
  507. }
  508. func (x *ConsumeRecord) GetExportNum() int64 {
  509. if x != nil {
  510. return x.ExportNum
  511. }
  512. return 0
  513. }
  514. func (x *ConsumeRecord) GetDeductionNumb() int64 {
  515. if x != nil {
  516. return x.DeductionNumb
  517. }
  518. return 0
  519. }
  520. func (x *ConsumeRecord) GetRuleId() int64 {
  521. if x != nil {
  522. return x.RuleId
  523. }
  524. return 0
  525. }
  526. func (x *ConsumeRecord) GetExportTime() string {
  527. if x != nil {
  528. return x.ExportTime
  529. }
  530. return ""
  531. }
  532. func (x *ConsumeRecord) GetUserType() int64 {
  533. if x != nil {
  534. return x.UserType
  535. }
  536. return 0
  537. }
  538. func (x *ConsumeRecord) GetUrl() string {
  539. if x != nil {
  540. return x.Url
  541. }
  542. return ""
  543. }
  544. func (x *ConsumeRecord) GetSearchCriteria() string {
  545. if x != nil {
  546. return x.SearchCriteria
  547. }
  548. return ""
  549. }
  550. func (x *ConsumeRecord) GetSource() string {
  551. if x != nil {
  552. return x.Source
  553. }
  554. return ""
  555. }
  556. type ResourcesReq struct {
  557. state protoimpl.MessageState
  558. sizeCache protoimpl.SizeCache
  559. unknownFields protoimpl.UnknownFields
  560. AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
  561. }
  562. func (x *ResourcesReq) Reset() {
  563. *x = ResourcesReq{}
  564. if protoimpl.UnsafeEnabled {
  565. mi := &file_resourcesCenter_proto_msgTypes[6]
  566. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  567. ms.StoreMessageInfo(mi)
  568. }
  569. }
  570. func (x *ResourcesReq) String() string {
  571. return protoimpl.X.MessageStringOf(x)
  572. }
  573. func (*ResourcesReq) ProtoMessage() {}
  574. func (x *ResourcesReq) ProtoReflect() protoreflect.Message {
  575. mi := &file_resourcesCenter_proto_msgTypes[6]
  576. if protoimpl.UnsafeEnabled && x != nil {
  577. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  578. if ms.LoadMessageInfo() == nil {
  579. ms.StoreMessageInfo(mi)
  580. }
  581. return ms
  582. }
  583. return mi.MessageOf(x)
  584. }
  585. // Deprecated: Use ResourcesReq.ProtoReflect.Descriptor instead.
  586. func (*ResourcesReq) Descriptor() ([]byte, []int) {
  587. return file_resourcesCenter_proto_rawDescGZIP(), []int{6}
  588. }
  589. func (x *ResourcesReq) GetAccountId() string {
  590. if x != nil {
  591. return x.AccountId
  592. }
  593. return ""
  594. }
  595. type PreviewReq struct {
  596. state protoimpl.MessageState
  597. sizeCache protoimpl.SizeCache
  598. unknownFields protoimpl.UnknownFields
  599. InfoId string `protobuf:"bytes,1,opt,name=infoId,proto3" json:"infoId,omitempty"` //信息标识
  600. AccountId string `protobuf:"bytes,2,opt,name=accountId,proto3" json:"accountId,omitempty"` //企业标识
  601. DeductionType string `protobuf:"bytes,3,opt,name=deductionType,proto3" json:"deductionType,omitempty"` //资源代码
  602. }
  603. func (x *PreviewReq) Reset() {
  604. *x = PreviewReq{}
  605. if protoimpl.UnsafeEnabled {
  606. mi := &file_resourcesCenter_proto_msgTypes[7]
  607. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  608. ms.StoreMessageInfo(mi)
  609. }
  610. }
  611. func (x *PreviewReq) String() string {
  612. return protoimpl.X.MessageStringOf(x)
  613. }
  614. func (*PreviewReq) ProtoMessage() {}
  615. func (x *PreviewReq) ProtoReflect() protoreflect.Message {
  616. mi := &file_resourcesCenter_proto_msgTypes[7]
  617. if protoimpl.UnsafeEnabled && x != nil {
  618. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  619. if ms.LoadMessageInfo() == nil {
  620. ms.StoreMessageInfo(mi)
  621. }
  622. return ms
  623. }
  624. return mi.MessageOf(x)
  625. }
  626. // Deprecated: Use PreviewReq.ProtoReflect.Descriptor instead.
  627. func (*PreviewReq) Descriptor() ([]byte, []int) {
  628. return file_resourcesCenter_proto_rawDescGZIP(), []int{7}
  629. }
  630. func (x *PreviewReq) GetInfoId() string {
  631. if x != nil {
  632. return x.InfoId
  633. }
  634. return ""
  635. }
  636. func (x *PreviewReq) GetAccountId() string {
  637. if x != nil {
  638. return x.AccountId
  639. }
  640. return ""
  641. }
  642. func (x *PreviewReq) GetDeductionType() string {
  643. if x != nil {
  644. return x.DeductionType
  645. }
  646. return ""
  647. }
  648. type PreviewRes struct {
  649. state protoimpl.MessageState
  650. sizeCache protoimpl.SizeCache
  651. unknownFields protoimpl.UnknownFields
  652. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  653. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  654. RepeatNumb int64 `protobuf:"varint,3,opt,name=repeatNumb,proto3" json:"repeatNumb,omitempty"` //重复数量
  655. DeductionNumb int64 `protobuf:"varint,4,opt,name=deductionNumb,proto3" json:"deductionNumb,omitempty"` //扣除数量
  656. }
  657. func (x *PreviewRes) Reset() {
  658. *x = PreviewRes{}
  659. if protoimpl.UnsafeEnabled {
  660. mi := &file_resourcesCenter_proto_msgTypes[8]
  661. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  662. ms.StoreMessageInfo(mi)
  663. }
  664. }
  665. func (x *PreviewRes) String() string {
  666. return protoimpl.X.MessageStringOf(x)
  667. }
  668. func (*PreviewRes) ProtoMessage() {}
  669. func (x *PreviewRes) ProtoReflect() protoreflect.Message {
  670. mi := &file_resourcesCenter_proto_msgTypes[8]
  671. if protoimpl.UnsafeEnabled && x != nil {
  672. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  673. if ms.LoadMessageInfo() == nil {
  674. ms.StoreMessageInfo(mi)
  675. }
  676. return ms
  677. }
  678. return mi.MessageOf(x)
  679. }
  680. // Deprecated: Use PreviewRes.ProtoReflect.Descriptor instead.
  681. func (*PreviewRes) Descriptor() ([]byte, []int) {
  682. return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
  683. }
  684. func (x *PreviewRes) GetCode() int64 {
  685. if x != nil {
  686. return x.Code
  687. }
  688. return 0
  689. }
  690. func (x *PreviewRes) GetMessage() string {
  691. if x != nil {
  692. return x.Message
  693. }
  694. return ""
  695. }
  696. func (x *PreviewRes) GetRepeatNumb() int64 {
  697. if x != nil {
  698. return x.RepeatNumb
  699. }
  700. return 0
  701. }
  702. func (x *PreviewRes) GetDeductionNumb() int64 {
  703. if x != nil {
  704. return x.DeductionNumb
  705. }
  706. return 0
  707. }
  708. //根据账户标识查询资源权限请求参数
  709. type ResourcesAuthRes struct {
  710. state protoimpl.MessageState
  711. sizeCache protoimpl.SizeCache
  712. unknownFields protoimpl.UnknownFields
  713. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //响应代码
  714. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  715. Data []*ResourcesAuth `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //账号拥有的资源权限
  716. }
  717. func (x *ResourcesAuthRes) Reset() {
  718. *x = ResourcesAuthRes{}
  719. if protoimpl.UnsafeEnabled {
  720. mi := &file_resourcesCenter_proto_msgTypes[9]
  721. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  722. ms.StoreMessageInfo(mi)
  723. }
  724. }
  725. func (x *ResourcesAuthRes) String() string {
  726. return protoimpl.X.MessageStringOf(x)
  727. }
  728. func (*ResourcesAuthRes) ProtoMessage() {}
  729. func (x *ResourcesAuthRes) ProtoReflect() protoreflect.Message {
  730. mi := &file_resourcesCenter_proto_msgTypes[9]
  731. if protoimpl.UnsafeEnabled && x != nil {
  732. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  733. if ms.LoadMessageInfo() == nil {
  734. ms.StoreMessageInfo(mi)
  735. }
  736. return ms
  737. }
  738. return mi.MessageOf(x)
  739. }
  740. // Deprecated: Use ResourcesAuthRes.ProtoReflect.Descriptor instead.
  741. func (*ResourcesAuthRes) Descriptor() ([]byte, []int) {
  742. return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
  743. }
  744. func (x *ResourcesAuthRes) GetCode() int64 {
  745. if x != nil {
  746. return x.Code
  747. }
  748. return 0
  749. }
  750. func (x *ResourcesAuthRes) GetMessage() string {
  751. if x != nil {
  752. return x.Message
  753. }
  754. return ""
  755. }
  756. func (x *ResourcesAuthRes) GetData() []*ResourcesAuth {
  757. if x != nil {
  758. return x.Data
  759. }
  760. return nil
  761. }
  762. //根据账户标识查询账户余额
  763. type AccountBalanceRes struct {
  764. state protoimpl.MessageState
  765. sizeCache protoimpl.SizeCache
  766. unknownFields protoimpl.UnknownFields
  767. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  768. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  769. Data []*ResourceBalance `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  770. }
  771. func (x *AccountBalanceRes) Reset() {
  772. *x = AccountBalanceRes{}
  773. if protoimpl.UnsafeEnabled {
  774. mi := &file_resourcesCenter_proto_msgTypes[10]
  775. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  776. ms.StoreMessageInfo(mi)
  777. }
  778. }
  779. func (x *AccountBalanceRes) String() string {
  780. return protoimpl.X.MessageStringOf(x)
  781. }
  782. func (*AccountBalanceRes) ProtoMessage() {}
  783. func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message {
  784. mi := &file_resourcesCenter_proto_msgTypes[10]
  785. if protoimpl.UnsafeEnabled && x != nil {
  786. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  787. if ms.LoadMessageInfo() == nil {
  788. ms.StoreMessageInfo(mi)
  789. }
  790. return ms
  791. }
  792. return mi.MessageOf(x)
  793. }
  794. // Deprecated: Use AccountBalanceRes.ProtoReflect.Descriptor instead.
  795. func (*AccountBalanceRes) Descriptor() ([]byte, []int) {
  796. return file_resourcesCenter_proto_rawDescGZIP(), []int{10}
  797. }
  798. func (x *AccountBalanceRes) GetCode() int64 {
  799. if x != nil {
  800. return x.Code
  801. }
  802. return 0
  803. }
  804. func (x *AccountBalanceRes) GetMessage() string {
  805. if x != nil {
  806. return x.Message
  807. }
  808. return ""
  809. }
  810. func (x *AccountBalanceRes) GetData() []*ResourceBalance {
  811. if x != nil {
  812. return x.Data
  813. }
  814. return nil
  815. }
  816. //查询流水账
  817. type RecordReq struct {
  818. state protoimpl.MessageState
  819. sizeCache protoimpl.SizeCache
  820. unknownFields protoimpl.UnknownFields
  821. AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
  822. UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
  823. PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
  824. Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
  825. }
  826. func (x *RecordReq) Reset() {
  827. *x = RecordReq{}
  828. if protoimpl.UnsafeEnabled {
  829. mi := &file_resourcesCenter_proto_msgTypes[11]
  830. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  831. ms.StoreMessageInfo(mi)
  832. }
  833. }
  834. func (x *RecordReq) String() string {
  835. return protoimpl.X.MessageStringOf(x)
  836. }
  837. func (*RecordReq) ProtoMessage() {}
  838. func (x *RecordReq) ProtoReflect() protoreflect.Message {
  839. mi := &file_resourcesCenter_proto_msgTypes[11]
  840. if protoimpl.UnsafeEnabled && x != nil {
  841. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  842. if ms.LoadMessageInfo() == nil {
  843. ms.StoreMessageInfo(mi)
  844. }
  845. return ms
  846. }
  847. return mi.MessageOf(x)
  848. }
  849. // Deprecated: Use RecordReq.ProtoReflect.Descriptor instead.
  850. func (*RecordReq) Descriptor() ([]byte, []int) {
  851. return file_resourcesCenter_proto_rawDescGZIP(), []int{11}
  852. }
  853. func (x *RecordReq) GetAccountId() string {
  854. if x != nil {
  855. return x.AccountId
  856. }
  857. return ""
  858. }
  859. func (x *RecordReq) GetUserId() string {
  860. if x != nil {
  861. return x.UserId
  862. }
  863. return ""
  864. }
  865. func (x *RecordReq) GetPageSize() int64 {
  866. if x != nil {
  867. return x.PageSize
  868. }
  869. return 0
  870. }
  871. func (x *RecordReq) GetPage() int64 {
  872. if x != nil {
  873. return x.Page
  874. }
  875. return 0
  876. }
  877. type ConsumeRecordRes struct {
  878. state protoimpl.MessageState
  879. sizeCache protoimpl.SizeCache
  880. unknownFields protoimpl.UnknownFields
  881. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  882. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  883. Data []*ConsumeRecord `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
  884. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
  885. }
  886. func (x *ConsumeRecordRes) Reset() {
  887. *x = ConsumeRecordRes{}
  888. if protoimpl.UnsafeEnabled {
  889. mi := &file_resourcesCenter_proto_msgTypes[12]
  890. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  891. ms.StoreMessageInfo(mi)
  892. }
  893. }
  894. func (x *ConsumeRecordRes) String() string {
  895. return protoimpl.X.MessageStringOf(x)
  896. }
  897. func (*ConsumeRecordRes) ProtoMessage() {}
  898. func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message {
  899. mi := &file_resourcesCenter_proto_msgTypes[12]
  900. if protoimpl.UnsafeEnabled && x != nil {
  901. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  902. if ms.LoadMessageInfo() == nil {
  903. ms.StoreMessageInfo(mi)
  904. }
  905. return ms
  906. }
  907. return mi.MessageOf(x)
  908. }
  909. // Deprecated: Use ConsumeRecordRes.ProtoReflect.Descriptor instead.
  910. func (*ConsumeRecordRes) Descriptor() ([]byte, []int) {
  911. return file_resourcesCenter_proto_rawDescGZIP(), []int{12}
  912. }
  913. func (x *ConsumeRecordRes) GetCode() int64 {
  914. if x != nil {
  915. return x.Code
  916. }
  917. return 0
  918. }
  919. func (x *ConsumeRecordRes) GetMessage() string {
  920. if x != nil {
  921. return x.Message
  922. }
  923. return ""
  924. }
  925. func (x *ConsumeRecordRes) GetData() []*ConsumeRecord {
  926. if x != nil {
  927. return x.Data
  928. }
  929. return nil
  930. }
  931. func (x *ConsumeRecordRes) GetCount() int64 {
  932. if x != nil {
  933. return x.Count
  934. }
  935. return 0
  936. }
  937. var File_resourcesCenter_proto protoreflect.FileDescriptor
  938. var file_resourcesCenter_proto_rawDesc = []byte{
  939. 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
  940. 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  941. 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70,
  942. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01,
  943. 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
  944. 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
  945. 0x67, 0x65, 0x22, 0xf9, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1c,
  946. 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  947. 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09,
  948. 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  949. 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65,
  950. 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
  951. 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12,
  952. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  953. 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79,
  954. 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  955. 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
  956. 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x12,
  957. 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70,
  958. 0x65, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
  959. 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65,
  960. 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x22, 0xb6,
  961. 0x03, 0x0a, 0x08, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61,
  962. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  963. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d,
  964. 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f,
  965. 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75,
  966. 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72,
  967. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65,
  968. 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  969. 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64,
  970. 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  971. 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
  972. 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
  973. 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72,
  974. 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x78, 0x70,
  975. 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  976. 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54,
  977. 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
  978. 0x74, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72,
  979. 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  980. 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12,
  981. 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62,
  982. 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
  983. 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0c, 0x20, 0x01,
  984. 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63,
  985. 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
  986. 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12,
  987. 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52,
  988. 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xa1, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x73, 0x6f,
  989. 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  990. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63,
  991. 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63,
  992. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75,
  993. 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x72, 0x65,
  994. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x6f,
  995. 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x71, 0x75, 0x6f, 0x74, 0x61, 0x12,
  996. 0x14, 0x0a, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  997. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06,
  998. 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0f,
  999. 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12,
  1000. 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12,
  1001. 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
  1002. 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20,
  1003. 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72,
  1004. 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
  1005. 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12,
  1006. 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73,
  1007. 0x70, 0x65, 0x63, 0x22, 0xd9, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52,
  1008. 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1009. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18,
  1010. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a,
  1011. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
  1012. 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
  1013. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
  1014. 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x4e,
  1015. 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74,
  1016. 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  1017. 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75,
  1018. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x75, 0x6c,
  1019. 0x65, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x75, 0x6c, 0x65, 0x49,
  1020. 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x18,
  1021. 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x54, 0x69, 0x6d,
  1022. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20,
  1023. 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a,
  1024. 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12,
  1025. 0x26, 0x0a, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x72, 0x69, 0x74, 0x65, 0x72, 0x69,
  1026. 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43,
  1027. 0x72, 0x69, 0x74, 0x65, 0x72, 0x69, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63,
  1028. 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22,
  1029. 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12,
  1030. 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  1031. 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x68, 0x0a,
  1032. 0x0a, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x69,
  1033. 0x6e, 0x66, 0x6f, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x69, 0x6e, 0x66,
  1034. 0x6f, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
  1035. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49,
  1036. 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
  1037. 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74,
  1038. 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x80, 0x01, 0x0a, 0x0a, 0x50, 0x72, 0x65, 0x76,
  1039. 0x69, 0x65, 0x77, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01,
  1040. 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
  1041. 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
  1042. 0x73, 0x61, 0x67, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x4e, 0x75,
  1043. 0x6d, 0x62, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74,
  1044. 0x4e, 0x75, 0x6d, 0x62, 0x12, 0x24, 0x0a, 0x0d, 0x64, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
  1045. 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x64,
  1046. 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x22, 0x74, 0x0a, 0x10, 0x52, 0x65,
  1047. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x12,
  1048. 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f,
  1049. 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20,
  1050. 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04,
  1051. 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73,
  1052. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73,
  1053. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
  1054. 0x22, 0x77, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e,
  1055. 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20,
  1056. 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73,
  1057. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73,
  1058. 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28,
  1059. 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
  1060. 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61,
  1061. 0x6e, 0x63, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x71, 0x0a, 0x09, 0x52, 0x65, 0x63,
  1062. 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  1063. 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75,
  1064. 0x6e, 0x74, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02,
  1065. 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08,
  1066. 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
  1067. 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65,
  1068. 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x01, 0x0a,
  1069. 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65,
  1070. 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  1071. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  1072. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  1073. 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
  1074. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
  1075. 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64,
  1076. 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01,
  1077. 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0xfb, 0x03, 0x0a, 0x0f, 0x52, 0x65,
  1078. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x56, 0x0a,
  1079. 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75,
  1080. 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
  1081. 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65,
  1082. 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
  1083. 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e,
  1084. 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63,
  1085. 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e, 0x72, 0x65,
  1086. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
  1087. 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73,
  1088. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63,
  1089. 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52,
  1090. 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63,
  1091. 0x6f, 0x72, 0x64, 0x12, 0x1a, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
  1092. 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x1a,
  1093. 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65,
  1094. 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52,
  1095. 0x65, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
  1096. 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  1097. 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
  1098. 0x65, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e,
  1099. 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x12,
  1100. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
  1101. 0x65, 0x64, 0x12, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
  1102. 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x1a, 0x19, 0x2e,
  1103. 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
  1104. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x64,
  1105. 0x50, 0x72, 0x65, 0x76, 0x69, 0x65, 0x77, 0x12, 0x1b, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
  1106. 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x50, 0x72, 0x65, 0x76, 0x69, 0x65,
  1107. 0x77, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
  1108. 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65,
  1109. 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1110. }
  1111. var (
  1112. file_resourcesCenter_proto_rawDescOnce sync.Once
  1113. file_resourcesCenter_proto_rawDescData = file_resourcesCenter_proto_rawDesc
  1114. )
  1115. func file_resourcesCenter_proto_rawDescGZIP() []byte {
  1116. file_resourcesCenter_proto_rawDescOnce.Do(func() {
  1117. file_resourcesCenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_resourcesCenter_proto_rawDescData)
  1118. })
  1119. return file_resourcesCenter_proto_rawDescData
  1120. }
  1121. var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
  1122. var file_resourcesCenter_proto_goTypes = []interface{}{
  1123. (*Response)(nil), // 0: resourcesCenter.Response
  1124. (*Balance)(nil), // 1: resourcesCenter.Balance
  1125. (*Detailed)(nil), // 2: resourcesCenter.Detailed
  1126. (*ResourcesAuth)(nil), // 3: resourcesCenter.ResourcesAuth
  1127. (*ResourceBalance)(nil), // 4: resourcesCenter.ResourceBalance
  1128. (*ConsumeRecord)(nil), // 5: resourcesCenter.ConsumeRecord
  1129. (*ResourcesReq)(nil), // 6: resourcesCenter.ResourcesReq
  1130. (*PreviewReq)(nil), // 7: resourcesCenter.PreviewReq
  1131. (*PreviewRes)(nil), // 8: resourcesCenter.PreviewRes
  1132. (*ResourcesAuthRes)(nil), // 9: resourcesCenter.ResourcesAuthRes
  1133. (*AccountBalanceRes)(nil), // 10: resourcesCenter.AccountBalanceRes
  1134. (*RecordReq)(nil), // 11: resourcesCenter.RecordReq
  1135. (*ConsumeRecordRes)(nil), // 12: resourcesCenter.ConsumeRecordRes
  1136. }
  1137. var file_resourcesCenter_proto_depIdxs = []int32{
  1138. 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth
  1139. 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance
  1140. 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord
  1141. 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesReq
  1142. 6, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.ResourcesReq
  1143. 11, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.RecordReq
  1144. 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
  1145. 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
  1146. 7, // 8: resourcesCenter.ResourcesCenter.findPreview:input_type -> resourcesCenter.PreviewReq
  1147. 10, // 9: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.AccountBalanceRes
  1148. 10, // 10: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
  1149. 12, // 11: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
  1150. 0, // 12: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
  1151. 0, // 13: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
  1152. 12, // 14: resourcesCenter.ResourcesCenter.findPreview:output_type -> resourcesCenter.ConsumeRecordRes
  1153. 9, // [9:15] is the sub-list for method output_type
  1154. 3, // [3:9] is the sub-list for method input_type
  1155. 3, // [3:3] is the sub-list for extension type_name
  1156. 3, // [3:3] is the sub-list for extension extendee
  1157. 0, // [0:3] is the sub-list for field type_name
  1158. }
  1159. func init() { file_resourcesCenter_proto_init() }
  1160. func file_resourcesCenter_proto_init() {
  1161. if File_resourcesCenter_proto != nil {
  1162. return
  1163. }
  1164. if !protoimpl.UnsafeEnabled {
  1165. file_resourcesCenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1166. switch v := v.(*Response); i {
  1167. case 0:
  1168. return &v.state
  1169. case 1:
  1170. return &v.sizeCache
  1171. case 2:
  1172. return &v.unknownFields
  1173. default:
  1174. return nil
  1175. }
  1176. }
  1177. file_resourcesCenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1178. switch v := v.(*Balance); i {
  1179. case 0:
  1180. return &v.state
  1181. case 1:
  1182. return &v.sizeCache
  1183. case 2:
  1184. return &v.unknownFields
  1185. default:
  1186. return nil
  1187. }
  1188. }
  1189. file_resourcesCenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1190. switch v := v.(*Detailed); i {
  1191. case 0:
  1192. return &v.state
  1193. case 1:
  1194. return &v.sizeCache
  1195. case 2:
  1196. return &v.unknownFields
  1197. default:
  1198. return nil
  1199. }
  1200. }
  1201. file_resourcesCenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1202. switch v := v.(*ResourcesAuth); i {
  1203. case 0:
  1204. return &v.state
  1205. case 1:
  1206. return &v.sizeCache
  1207. case 2:
  1208. return &v.unknownFields
  1209. default:
  1210. return nil
  1211. }
  1212. }
  1213. file_resourcesCenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1214. switch v := v.(*ResourceBalance); i {
  1215. case 0:
  1216. return &v.state
  1217. case 1:
  1218. return &v.sizeCache
  1219. case 2:
  1220. return &v.unknownFields
  1221. default:
  1222. return nil
  1223. }
  1224. }
  1225. file_resourcesCenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1226. switch v := v.(*ConsumeRecord); i {
  1227. case 0:
  1228. return &v.state
  1229. case 1:
  1230. return &v.sizeCache
  1231. case 2:
  1232. return &v.unknownFields
  1233. default:
  1234. return nil
  1235. }
  1236. }
  1237. file_resourcesCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1238. switch v := v.(*ResourcesReq); i {
  1239. case 0:
  1240. return &v.state
  1241. case 1:
  1242. return &v.sizeCache
  1243. case 2:
  1244. return &v.unknownFields
  1245. default:
  1246. return nil
  1247. }
  1248. }
  1249. file_resourcesCenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1250. switch v := v.(*PreviewReq); i {
  1251. case 0:
  1252. return &v.state
  1253. case 1:
  1254. return &v.sizeCache
  1255. case 2:
  1256. return &v.unknownFields
  1257. default:
  1258. return nil
  1259. }
  1260. }
  1261. file_resourcesCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1262. switch v := v.(*PreviewRes); i {
  1263. case 0:
  1264. return &v.state
  1265. case 1:
  1266. return &v.sizeCache
  1267. case 2:
  1268. return &v.unknownFields
  1269. default:
  1270. return nil
  1271. }
  1272. }
  1273. file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1274. switch v := v.(*ResourcesAuthRes); i {
  1275. case 0:
  1276. return &v.state
  1277. case 1:
  1278. return &v.sizeCache
  1279. case 2:
  1280. return &v.unknownFields
  1281. default:
  1282. return nil
  1283. }
  1284. }
  1285. file_resourcesCenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1286. switch v := v.(*AccountBalanceRes); i {
  1287. case 0:
  1288. return &v.state
  1289. case 1:
  1290. return &v.sizeCache
  1291. case 2:
  1292. return &v.unknownFields
  1293. default:
  1294. return nil
  1295. }
  1296. }
  1297. file_resourcesCenter_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1298. switch v := v.(*RecordReq); i {
  1299. case 0:
  1300. return &v.state
  1301. case 1:
  1302. return &v.sizeCache
  1303. case 2:
  1304. return &v.unknownFields
  1305. default:
  1306. return nil
  1307. }
  1308. }
  1309. file_resourcesCenter_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1310. switch v := v.(*ConsumeRecordRes); i {
  1311. case 0:
  1312. return &v.state
  1313. case 1:
  1314. return &v.sizeCache
  1315. case 2:
  1316. return &v.unknownFields
  1317. default:
  1318. return nil
  1319. }
  1320. }
  1321. }
  1322. type x struct{}
  1323. out := protoimpl.TypeBuilder{
  1324. File: protoimpl.DescBuilder{
  1325. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1326. RawDescriptor: file_resourcesCenter_proto_rawDesc,
  1327. NumEnums: 0,
  1328. NumMessages: 13,
  1329. NumExtensions: 0,
  1330. NumServices: 1,
  1331. },
  1332. GoTypes: file_resourcesCenter_proto_goTypes,
  1333. DependencyIndexes: file_resourcesCenter_proto_depIdxs,
  1334. MessageInfos: file_resourcesCenter_proto_msgTypes,
  1335. }.Build()
  1336. File_resourcesCenter_proto = out.File
  1337. file_resourcesCenter_proto_rawDesc = nil
  1338. file_resourcesCenter_proto_goTypes = nil
  1339. file_resourcesCenter_proto_depIdxs = nil
  1340. }
  1341. // Reference imports to suppress errors if they are not otherwise used.
  1342. var _ context.Context
  1343. var _ grpc.ClientConnInterface
  1344. // This is a compile-time assertion to ensure that this generated file
  1345. // is compatible with the grpc package it is being compiled against.
  1346. const _ = grpc.SupportPackageIsVersion6
  1347. // ResourcesCenterClient is the client API for ResourcesCenter service.
  1348. //
  1349. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1350. type ResourcesCenterClient interface {
  1351. //查询账户资源权限
  1352. FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
  1353. //查询账户资源余额
  1354. FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
  1355. //查询流水账
  1356. FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
  1357. //根据账户标识修改资源结存账
  1358. UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error)
  1359. //根据账户标识记录资源使用流水账
  1360. UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error)
  1361. //预览信息
  1362. FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
  1363. }
  1364. type resourcesCenterClient struct {
  1365. cc grpc.ClientConnInterface
  1366. }
  1367. func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient {
  1368. return &resourcesCenterClient{cc}
  1369. }
  1370. func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
  1371. out := new(AccountBalanceRes)
  1372. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findResourcesAuth", in, out, opts...)
  1373. if err != nil {
  1374. return nil, err
  1375. }
  1376. return out, nil
  1377. }
  1378. func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
  1379. out := new(AccountBalanceRes)
  1380. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findAccountBalance", in, out, opts...)
  1381. if err != nil {
  1382. return nil, err
  1383. }
  1384. return out, nil
  1385. }
  1386. func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *RecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
  1387. out := new(ConsumeRecordRes)
  1388. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findConsumeRecord", in, out, opts...)
  1389. if err != nil {
  1390. return nil, err
  1391. }
  1392. return out, nil
  1393. }
  1394. func (c *resourcesCenterClient) UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error) {
  1395. out := new(Response)
  1396. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserBalance", in, out, opts...)
  1397. if err != nil {
  1398. return nil, err
  1399. }
  1400. return out, nil
  1401. }
  1402. func (c *resourcesCenterClient) UpdateUserDetailed(ctx context.Context, in *Detailed, opts ...grpc.CallOption) (*Response, error) {
  1403. out := new(Response)
  1404. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/updateUserDetailed", in, out, opts...)
  1405. if err != nil {
  1406. return nil, err
  1407. }
  1408. return out, nil
  1409. }
  1410. func (c *resourcesCenterClient) FindPreview(ctx context.Context, in *PreviewReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
  1411. out := new(ConsumeRecordRes)
  1412. err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findPreview", in, out, opts...)
  1413. if err != nil {
  1414. return nil, err
  1415. }
  1416. return out, nil
  1417. }
  1418. // ResourcesCenterServer is the server API for ResourcesCenter service.
  1419. type ResourcesCenterServer interface {
  1420. //查询账户资源权限
  1421. FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
  1422. //查询账户资源余额
  1423. FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
  1424. //查询流水账
  1425. FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error)
  1426. //根据账户标识修改资源结存账
  1427. UpdateUserBalance(context.Context, *Balance) (*Response, error)
  1428. //根据账户标识记录资源使用流水账
  1429. UpdateUserDetailed(context.Context, *Detailed) (*Response, error)
  1430. //预览信息
  1431. FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error)
  1432. }
  1433. // UnimplementedResourcesCenterServer can be embedded to have forward compatible implementations.
  1434. type UnimplementedResourcesCenterServer struct {
  1435. }
  1436. func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
  1437. return nil, status.Errorf(codes.Unimplemented, "method FindResourcesAuth not implemented")
  1438. }
  1439. func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
  1440. return nil, status.Errorf(codes.Unimplemented, "method FindAccountBalance not implemented")
  1441. }
  1442. func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *RecordReq) (*ConsumeRecordRes, error) {
  1443. return nil, status.Errorf(codes.Unimplemented, "method FindConsumeRecord not implemented")
  1444. }
  1445. func (*UnimplementedResourcesCenterServer) UpdateUserBalance(context.Context, *Balance) (*Response, error) {
  1446. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserBalance not implemented")
  1447. }
  1448. func (*UnimplementedResourcesCenterServer) UpdateUserDetailed(context.Context, *Detailed) (*Response, error) {
  1449. return nil, status.Errorf(codes.Unimplemented, "method UpdateUserDetailed not implemented")
  1450. }
  1451. func (*UnimplementedResourcesCenterServer) FindPreview(context.Context, *PreviewReq) (*ConsumeRecordRes, error) {
  1452. return nil, status.Errorf(codes.Unimplemented, "method FindPreview not implemented")
  1453. }
  1454. func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) {
  1455. s.RegisterService(&_ResourcesCenter_serviceDesc, srv)
  1456. }
  1457. func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1458. in := new(ResourcesReq)
  1459. if err := dec(in); err != nil {
  1460. return nil, err
  1461. }
  1462. if interceptor == nil {
  1463. return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, in)
  1464. }
  1465. info := &grpc.UnaryServerInfo{
  1466. Server: srv,
  1467. FullMethod: "/resourcesCenter.ResourcesCenter/FindResourcesAuth",
  1468. }
  1469. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1470. return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesReq))
  1471. }
  1472. return interceptor(ctx, in, info, handler)
  1473. }
  1474. func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1475. in := new(ResourcesReq)
  1476. if err := dec(in); err != nil {
  1477. return nil, err
  1478. }
  1479. if interceptor == nil {
  1480. return srv.(ResourcesCenterServer).FindAccountBalance(ctx, in)
  1481. }
  1482. info := &grpc.UnaryServerInfo{
  1483. Server: srv,
  1484. FullMethod: "/resourcesCenter.ResourcesCenter/FindAccountBalance",
  1485. }
  1486. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1487. return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*ResourcesReq))
  1488. }
  1489. return interceptor(ctx, in, info, handler)
  1490. }
  1491. func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1492. in := new(RecordReq)
  1493. if err := dec(in); err != nil {
  1494. return nil, err
  1495. }
  1496. if interceptor == nil {
  1497. return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, in)
  1498. }
  1499. info := &grpc.UnaryServerInfo{
  1500. Server: srv,
  1501. FullMethod: "/resourcesCenter.ResourcesCenter/FindConsumeRecord",
  1502. }
  1503. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1504. return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*RecordReq))
  1505. }
  1506. return interceptor(ctx, in, info, handler)
  1507. }
  1508. func _ResourcesCenter_UpdateUserBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1509. in := new(Balance)
  1510. if err := dec(in); err != nil {
  1511. return nil, err
  1512. }
  1513. if interceptor == nil {
  1514. return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, in)
  1515. }
  1516. info := &grpc.UnaryServerInfo{
  1517. Server: srv,
  1518. FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserBalance",
  1519. }
  1520. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1521. return srv.(ResourcesCenterServer).UpdateUserBalance(ctx, req.(*Balance))
  1522. }
  1523. return interceptor(ctx, in, info, handler)
  1524. }
  1525. func _ResourcesCenter_UpdateUserDetailed_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1526. in := new(Detailed)
  1527. if err := dec(in); err != nil {
  1528. return nil, err
  1529. }
  1530. if interceptor == nil {
  1531. return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, in)
  1532. }
  1533. info := &grpc.UnaryServerInfo{
  1534. Server: srv,
  1535. FullMethod: "/resourcesCenter.ResourcesCenter/UpdateUserDetailed",
  1536. }
  1537. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1538. return srv.(ResourcesCenterServer).UpdateUserDetailed(ctx, req.(*Detailed))
  1539. }
  1540. return interceptor(ctx, in, info, handler)
  1541. }
  1542. func _ResourcesCenter_FindPreview_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1543. in := new(PreviewReq)
  1544. if err := dec(in); err != nil {
  1545. return nil, err
  1546. }
  1547. if interceptor == nil {
  1548. return srv.(ResourcesCenterServer).FindPreview(ctx, in)
  1549. }
  1550. info := &grpc.UnaryServerInfo{
  1551. Server: srv,
  1552. FullMethod: "/resourcesCenter.ResourcesCenter/FindPreview",
  1553. }
  1554. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1555. return srv.(ResourcesCenterServer).FindPreview(ctx, req.(*PreviewReq))
  1556. }
  1557. return interceptor(ctx, in, info, handler)
  1558. }
  1559. var _ResourcesCenter_serviceDesc = grpc.ServiceDesc{
  1560. ServiceName: "resourcesCenter.ResourcesCenter",
  1561. HandlerType: (*ResourcesCenterServer)(nil),
  1562. Methods: []grpc.MethodDesc{
  1563. {
  1564. MethodName: "findResourcesAuth",
  1565. Handler: _ResourcesCenter_FindResourcesAuth_Handler,
  1566. },
  1567. {
  1568. MethodName: "findAccountBalance",
  1569. Handler: _ResourcesCenter_FindAccountBalance_Handler,
  1570. },
  1571. {
  1572. MethodName: "findConsumeRecord",
  1573. Handler: _ResourcesCenter_FindConsumeRecord_Handler,
  1574. },
  1575. {
  1576. MethodName: "updateUserBalance",
  1577. Handler: _ResourcesCenter_UpdateUserBalance_Handler,
  1578. },
  1579. {
  1580. MethodName: "updateUserDetailed",
  1581. Handler: _ResourcesCenter_UpdateUserDetailed_Handler,
  1582. },
  1583. {
  1584. MethodName: "findPreview",
  1585. Handler: _ResourcesCenter_FindPreview_Handler,
  1586. },
  1587. },
  1588. Streams: []grpc.StreamDesc{},
  1589. Metadata: "resourcesCenter.proto",
  1590. }