resource.pb.go 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123
  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:没有授权 -4:超额
  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. type HaspowersReq struct {
  581. state protoimpl.MessageState
  582. sizeCache protoimpl.SizeCache
  583. unknownFields protoimpl.UnknownFields
  584. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  585. UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  586. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  587. EntUserId int64 `protobuf:"varint,4,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  588. }
  589. func (x *HaspowersReq) Reset() {
  590. *x = HaspowersReq{}
  591. if protoimpl.UnsafeEnabled {
  592. mi := &file_resource_proto_msgTypes[9]
  593. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  594. ms.StoreMessageInfo(mi)
  595. }
  596. }
  597. func (x *HaspowersReq) String() string {
  598. return protoimpl.X.MessageStringOf(x)
  599. }
  600. func (*HaspowersReq) ProtoMessage() {}
  601. func (x *HaspowersReq) ProtoReflect() protoreflect.Message {
  602. mi := &file_resource_proto_msgTypes[9]
  603. if protoimpl.UnsafeEnabled && x != nil {
  604. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  605. if ms.LoadMessageInfo() == nil {
  606. ms.StoreMessageInfo(mi)
  607. }
  608. return ms
  609. }
  610. return mi.MessageOf(x)
  611. }
  612. // Deprecated: Use HaspowersReq.ProtoReflect.Descriptor instead.
  613. func (*HaspowersReq) Descriptor() ([]byte, []int) {
  614. return file_resource_proto_rawDescGZIP(), []int{9}
  615. }
  616. func (x *HaspowersReq) GetAppid() string {
  617. if x != nil {
  618. return x.Appid
  619. }
  620. return ""
  621. }
  622. func (x *HaspowersReq) GetUserId() int64 {
  623. if x != nil {
  624. return x.UserId
  625. }
  626. return 0
  627. }
  628. func (x *HaspowersReq) GetEntId() int64 {
  629. if x != nil {
  630. return x.EntId
  631. }
  632. return 0
  633. }
  634. func (x *HaspowersReq) GetEntUserId() int64 {
  635. if x != nil {
  636. return x.EntUserId
  637. }
  638. return 0
  639. }
  640. type HaspowersResp struct {
  641. state protoimpl.MessageState
  642. sizeCache protoimpl.SizeCache
  643. unknownFields protoimpl.UnknownFields
  644. Powers []string `protobuf:"bytes,1,rep,name=powers,proto3" json:"powers,omitempty"` //所有权益
  645. }
  646. func (x *HaspowersResp) Reset() {
  647. *x = HaspowersResp{}
  648. if protoimpl.UnsafeEnabled {
  649. mi := &file_resource_proto_msgTypes[10]
  650. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  651. ms.StoreMessageInfo(mi)
  652. }
  653. }
  654. func (x *HaspowersResp) String() string {
  655. return protoimpl.X.MessageStringOf(x)
  656. }
  657. func (*HaspowersResp) ProtoMessage() {}
  658. func (x *HaspowersResp) ProtoReflect() protoreflect.Message {
  659. mi := &file_resource_proto_msgTypes[10]
  660. if protoimpl.UnsafeEnabled && x != nil {
  661. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  662. if ms.LoadMessageInfo() == nil {
  663. ms.StoreMessageInfo(mi)
  664. }
  665. return ms
  666. }
  667. return mi.MessageOf(x)
  668. }
  669. // Deprecated: Use HaspowersResp.ProtoReflect.Descriptor instead.
  670. func (*HaspowersResp) Descriptor() ([]byte, []int) {
  671. return file_resource_proto_rawDescGZIP(), []int{10}
  672. }
  673. func (x *HaspowersResp) GetPowers() []string {
  674. if x != nil {
  675. return x.Powers
  676. }
  677. return nil
  678. }
  679. var File_resource_proto protoreflect.FileDescriptor
  680. var file_resource_proto_rawDesc = []byte{
  681. 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  682. 0x22, 0x29, 0x0a, 0x07, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
  683. 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  684. 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc0, 0x01, 0x0a, 0x08,
  685. 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  686. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x1d,
  687. 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  688. 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a,
  689. 0x0d, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03,
  690. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x53, 0x70, 0x65, 0x63, 0x49,
  691. 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  692. 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72,
  693. 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49,
  694. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x75, 0x79, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01,
  695. 0x28, 0x03, 0x52, 0x06, 0x62, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79,
  696. 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x9a,
  697. 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  698. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  699. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  700. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  701. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75,
  702. 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
  703. 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04,
  704. 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
  705. 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  706. 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, 0x0c,
  707. 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05,
  708. 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70,
  709. 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63,
  710. 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74,
  711. 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  712. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17,
  713. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  714. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  715. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a,
  716. 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22,
  717. 0xa0, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
  718. 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  719. 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
  720. 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75,
  721. 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e,
  722. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49,
  723. 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
  724. 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f,
  725. 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  726. 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69,
  727. 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  728. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  729. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  730. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  731. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65,
  732. 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74,
  733. 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
  734. 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72,
  735. 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  736. 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01,
  737. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66,
  738. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  739. 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65,
  740. 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
  741. 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f,
  742. 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e,
  743. 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
  744. 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22,
  745. 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
  746. 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  747. 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74,
  748. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  749. 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16,
  750. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  751. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x5f, 0x63, 0x6f,
  752. 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x43, 0x6f,
  753. 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x5f, 0x63,
  754. 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x75, 0x72, 0x70,
  755. 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x74, 0x0a, 0x0c, 0x48, 0x61, 0x73, 0x70,
  756. 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  757. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x17,
  758. 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
  759. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69,
  760. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e,
  761. 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,
  762. 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x27,
  763. 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12,
  764. 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
  765. 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x32, 0xb8, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f,
  766. 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61, 0x6e,
  767. 0x64, 0x6c, 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05,
  768. 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f,
  769. 0x77, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72,
  770. 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44, 0x65,
  771. 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74,
  772. 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a,
  773. 0x08, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63, 0x68,
  774. 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
  775. 0x0a, 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d,
  776. 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
  777. 0x23, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  778. 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e,
  779. 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c,
  780. 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73,
  781. 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  782. 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77,
  783. 0x65, 0x72, 0x73, 0x12, 0x0d, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52,
  784. 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65,
  785. 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  786. 0x6f, 0x33,
  787. }
  788. var (
  789. file_resource_proto_rawDescOnce sync.Once
  790. file_resource_proto_rawDescData = file_resource_proto_rawDesc
  791. )
  792. func file_resource_proto_rawDescGZIP() []byte {
  793. file_resource_proto_rawDescOnce.Do(func() {
  794. file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_resource_proto_rawDescData)
  795. })
  796. return file_resource_proto_rawDescData
  797. }
  798. var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  799. var file_resource_proto_goTypes = []interface{}{
  800. (*Empower)(nil), // 0: Empower
  801. (*PowerReq)(nil), // 1: PowerReq
  802. (*CheckPowerReq)(nil), // 2: CheckPowerReq
  803. (*DeductionReq)(nil), // 3: DeductionReq
  804. (*RechargeReq)(nil), // 4: RechargeReq
  805. (*EmpowerReq)(nil), // 5: EmpowerReq
  806. (*EmpowerListReq)(nil), // 6: EmpowerListReq
  807. (*EmpowerListResp)(nil), // 7: EmpowerListResp
  808. (*Resp)(nil), // 8: Resp
  809. (*HaspowersReq)(nil), // 9: HaspowersReq
  810. (*HaspowersResp)(nil), // 10: HaspowersResp
  811. }
  812. var file_resource_proto_depIdxs = []int32{
  813. 0, // 0: EmpowerListResp.list:type_name -> Empower
  814. 1, // 1: Resource.PowerHandle:input_type -> PowerReq
  815. 2, // 2: Resource.CheckPower:input_type -> CheckPowerReq
  816. 3, // 3: Resource.Deduction:input_type -> DeductionReq
  817. 4, // 4: Resource.Recharge:input_type -> RechargeReq
  818. 5, // 5: Resource.ReEmpower:input_type -> EmpowerReq
  819. 5, // 6: Resource.CancelEmpower:input_type -> EmpowerReq
  820. 6, // 7: Resource.EmpowerList:input_type -> EmpowerListReq
  821. 9, // 8: Resource.Haspowers:input_type -> HaspowersReq
  822. 8, // 9: Resource.PowerHandle:output_type -> Resp
  823. 8, // 10: Resource.CheckPower:output_type -> Resp
  824. 8, // 11: Resource.Deduction:output_type -> Resp
  825. 8, // 12: Resource.Recharge:output_type -> Resp
  826. 8, // 13: Resource.ReEmpower:output_type -> Resp
  827. 8, // 14: Resource.CancelEmpower:output_type -> Resp
  828. 7, // 15: Resource.EmpowerList:output_type -> EmpowerListResp
  829. 10, // 16: Resource.Haspowers:output_type -> HaspowersResp
  830. 9, // [9:17] is the sub-list for method output_type
  831. 1, // [1:9] is the sub-list for method input_type
  832. 1, // [1:1] is the sub-list for extension type_name
  833. 1, // [1:1] is the sub-list for extension extendee
  834. 0, // [0:1] is the sub-list for field type_name
  835. }
  836. func init() { file_resource_proto_init() }
  837. func file_resource_proto_init() {
  838. if File_resource_proto != nil {
  839. return
  840. }
  841. if !protoimpl.UnsafeEnabled {
  842. file_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  843. switch v := v.(*Empower); i {
  844. case 0:
  845. return &v.state
  846. case 1:
  847. return &v.sizeCache
  848. case 2:
  849. return &v.unknownFields
  850. default:
  851. return nil
  852. }
  853. }
  854. file_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  855. switch v := v.(*PowerReq); i {
  856. case 0:
  857. return &v.state
  858. case 1:
  859. return &v.sizeCache
  860. case 2:
  861. return &v.unknownFields
  862. default:
  863. return nil
  864. }
  865. }
  866. file_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  867. switch v := v.(*CheckPowerReq); i {
  868. case 0:
  869. return &v.state
  870. case 1:
  871. return &v.sizeCache
  872. case 2:
  873. return &v.unknownFields
  874. default:
  875. return nil
  876. }
  877. }
  878. file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  879. switch v := v.(*DeductionReq); i {
  880. case 0:
  881. return &v.state
  882. case 1:
  883. return &v.sizeCache
  884. case 2:
  885. return &v.unknownFields
  886. default:
  887. return nil
  888. }
  889. }
  890. file_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  891. switch v := v.(*RechargeReq); i {
  892. case 0:
  893. return &v.state
  894. case 1:
  895. return &v.sizeCache
  896. case 2:
  897. return &v.unknownFields
  898. default:
  899. return nil
  900. }
  901. }
  902. file_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  903. switch v := v.(*EmpowerReq); i {
  904. case 0:
  905. return &v.state
  906. case 1:
  907. return &v.sizeCache
  908. case 2:
  909. return &v.unknownFields
  910. default:
  911. return nil
  912. }
  913. }
  914. file_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  915. switch v := v.(*EmpowerListReq); i {
  916. case 0:
  917. return &v.state
  918. case 1:
  919. return &v.sizeCache
  920. case 2:
  921. return &v.unknownFields
  922. default:
  923. return nil
  924. }
  925. }
  926. file_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  927. switch v := v.(*EmpowerListResp); i {
  928. case 0:
  929. return &v.state
  930. case 1:
  931. return &v.sizeCache
  932. case 2:
  933. return &v.unknownFields
  934. default:
  935. return nil
  936. }
  937. }
  938. file_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  939. switch v := v.(*Resp); i {
  940. case 0:
  941. return &v.state
  942. case 1:
  943. return &v.sizeCache
  944. case 2:
  945. return &v.unknownFields
  946. default:
  947. return nil
  948. }
  949. }
  950. file_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  951. switch v := v.(*HaspowersReq); i {
  952. case 0:
  953. return &v.state
  954. case 1:
  955. return &v.sizeCache
  956. case 2:
  957. return &v.unknownFields
  958. default:
  959. return nil
  960. }
  961. }
  962. file_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  963. switch v := v.(*HaspowersResp); i {
  964. case 0:
  965. return &v.state
  966. case 1:
  967. return &v.sizeCache
  968. case 2:
  969. return &v.unknownFields
  970. default:
  971. return nil
  972. }
  973. }
  974. }
  975. type x struct{}
  976. out := protoimpl.TypeBuilder{
  977. File: protoimpl.DescBuilder{
  978. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  979. RawDescriptor: file_resource_proto_rawDesc,
  980. NumEnums: 0,
  981. NumMessages: 11,
  982. NumExtensions: 0,
  983. NumServices: 1,
  984. },
  985. GoTypes: file_resource_proto_goTypes,
  986. DependencyIndexes: file_resource_proto_depIdxs,
  987. MessageInfos: file_resource_proto_msgTypes,
  988. }.Build()
  989. File_resource_proto = out.File
  990. file_resource_proto_rawDesc = nil
  991. file_resource_proto_goTypes = nil
  992. file_resource_proto_depIdxs = nil
  993. }