resourcesCenter.pb.go 63 KB

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