resource.pb.go 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.20.0--rc2
  5. // source: resource.proto
  6. package pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type Empower struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. EntUserId int64 `protobuf:"varint,1,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  24. }
  25. func (x *Empower) Reset() {
  26. *x = Empower{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_resource_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *Empower) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*Empower) ProtoMessage() {}
  37. func (x *Empower) ProtoReflect() protoreflect.Message {
  38. mi := &file_resource_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use Empower.ProtoReflect.Descriptor instead.
  49. func (*Empower) Descriptor() ([]byte, []int) {
  50. return file_resource_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *Empower) GetEntUserId() int64 {
  53. if x != nil {
  54. return x.EntUserId
  55. }
  56. return 0
  57. }
  58. type PowerReq struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  63. GoodsCode string `protobuf:"bytes,2,opt,name=goods_code,json=goodsCode,proto3" json:"goods_code,omitempty"` //商品代码
  64. GoodsSpecId int64 `protobuf:"varint,3,opt,name=goods_spec_id,json=goodsSpecId,proto3" json:"goods_spec_id,omitempty"` //商品规格id
  65. EntId int64 `protobuf:"varint,4,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  66. UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  67. BuyNum int64 `protobuf:"varint,6,opt,name=buy_num,json=buyNum,proto3" json:"buy_num,omitempty"` //购买的数量或者购买的份数
  68. Type int64 `protobuf:"varint,7,opt,name=type,proto3" json:"type,omitempty"` //操作类型 1:开通权益 -1:取消权益
  69. }
  70. func (x *PowerReq) Reset() {
  71. *x = PowerReq{}
  72. if protoimpl.UnsafeEnabled {
  73. mi := &file_resource_proto_msgTypes[1]
  74. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  75. ms.StoreMessageInfo(mi)
  76. }
  77. }
  78. func (x *PowerReq) String() string {
  79. return protoimpl.X.MessageStringOf(x)
  80. }
  81. func (*PowerReq) ProtoMessage() {}
  82. func (x *PowerReq) ProtoReflect() protoreflect.Message {
  83. mi := &file_resource_proto_msgTypes[1]
  84. if protoimpl.UnsafeEnabled && x != nil {
  85. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  86. if ms.LoadMessageInfo() == nil {
  87. ms.StoreMessageInfo(mi)
  88. }
  89. return ms
  90. }
  91. return mi.MessageOf(x)
  92. }
  93. // Deprecated: Use PowerReq.ProtoReflect.Descriptor instead.
  94. func (*PowerReq) Descriptor() ([]byte, []int) {
  95. return file_resource_proto_rawDescGZIP(), []int{1}
  96. }
  97. func (x *PowerReq) GetAppid() string {
  98. if x != nil {
  99. return x.Appid
  100. }
  101. return ""
  102. }
  103. func (x *PowerReq) GetGoodsCode() string {
  104. if x != nil {
  105. return x.GoodsCode
  106. }
  107. return ""
  108. }
  109. func (x *PowerReq) GetGoodsSpecId() int64 {
  110. if x != nil {
  111. return x.GoodsSpecId
  112. }
  113. return 0
  114. }
  115. func (x *PowerReq) GetEntId() int64 {
  116. if x != nil {
  117. return x.EntId
  118. }
  119. return 0
  120. }
  121. func (x *PowerReq) GetUserId() int64 {
  122. if x != nil {
  123. return x.UserId
  124. }
  125. return 0
  126. }
  127. func (x *PowerReq) GetBuyNum() int64 {
  128. if x != nil {
  129. return x.BuyNum
  130. }
  131. return 0
  132. }
  133. func (x *PowerReq) GetType() int64 {
  134. if x != nil {
  135. return x.Type
  136. }
  137. return 0
  138. }
  139. type CheckPowerReq struct {
  140. state protoimpl.MessageState
  141. sizeCache protoimpl.SizeCache
  142. unknownFields protoimpl.UnknownFields
  143. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  144. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  145. UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  146. EntId int64 `protobuf:"varint,4,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  147. EntUserId int64 `protobuf:"varint,5,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  148. }
  149. func (x *CheckPowerReq) Reset() {
  150. *x = CheckPowerReq{}
  151. if protoimpl.UnsafeEnabled {
  152. mi := &file_resource_proto_msgTypes[2]
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. ms.StoreMessageInfo(mi)
  155. }
  156. }
  157. func (x *CheckPowerReq) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*CheckPowerReq) ProtoMessage() {}
  161. func (x *CheckPowerReq) ProtoReflect() protoreflect.Message {
  162. mi := &file_resource_proto_msgTypes[2]
  163. if protoimpl.UnsafeEnabled && x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use CheckPowerReq.ProtoReflect.Descriptor instead.
  173. func (*CheckPowerReq) Descriptor() ([]byte, []int) {
  174. return file_resource_proto_rawDescGZIP(), []int{2}
  175. }
  176. func (x *CheckPowerReq) GetAppid() string {
  177. if x != nil {
  178. return x.Appid
  179. }
  180. return ""
  181. }
  182. func (x *CheckPowerReq) GetFunctionCode() string {
  183. if x != nil {
  184. return x.FunctionCode
  185. }
  186. return ""
  187. }
  188. func (x *CheckPowerReq) GetUserId() int64 {
  189. if x != nil {
  190. return x.UserId
  191. }
  192. return 0
  193. }
  194. func (x *CheckPowerReq) GetEntId() int64 {
  195. if x != nil {
  196. return x.EntId
  197. }
  198. return 0
  199. }
  200. func (x *CheckPowerReq) GetEntUserId() int64 {
  201. if x != nil {
  202. return x.EntUserId
  203. }
  204. return 0
  205. }
  206. type DeductionReq struct {
  207. state protoimpl.MessageState
  208. sizeCache protoimpl.SizeCache
  209. unknownFields protoimpl.UnknownFields
  210. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  211. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  212. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  213. UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  214. Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
  215. Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  216. }
  217. func (x *DeductionReq) Reset() {
  218. *x = DeductionReq{}
  219. if protoimpl.UnsafeEnabled {
  220. mi := &file_resource_proto_msgTypes[3]
  221. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  222. ms.StoreMessageInfo(mi)
  223. }
  224. }
  225. func (x *DeductionReq) String() string {
  226. return protoimpl.X.MessageStringOf(x)
  227. }
  228. func (*DeductionReq) ProtoMessage() {}
  229. func (x *DeductionReq) ProtoReflect() protoreflect.Message {
  230. mi := &file_resource_proto_msgTypes[3]
  231. if protoimpl.UnsafeEnabled && x != nil {
  232. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  233. if ms.LoadMessageInfo() == nil {
  234. ms.StoreMessageInfo(mi)
  235. }
  236. return ms
  237. }
  238. return mi.MessageOf(x)
  239. }
  240. // Deprecated: Use DeductionReq.ProtoReflect.Descriptor instead.
  241. func (*DeductionReq) Descriptor() ([]byte, []int) {
  242. return file_resource_proto_rawDescGZIP(), []int{3}
  243. }
  244. func (x *DeductionReq) GetAppid() string {
  245. if x != nil {
  246. return x.Appid
  247. }
  248. return ""
  249. }
  250. func (x *DeductionReq) GetFunctionCode() string {
  251. if x != nil {
  252. return x.FunctionCode
  253. }
  254. return ""
  255. }
  256. func (x *DeductionReq) GetEntId() int64 {
  257. if x != nil {
  258. return x.EntId
  259. }
  260. return 0
  261. }
  262. func (x *DeductionReq) GetUserId() int64 {
  263. if x != nil {
  264. return x.UserId
  265. }
  266. return 0
  267. }
  268. func (x *DeductionReq) GetCount() int64 {
  269. if x != nil {
  270. return x.Count
  271. }
  272. return 0
  273. }
  274. func (x *DeductionReq) GetIds() []string {
  275. if x != nil {
  276. return x.Ids
  277. }
  278. return nil
  279. }
  280. type RechargeReq struct {
  281. state protoimpl.MessageState
  282. sizeCache protoimpl.SizeCache
  283. unknownFields protoimpl.UnknownFields
  284. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  285. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  286. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  287. UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  288. Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
  289. Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  290. }
  291. func (x *RechargeReq) Reset() {
  292. *x = RechargeReq{}
  293. if protoimpl.UnsafeEnabled {
  294. mi := &file_resource_proto_msgTypes[4]
  295. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  296. ms.StoreMessageInfo(mi)
  297. }
  298. }
  299. func (x *RechargeReq) String() string {
  300. return protoimpl.X.MessageStringOf(x)
  301. }
  302. func (*RechargeReq) ProtoMessage() {}
  303. func (x *RechargeReq) ProtoReflect() protoreflect.Message {
  304. mi := &file_resource_proto_msgTypes[4]
  305. if protoimpl.UnsafeEnabled && x != nil {
  306. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  307. if ms.LoadMessageInfo() == nil {
  308. ms.StoreMessageInfo(mi)
  309. }
  310. return ms
  311. }
  312. return mi.MessageOf(x)
  313. }
  314. // Deprecated: Use RechargeReq.ProtoReflect.Descriptor instead.
  315. func (*RechargeReq) Descriptor() ([]byte, []int) {
  316. return file_resource_proto_rawDescGZIP(), []int{4}
  317. }
  318. func (x *RechargeReq) GetAppid() string {
  319. if x != nil {
  320. return x.Appid
  321. }
  322. return ""
  323. }
  324. func (x *RechargeReq) GetFunctionCode() string {
  325. if x != nil {
  326. return x.FunctionCode
  327. }
  328. return ""
  329. }
  330. func (x *RechargeReq) GetEntId() int64 {
  331. if x != nil {
  332. return x.EntId
  333. }
  334. return 0
  335. }
  336. func (x *RechargeReq) GetUserId() int64 {
  337. if x != nil {
  338. return x.UserId
  339. }
  340. return 0
  341. }
  342. func (x *RechargeReq) GetCount() int64 {
  343. if x != nil {
  344. return x.Count
  345. }
  346. return 0
  347. }
  348. func (x *RechargeReq) GetIds() []string {
  349. if x != nil {
  350. return x.Ids
  351. }
  352. return nil
  353. }
  354. type EmpowerReq struct {
  355. state protoimpl.MessageState
  356. sizeCache protoimpl.SizeCache
  357. unknownFields protoimpl.UnknownFields
  358. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  359. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  360. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  361. EntUserId []int64 `protobuf:"varint,4,rep,packed,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  362. }
  363. func (x *EmpowerReq) Reset() {
  364. *x = EmpowerReq{}
  365. if protoimpl.UnsafeEnabled {
  366. mi := &file_resource_proto_msgTypes[5]
  367. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  368. ms.StoreMessageInfo(mi)
  369. }
  370. }
  371. func (x *EmpowerReq) String() string {
  372. return protoimpl.X.MessageStringOf(x)
  373. }
  374. func (*EmpowerReq) ProtoMessage() {}
  375. func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
  376. mi := &file_resource_proto_msgTypes[5]
  377. if protoimpl.UnsafeEnabled && x != nil {
  378. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  379. if ms.LoadMessageInfo() == nil {
  380. ms.StoreMessageInfo(mi)
  381. }
  382. return ms
  383. }
  384. return mi.MessageOf(x)
  385. }
  386. // Deprecated: Use EmpowerReq.ProtoReflect.Descriptor instead.
  387. func (*EmpowerReq) Descriptor() ([]byte, []int) {
  388. return file_resource_proto_rawDescGZIP(), []int{5}
  389. }
  390. func (x *EmpowerReq) GetAppid() string {
  391. if x != nil {
  392. return x.Appid
  393. }
  394. return ""
  395. }
  396. func (x *EmpowerReq) GetFunctionCode() string {
  397. if x != nil {
  398. return x.FunctionCode
  399. }
  400. return ""
  401. }
  402. func (x *EmpowerReq) GetEntId() int64 {
  403. if x != nil {
  404. return x.EntId
  405. }
  406. return 0
  407. }
  408. func (x *EmpowerReq) GetEntUserId() []int64 {
  409. if x != nil {
  410. return x.EntUserId
  411. }
  412. return nil
  413. }
  414. type EmpowerListReq struct {
  415. state protoimpl.MessageState
  416. sizeCache protoimpl.SizeCache
  417. unknownFields protoimpl.UnknownFields
  418. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  419. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  420. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  421. PageNum int64 `protobuf:"varint,4,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` //开始页码,小于1的话,返回所有数据,不进行分页
  422. PageSize int64 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //每页大小
  423. }
  424. func (x *EmpowerListReq) Reset() {
  425. *x = EmpowerListReq{}
  426. if protoimpl.UnsafeEnabled {
  427. mi := &file_resource_proto_msgTypes[6]
  428. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  429. ms.StoreMessageInfo(mi)
  430. }
  431. }
  432. func (x *EmpowerListReq) String() string {
  433. return protoimpl.X.MessageStringOf(x)
  434. }
  435. func (*EmpowerListReq) ProtoMessage() {}
  436. func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
  437. mi := &file_resource_proto_msgTypes[6]
  438. if protoimpl.UnsafeEnabled && x != nil {
  439. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  440. if ms.LoadMessageInfo() == nil {
  441. ms.StoreMessageInfo(mi)
  442. }
  443. return ms
  444. }
  445. return mi.MessageOf(x)
  446. }
  447. // Deprecated: Use EmpowerListReq.ProtoReflect.Descriptor instead.
  448. func (*EmpowerListReq) Descriptor() ([]byte, []int) {
  449. return file_resource_proto_rawDescGZIP(), []int{6}
  450. }
  451. func (x *EmpowerListReq) GetAppid() string {
  452. if x != nil {
  453. return x.Appid
  454. }
  455. return ""
  456. }
  457. func (x *EmpowerListReq) GetFunctionCode() string {
  458. if x != nil {
  459. return x.FunctionCode
  460. }
  461. return ""
  462. }
  463. func (x *EmpowerListReq) GetEntId() int64 {
  464. if x != nil {
  465. return x.EntId
  466. }
  467. return 0
  468. }
  469. func (x *EmpowerListReq) GetPageNum() int64 {
  470. if x != nil {
  471. return x.PageNum
  472. }
  473. return 0
  474. }
  475. func (x *EmpowerListReq) GetPageSize() int64 {
  476. if x != nil {
  477. return x.PageSize
  478. }
  479. return 0
  480. }
  481. type EmpowerListResp struct {
  482. state protoimpl.MessageState
  483. sizeCache protoimpl.SizeCache
  484. unknownFields protoimpl.UnknownFields
  485. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` //总条数,只有第一页的时候才返回, 如果企业下所有人都有权限返回-1
  486. List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //列表,如果企业下所有人都有权限,返回空数组
  487. }
  488. func (x *EmpowerListResp) Reset() {
  489. *x = EmpowerListResp{}
  490. if protoimpl.UnsafeEnabled {
  491. mi := &file_resource_proto_msgTypes[7]
  492. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  493. ms.StoreMessageInfo(mi)
  494. }
  495. }
  496. func (x *EmpowerListResp) String() string {
  497. return protoimpl.X.MessageStringOf(x)
  498. }
  499. func (*EmpowerListResp) ProtoMessage() {}
  500. func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
  501. mi := &file_resource_proto_msgTypes[7]
  502. if protoimpl.UnsafeEnabled && x != nil {
  503. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  504. if ms.LoadMessageInfo() == nil {
  505. ms.StoreMessageInfo(mi)
  506. }
  507. return ms
  508. }
  509. return mi.MessageOf(x)
  510. }
  511. // Deprecated: Use EmpowerListResp.ProtoReflect.Descriptor instead.
  512. func (*EmpowerListResp) Descriptor() ([]byte, []int) {
  513. return file_resource_proto_rawDescGZIP(), []int{7}
  514. }
  515. func (x *EmpowerListResp) GetCount() int64 {
  516. if x != nil {
  517. return x.Count
  518. }
  519. return 0
  520. }
  521. func (x *EmpowerListResp) GetList() []*Empower {
  522. if x != nil {
  523. return x.List
  524. }
  525. return nil
  526. }
  527. type Resp struct {
  528. state protoimpl.MessageState
  529. sizeCache protoimpl.SizeCache
  530. unknownFields protoimpl.UnknownFields
  531. Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
  532. UseCount int64 `protobuf:"varint,2,opt,name=use_count,json=useCount,proto3" json:"use_count,omitempty"` //使用数量
  533. SurplusCount int64 `protobuf:"varint,3,opt,name=surplus_count,json=surplusCount,proto3" json:"surplus_count,omitempty"` //剩余数量
  534. }
  535. func (x *Resp) Reset() {
  536. *x = Resp{}
  537. if protoimpl.UnsafeEnabled {
  538. mi := &file_resource_proto_msgTypes[8]
  539. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  540. ms.StoreMessageInfo(mi)
  541. }
  542. }
  543. func (x *Resp) String() string {
  544. return protoimpl.X.MessageStringOf(x)
  545. }
  546. func (*Resp) ProtoMessage() {}
  547. func (x *Resp) ProtoReflect() protoreflect.Message {
  548. mi := &file_resource_proto_msgTypes[8]
  549. if protoimpl.UnsafeEnabled && x != nil {
  550. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  551. if ms.LoadMessageInfo() == nil {
  552. ms.StoreMessageInfo(mi)
  553. }
  554. return ms
  555. }
  556. return mi.MessageOf(x)
  557. }
  558. // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
  559. func (*Resp) Descriptor() ([]byte, []int) {
  560. return file_resource_proto_rawDescGZIP(), []int{8}
  561. }
  562. func (x *Resp) GetStatus() int64 {
  563. if x != nil {
  564. return x.Status
  565. }
  566. return 0
  567. }
  568. func (x *Resp) GetUseCount() int64 {
  569. if x != nil {
  570. return x.UseCount
  571. }
  572. return 0
  573. }
  574. func (x *Resp) GetSurplusCount() int64 {
  575. if x != nil {
  576. return x.SurplusCount
  577. }
  578. return 0
  579. }
  580. var File_resource_proto protoreflect.FileDescriptor
  581. var file_resource_proto_rawDesc = []byte{
  582. 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  583. 0x22, 0x29, 0x0a, 0x07, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
  584. 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  585. 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x08,
  586. 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  587. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x1d,
  588. 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  589. 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a,
  590. 0x0d, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03,
  591. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x53, 0x70, 0x65, 0x63, 0x49,
  592. 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  593. 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
  594. 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  595. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x75, 0x79, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01,
  596. 0x28, 0x03, 0x52, 0x06, 0x62, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
  597. 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x9a,
  598. 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  599. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  600. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  601. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  602. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75,
  603. 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
  604. 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04,
  605. 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
  606. 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  607. 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, 0x0c,
  608. 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
  609. 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  610. 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63,
  611. 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74,
  612. 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  613. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17,
  614. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  615. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  616. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a,
  617. 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22,
  618. 0xa0, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
  619. 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  620. 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
  621. 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75,
  622. 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e,
  623. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49,
  624. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
  625. 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f,
  626. 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  627. 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69,
  628. 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  629. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  630. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  631. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  632. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65,
  633. 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74,
  634. 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
  635. 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72,
  636. 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  637. 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01,
  638. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66,
  639. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  640. 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65,
  641. 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
  642. 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f,
  643. 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e,
  644. 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
  645. 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22,
  646. 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  647. 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  648. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74,
  649. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  650. 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16,
  651. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  652. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x5f, 0x63, 0x6f,
  653. 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x43, 0x6f,
  654. 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x5f, 0x63,
  655. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x75, 0x72, 0x70,
  656. 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x8c, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73,
  657. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61,
  658. 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
  659. 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
  660. 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
  661. 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44,
  662. 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63,
  663. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
  664. 0x0a, 0x08, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63,
  665. 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
  666. 0x1f, 0x0a, 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45,
  667. 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70,
  668. 0x12, 0x23, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
  669. 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05,
  670. 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  671. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  672. 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c,
  673. 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
  674. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  675. }
  676. var (
  677. file_resource_proto_rawDescOnce sync.Once
  678. file_resource_proto_rawDescData = file_resource_proto_rawDesc
  679. )
  680. func file_resource_proto_rawDescGZIP() []byte {
  681. file_resource_proto_rawDescOnce.Do(func() {
  682. file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_resource_proto_rawDescData)
  683. })
  684. return file_resource_proto_rawDescData
  685. }
  686. var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  687. var file_resource_proto_goTypes = []interface{}{
  688. (*Empower)(nil), // 0: Empower
  689. (*PowerReq)(nil), // 1: PowerReq
  690. (*CheckPowerReq)(nil), // 2: CheckPowerReq
  691. (*DeductionReq)(nil), // 3: DeductionReq
  692. (*RechargeReq)(nil), // 4: RechargeReq
  693. (*EmpowerReq)(nil), // 5: EmpowerReq
  694. (*EmpowerListReq)(nil), // 6: EmpowerListReq
  695. (*EmpowerListResp)(nil), // 7: EmpowerListResp
  696. (*Resp)(nil), // 8: Resp
  697. }
  698. var file_resource_proto_depIdxs = []int32{
  699. 0, // 0: EmpowerListResp.list:type_name -> Empower
  700. 1, // 1: Resource.PowerHandle:input_type -> PowerReq
  701. 2, // 2: Resource.CheckPower:input_type -> CheckPowerReq
  702. 3, // 3: Resource.Deduction:input_type -> DeductionReq
  703. 4, // 4: Resource.Recharge:input_type -> RechargeReq
  704. 5, // 5: Resource.ReEmpower:input_type -> EmpowerReq
  705. 5, // 6: Resource.CancelEmpower:input_type -> EmpowerReq
  706. 6, // 7: Resource.EmpowerList:input_type -> EmpowerListReq
  707. 8, // 8: Resource.PowerHandle:output_type -> Resp
  708. 8, // 9: Resource.CheckPower:output_type -> Resp
  709. 8, // 10: Resource.Deduction:output_type -> Resp
  710. 8, // 11: Resource.Recharge:output_type -> Resp
  711. 8, // 12: Resource.ReEmpower:output_type -> Resp
  712. 8, // 13: Resource.CancelEmpower:output_type -> Resp
  713. 7, // 14: Resource.EmpowerList:output_type -> EmpowerListResp
  714. 8, // [8:15] is the sub-list for method output_type
  715. 1, // [1:8] is the sub-list for method input_type
  716. 1, // [1:1] is the sub-list for extension type_name
  717. 1, // [1:1] is the sub-list for extension extendee
  718. 0, // [0:1] is the sub-list for field type_name
  719. }
  720. func init() { file_resource_proto_init() }
  721. func file_resource_proto_init() {
  722. if File_resource_proto != nil {
  723. return
  724. }
  725. if !protoimpl.UnsafeEnabled {
  726. file_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  727. switch v := v.(*Empower); i {
  728. case 0:
  729. return &v.state
  730. case 1:
  731. return &v.sizeCache
  732. case 2:
  733. return &v.unknownFields
  734. default:
  735. return nil
  736. }
  737. }
  738. file_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  739. switch v := v.(*PowerReq); i {
  740. case 0:
  741. return &v.state
  742. case 1:
  743. return &v.sizeCache
  744. case 2:
  745. return &v.unknownFields
  746. default:
  747. return nil
  748. }
  749. }
  750. file_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  751. switch v := v.(*CheckPowerReq); i {
  752. case 0:
  753. return &v.state
  754. case 1:
  755. return &v.sizeCache
  756. case 2:
  757. return &v.unknownFields
  758. default:
  759. return nil
  760. }
  761. }
  762. file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  763. switch v := v.(*DeductionReq); i {
  764. case 0:
  765. return &v.state
  766. case 1:
  767. return &v.sizeCache
  768. case 2:
  769. return &v.unknownFields
  770. default:
  771. return nil
  772. }
  773. }
  774. file_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  775. switch v := v.(*RechargeReq); i {
  776. case 0:
  777. return &v.state
  778. case 1:
  779. return &v.sizeCache
  780. case 2:
  781. return &v.unknownFields
  782. default:
  783. return nil
  784. }
  785. }
  786. file_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  787. switch v := v.(*EmpowerReq); i {
  788. case 0:
  789. return &v.state
  790. case 1:
  791. return &v.sizeCache
  792. case 2:
  793. return &v.unknownFields
  794. default:
  795. return nil
  796. }
  797. }
  798. file_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  799. switch v := v.(*EmpowerListReq); i {
  800. case 0:
  801. return &v.state
  802. case 1:
  803. return &v.sizeCache
  804. case 2:
  805. return &v.unknownFields
  806. default:
  807. return nil
  808. }
  809. }
  810. file_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  811. switch v := v.(*EmpowerListResp); i {
  812. case 0:
  813. return &v.state
  814. case 1:
  815. return &v.sizeCache
  816. case 2:
  817. return &v.unknownFields
  818. default:
  819. return nil
  820. }
  821. }
  822. file_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  823. switch v := v.(*Resp); i {
  824. case 0:
  825. return &v.state
  826. case 1:
  827. return &v.sizeCache
  828. case 2:
  829. return &v.unknownFields
  830. default:
  831. return nil
  832. }
  833. }
  834. }
  835. type x struct{}
  836. out := protoimpl.TypeBuilder{
  837. File: protoimpl.DescBuilder{
  838. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  839. RawDescriptor: file_resource_proto_rawDesc,
  840. NumEnums: 0,
  841. NumMessages: 9,
  842. NumExtensions: 0,
  843. NumServices: 1,
  844. },
  845. GoTypes: file_resource_proto_goTypes,
  846. DependencyIndexes: file_resource_proto_depIdxs,
  847. MessageInfos: file_resource_proto_msgTypes,
  848. }.Build()
  849. File_resource_proto = out.File
  850. file_resource_proto_rawDesc = nil
  851. file_resource_proto_goTypes = nil
  852. file_resource_proto_depIdxs = nil
  853. }