resource.pb.go 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  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. AccountId int64 `protobuf:"varint,5,opt,name=account_id,json=accountId,proto3" json:"account_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. StartTime string `protobuf:"bytes,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` //权益开始时间 格式:2006-01-02 15:04:05
  70. EndTime string `protobuf:"bytes,9,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` //权益到期时间 格式:2006-01-02 15:04:05
  71. }
  72. func (x *PowerReq) Reset() {
  73. *x = PowerReq{}
  74. if protoimpl.UnsafeEnabled {
  75. mi := &file_resource_proto_msgTypes[1]
  76. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  77. ms.StoreMessageInfo(mi)
  78. }
  79. }
  80. func (x *PowerReq) String() string {
  81. return protoimpl.X.MessageStringOf(x)
  82. }
  83. func (*PowerReq) ProtoMessage() {}
  84. func (x *PowerReq) ProtoReflect() protoreflect.Message {
  85. mi := &file_resource_proto_msgTypes[1]
  86. if protoimpl.UnsafeEnabled && x != nil {
  87. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  88. if ms.LoadMessageInfo() == nil {
  89. ms.StoreMessageInfo(mi)
  90. }
  91. return ms
  92. }
  93. return mi.MessageOf(x)
  94. }
  95. // Deprecated: Use PowerReq.ProtoReflect.Descriptor instead.
  96. func (*PowerReq) Descriptor() ([]byte, []int) {
  97. return file_resource_proto_rawDescGZIP(), []int{1}
  98. }
  99. func (x *PowerReq) GetAppid() string {
  100. if x != nil {
  101. return x.Appid
  102. }
  103. return ""
  104. }
  105. func (x *PowerReq) GetGoodsCode() string {
  106. if x != nil {
  107. return x.GoodsCode
  108. }
  109. return ""
  110. }
  111. func (x *PowerReq) GetGoodsSpecId() int64 {
  112. if x != nil {
  113. return x.GoodsSpecId
  114. }
  115. return 0
  116. }
  117. func (x *PowerReq) GetEntId() int64 {
  118. if x != nil {
  119. return x.EntId
  120. }
  121. return 0
  122. }
  123. func (x *PowerReq) GetAccountId() int64 {
  124. if x != nil {
  125. return x.AccountId
  126. }
  127. return 0
  128. }
  129. func (x *PowerReq) GetBuyNum() int64 {
  130. if x != nil {
  131. return x.BuyNum
  132. }
  133. return 0
  134. }
  135. func (x *PowerReq) GetType() int64 {
  136. if x != nil {
  137. return x.Type
  138. }
  139. return 0
  140. }
  141. func (x *PowerReq) GetStartTime() string {
  142. if x != nil {
  143. return x.StartTime
  144. }
  145. return ""
  146. }
  147. func (x *PowerReq) GetEndTime() string {
  148. if x != nil {
  149. return x.EndTime
  150. }
  151. return ""
  152. }
  153. type CheckPowerReq struct {
  154. state protoimpl.MessageState
  155. sizeCache protoimpl.SizeCache
  156. unknownFields protoimpl.UnknownFields
  157. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  158. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  159. AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  160. EntAccountId int64 `protobuf:"varint,4,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  161. EntId int64 `protobuf:"varint,5,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  162. EntUserId int64 `protobuf:"varint,6,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  163. }
  164. func (x *CheckPowerReq) Reset() {
  165. *x = CheckPowerReq{}
  166. if protoimpl.UnsafeEnabled {
  167. mi := &file_resource_proto_msgTypes[2]
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. ms.StoreMessageInfo(mi)
  170. }
  171. }
  172. func (x *CheckPowerReq) String() string {
  173. return protoimpl.X.MessageStringOf(x)
  174. }
  175. func (*CheckPowerReq) ProtoMessage() {}
  176. func (x *CheckPowerReq) ProtoReflect() protoreflect.Message {
  177. mi := &file_resource_proto_msgTypes[2]
  178. if protoimpl.UnsafeEnabled && x != nil {
  179. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  180. if ms.LoadMessageInfo() == nil {
  181. ms.StoreMessageInfo(mi)
  182. }
  183. return ms
  184. }
  185. return mi.MessageOf(x)
  186. }
  187. // Deprecated: Use CheckPowerReq.ProtoReflect.Descriptor instead.
  188. func (*CheckPowerReq) Descriptor() ([]byte, []int) {
  189. return file_resource_proto_rawDescGZIP(), []int{2}
  190. }
  191. func (x *CheckPowerReq) GetAppid() string {
  192. if x != nil {
  193. return x.Appid
  194. }
  195. return ""
  196. }
  197. func (x *CheckPowerReq) GetFunctionCode() string {
  198. if x != nil {
  199. return x.FunctionCode
  200. }
  201. return ""
  202. }
  203. func (x *CheckPowerReq) GetAccountId() int64 {
  204. if x != nil {
  205. return x.AccountId
  206. }
  207. return 0
  208. }
  209. func (x *CheckPowerReq) GetEntAccountId() int64 {
  210. if x != nil {
  211. return x.EntAccountId
  212. }
  213. return 0
  214. }
  215. func (x *CheckPowerReq) GetEntId() int64 {
  216. if x != nil {
  217. return x.EntId
  218. }
  219. return 0
  220. }
  221. func (x *CheckPowerReq) GetEntUserId() int64 {
  222. if x != nil {
  223. return x.EntUserId
  224. }
  225. return 0
  226. }
  227. type DeductionReq struct {
  228. state protoimpl.MessageState
  229. sizeCache protoimpl.SizeCache
  230. unknownFields protoimpl.UnknownFields
  231. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  232. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  233. AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  234. EntAccountId int64 `protobuf:"varint,4,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  235. Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
  236. Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  237. }
  238. func (x *DeductionReq) Reset() {
  239. *x = DeductionReq{}
  240. if protoimpl.UnsafeEnabled {
  241. mi := &file_resource_proto_msgTypes[3]
  242. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  243. ms.StoreMessageInfo(mi)
  244. }
  245. }
  246. func (x *DeductionReq) String() string {
  247. return protoimpl.X.MessageStringOf(x)
  248. }
  249. func (*DeductionReq) ProtoMessage() {}
  250. func (x *DeductionReq) ProtoReflect() protoreflect.Message {
  251. mi := &file_resource_proto_msgTypes[3]
  252. if protoimpl.UnsafeEnabled && x != nil {
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. if ms.LoadMessageInfo() == nil {
  255. ms.StoreMessageInfo(mi)
  256. }
  257. return ms
  258. }
  259. return mi.MessageOf(x)
  260. }
  261. // Deprecated: Use DeductionReq.ProtoReflect.Descriptor instead.
  262. func (*DeductionReq) Descriptor() ([]byte, []int) {
  263. return file_resource_proto_rawDescGZIP(), []int{3}
  264. }
  265. func (x *DeductionReq) GetAppid() string {
  266. if x != nil {
  267. return x.Appid
  268. }
  269. return ""
  270. }
  271. func (x *DeductionReq) GetFunctionCode() string {
  272. if x != nil {
  273. return x.FunctionCode
  274. }
  275. return ""
  276. }
  277. func (x *DeductionReq) GetAccountId() int64 {
  278. if x != nil {
  279. return x.AccountId
  280. }
  281. return 0
  282. }
  283. func (x *DeductionReq) GetEntAccountId() int64 {
  284. if x != nil {
  285. return x.EntAccountId
  286. }
  287. return 0
  288. }
  289. func (x *DeductionReq) GetCount() int64 {
  290. if x != nil {
  291. return x.Count
  292. }
  293. return 0
  294. }
  295. func (x *DeductionReq) GetIds() []string {
  296. if x != nil {
  297. return x.Ids
  298. }
  299. return nil
  300. }
  301. type RechargeReq struct {
  302. state protoimpl.MessageState
  303. sizeCache protoimpl.SizeCache
  304. unknownFields protoimpl.UnknownFields
  305. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  306. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  307. AccountId int64 `protobuf:"varint,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  308. EntAccountId int64 `protobuf:"varint,4,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  309. Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //充值数量
  310. Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  311. }
  312. func (x *RechargeReq) Reset() {
  313. *x = RechargeReq{}
  314. if protoimpl.UnsafeEnabled {
  315. mi := &file_resource_proto_msgTypes[4]
  316. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  317. ms.StoreMessageInfo(mi)
  318. }
  319. }
  320. func (x *RechargeReq) String() string {
  321. return protoimpl.X.MessageStringOf(x)
  322. }
  323. func (*RechargeReq) ProtoMessage() {}
  324. func (x *RechargeReq) ProtoReflect() protoreflect.Message {
  325. mi := &file_resource_proto_msgTypes[4]
  326. if protoimpl.UnsafeEnabled && x != nil {
  327. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  328. if ms.LoadMessageInfo() == nil {
  329. ms.StoreMessageInfo(mi)
  330. }
  331. return ms
  332. }
  333. return mi.MessageOf(x)
  334. }
  335. // Deprecated: Use RechargeReq.ProtoReflect.Descriptor instead.
  336. func (*RechargeReq) Descriptor() ([]byte, []int) {
  337. return file_resource_proto_rawDescGZIP(), []int{4}
  338. }
  339. func (x *RechargeReq) GetAppid() string {
  340. if x != nil {
  341. return x.Appid
  342. }
  343. return ""
  344. }
  345. func (x *RechargeReq) GetFunctionCode() string {
  346. if x != nil {
  347. return x.FunctionCode
  348. }
  349. return ""
  350. }
  351. func (x *RechargeReq) GetAccountId() int64 {
  352. if x != nil {
  353. return x.AccountId
  354. }
  355. return 0
  356. }
  357. func (x *RechargeReq) GetEntAccountId() int64 {
  358. if x != nil {
  359. return x.EntAccountId
  360. }
  361. return 0
  362. }
  363. func (x *RechargeReq) GetCount() int64 {
  364. if x != nil {
  365. return x.Count
  366. }
  367. return 0
  368. }
  369. func (x *RechargeReq) GetIds() []string {
  370. if x != nil {
  371. return x.Ids
  372. }
  373. return nil
  374. }
  375. type EmpowerReq struct {
  376. state protoimpl.MessageState
  377. sizeCache protoimpl.SizeCache
  378. unknownFields protoimpl.UnknownFields
  379. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  380. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  381. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  382. EntUserId []int64 `protobuf:"varint,4,rep,packed,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  383. }
  384. func (x *EmpowerReq) Reset() {
  385. *x = EmpowerReq{}
  386. if protoimpl.UnsafeEnabled {
  387. mi := &file_resource_proto_msgTypes[5]
  388. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  389. ms.StoreMessageInfo(mi)
  390. }
  391. }
  392. func (x *EmpowerReq) String() string {
  393. return protoimpl.X.MessageStringOf(x)
  394. }
  395. func (*EmpowerReq) ProtoMessage() {}
  396. func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
  397. mi := &file_resource_proto_msgTypes[5]
  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 EmpowerReq.ProtoReflect.Descriptor instead.
  408. func (*EmpowerReq) Descriptor() ([]byte, []int) {
  409. return file_resource_proto_rawDescGZIP(), []int{5}
  410. }
  411. func (x *EmpowerReq) GetAppid() string {
  412. if x != nil {
  413. return x.Appid
  414. }
  415. return ""
  416. }
  417. func (x *EmpowerReq) GetFunctionCode() string {
  418. if x != nil {
  419. return x.FunctionCode
  420. }
  421. return ""
  422. }
  423. func (x *EmpowerReq) GetEntId() int64 {
  424. if x != nil {
  425. return x.EntId
  426. }
  427. return 0
  428. }
  429. func (x *EmpowerReq) GetEntUserId() []int64 {
  430. if x != nil {
  431. return x.EntUserId
  432. }
  433. return nil
  434. }
  435. type EmpowerListReq struct {
  436. state protoimpl.MessageState
  437. sizeCache protoimpl.SizeCache
  438. unknownFields protoimpl.UnknownFields
  439. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  440. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  441. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  442. PageNum int64 `protobuf:"varint,4,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` //开始页码,小于1的话,返回所有数据,不进行分页
  443. PageSize int64 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //每页大小
  444. }
  445. func (x *EmpowerListReq) Reset() {
  446. *x = EmpowerListReq{}
  447. if protoimpl.UnsafeEnabled {
  448. mi := &file_resource_proto_msgTypes[6]
  449. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  450. ms.StoreMessageInfo(mi)
  451. }
  452. }
  453. func (x *EmpowerListReq) String() string {
  454. return protoimpl.X.MessageStringOf(x)
  455. }
  456. func (*EmpowerListReq) ProtoMessage() {}
  457. func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
  458. mi := &file_resource_proto_msgTypes[6]
  459. if protoimpl.UnsafeEnabled && x != nil {
  460. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  461. if ms.LoadMessageInfo() == nil {
  462. ms.StoreMessageInfo(mi)
  463. }
  464. return ms
  465. }
  466. return mi.MessageOf(x)
  467. }
  468. // Deprecated: Use EmpowerListReq.ProtoReflect.Descriptor instead.
  469. func (*EmpowerListReq) Descriptor() ([]byte, []int) {
  470. return file_resource_proto_rawDescGZIP(), []int{6}
  471. }
  472. func (x *EmpowerListReq) GetAppid() string {
  473. if x != nil {
  474. return x.Appid
  475. }
  476. return ""
  477. }
  478. func (x *EmpowerListReq) GetFunctionCode() string {
  479. if x != nil {
  480. return x.FunctionCode
  481. }
  482. return ""
  483. }
  484. func (x *EmpowerListReq) GetEntId() int64 {
  485. if x != nil {
  486. return x.EntId
  487. }
  488. return 0
  489. }
  490. func (x *EmpowerListReq) GetPageNum() int64 {
  491. if x != nil {
  492. return x.PageNum
  493. }
  494. return 0
  495. }
  496. func (x *EmpowerListReq) GetPageSize() int64 {
  497. if x != nil {
  498. return x.PageSize
  499. }
  500. return 0
  501. }
  502. type EmpowerListResp struct {
  503. state protoimpl.MessageState
  504. sizeCache protoimpl.SizeCache
  505. unknownFields protoimpl.UnknownFields
  506. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` //总条数,只有第一页的时候才返回, 如果企业下所有人都有权限返回-1
  507. List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //列表,如果企业下所有人都有权限,返回空数组
  508. }
  509. func (x *EmpowerListResp) Reset() {
  510. *x = EmpowerListResp{}
  511. if protoimpl.UnsafeEnabled {
  512. mi := &file_resource_proto_msgTypes[7]
  513. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  514. ms.StoreMessageInfo(mi)
  515. }
  516. }
  517. func (x *EmpowerListResp) String() string {
  518. return protoimpl.X.MessageStringOf(x)
  519. }
  520. func (*EmpowerListResp) ProtoMessage() {}
  521. func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
  522. mi := &file_resource_proto_msgTypes[7]
  523. if protoimpl.UnsafeEnabled && x != nil {
  524. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  525. if ms.LoadMessageInfo() == nil {
  526. ms.StoreMessageInfo(mi)
  527. }
  528. return ms
  529. }
  530. return mi.MessageOf(x)
  531. }
  532. // Deprecated: Use EmpowerListResp.ProtoReflect.Descriptor instead.
  533. func (*EmpowerListResp) Descriptor() ([]byte, []int) {
  534. return file_resource_proto_rawDescGZIP(), []int{7}
  535. }
  536. func (x *EmpowerListResp) GetCount() int64 {
  537. if x != nil {
  538. return x.Count
  539. }
  540. return 0
  541. }
  542. func (x *EmpowerListResp) GetList() []*Empower {
  543. if x != nil {
  544. return x.List
  545. }
  546. return nil
  547. }
  548. type Resp struct {
  549. state protoimpl.MessageState
  550. sizeCache protoimpl.SizeCache
  551. unknownFields protoimpl.UnknownFields
  552. Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权 -4:超额
  553. UseCount int64 `protobuf:"varint,2,opt,name=use_count,json=useCount,proto3" json:"use_count,omitempty"` //使用数量
  554. SurplusCount int64 `protobuf:"varint,3,opt,name=surplus_count,json=surplusCount,proto3" json:"surplus_count,omitempty"` //剩余数量
  555. StartTime string `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` //权益开始时间
  556. EndTime string `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` //权益到期时间
  557. }
  558. func (x *Resp) Reset() {
  559. *x = Resp{}
  560. if protoimpl.UnsafeEnabled {
  561. mi := &file_resource_proto_msgTypes[8]
  562. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  563. ms.StoreMessageInfo(mi)
  564. }
  565. }
  566. func (x *Resp) String() string {
  567. return protoimpl.X.MessageStringOf(x)
  568. }
  569. func (*Resp) ProtoMessage() {}
  570. func (x *Resp) ProtoReflect() protoreflect.Message {
  571. mi := &file_resource_proto_msgTypes[8]
  572. if protoimpl.UnsafeEnabled && x != nil {
  573. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  574. if ms.LoadMessageInfo() == nil {
  575. ms.StoreMessageInfo(mi)
  576. }
  577. return ms
  578. }
  579. return mi.MessageOf(x)
  580. }
  581. // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
  582. func (*Resp) Descriptor() ([]byte, []int) {
  583. return file_resource_proto_rawDescGZIP(), []int{8}
  584. }
  585. func (x *Resp) GetStatus() int64 {
  586. if x != nil {
  587. return x.Status
  588. }
  589. return 0
  590. }
  591. func (x *Resp) GetUseCount() int64 {
  592. if x != nil {
  593. return x.UseCount
  594. }
  595. return 0
  596. }
  597. func (x *Resp) GetSurplusCount() int64 {
  598. if x != nil {
  599. return x.SurplusCount
  600. }
  601. return 0
  602. }
  603. func (x *Resp) GetStartTime() string {
  604. if x != nil {
  605. return x.StartTime
  606. }
  607. return ""
  608. }
  609. func (x *Resp) GetEndTime() string {
  610. if x != nil {
  611. return x.EndTime
  612. }
  613. return ""
  614. }
  615. type HaspowersReq struct {
  616. state protoimpl.MessageState
  617. sizeCache protoimpl.SizeCache
  618. unknownFields protoimpl.UnknownFields
  619. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  620. AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  621. EntAccountId int64 `protobuf:"varint,3,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  622. EntId int64 `protobuf:"varint,4,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  623. EntUserId int64 `protobuf:"varint,5,opt,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  624. }
  625. func (x *HaspowersReq) Reset() {
  626. *x = HaspowersReq{}
  627. if protoimpl.UnsafeEnabled {
  628. mi := &file_resource_proto_msgTypes[9]
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. ms.StoreMessageInfo(mi)
  631. }
  632. }
  633. func (x *HaspowersReq) String() string {
  634. return protoimpl.X.MessageStringOf(x)
  635. }
  636. func (*HaspowersReq) ProtoMessage() {}
  637. func (x *HaspowersReq) ProtoReflect() protoreflect.Message {
  638. mi := &file_resource_proto_msgTypes[9]
  639. if protoimpl.UnsafeEnabled && x != nil {
  640. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  641. if ms.LoadMessageInfo() == nil {
  642. ms.StoreMessageInfo(mi)
  643. }
  644. return ms
  645. }
  646. return mi.MessageOf(x)
  647. }
  648. // Deprecated: Use HaspowersReq.ProtoReflect.Descriptor instead.
  649. func (*HaspowersReq) Descriptor() ([]byte, []int) {
  650. return file_resource_proto_rawDescGZIP(), []int{9}
  651. }
  652. func (x *HaspowersReq) GetAppid() string {
  653. if x != nil {
  654. return x.Appid
  655. }
  656. return ""
  657. }
  658. func (x *HaspowersReq) GetAccountId() int64 {
  659. if x != nil {
  660. return x.AccountId
  661. }
  662. return 0
  663. }
  664. func (x *HaspowersReq) GetEntAccountId() int64 {
  665. if x != nil {
  666. return x.EntAccountId
  667. }
  668. return 0
  669. }
  670. func (x *HaspowersReq) GetEntId() int64 {
  671. if x != nil {
  672. return x.EntId
  673. }
  674. return 0
  675. }
  676. func (x *HaspowersReq) GetEntUserId() int64 {
  677. if x != nil {
  678. return x.EntUserId
  679. }
  680. return 0
  681. }
  682. type HaspowersResp struct {
  683. state protoimpl.MessageState
  684. sizeCache protoimpl.SizeCache
  685. unknownFields protoimpl.UnknownFields
  686. Powers []string `protobuf:"bytes,1,rep,name=powers,proto3" json:"powers,omitempty"` //所有权益
  687. }
  688. func (x *HaspowersResp) Reset() {
  689. *x = HaspowersResp{}
  690. if protoimpl.UnsafeEnabled {
  691. mi := &file_resource_proto_msgTypes[10]
  692. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  693. ms.StoreMessageInfo(mi)
  694. }
  695. }
  696. func (x *HaspowersResp) String() string {
  697. return protoimpl.X.MessageStringOf(x)
  698. }
  699. func (*HaspowersResp) ProtoMessage() {}
  700. func (x *HaspowersResp) ProtoReflect() protoreflect.Message {
  701. mi := &file_resource_proto_msgTypes[10]
  702. if protoimpl.UnsafeEnabled && x != nil {
  703. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  704. if ms.LoadMessageInfo() == nil {
  705. ms.StoreMessageInfo(mi)
  706. }
  707. return ms
  708. }
  709. return mi.MessageOf(x)
  710. }
  711. // Deprecated: Use HaspowersResp.ProtoReflect.Descriptor instead.
  712. func (*HaspowersResp) Descriptor() ([]byte, []int) {
  713. return file_resource_proto_rawDescGZIP(), []int{10}
  714. }
  715. func (x *HaspowersResp) GetPowers() []string {
  716. if x != nil {
  717. return x.Powers
  718. }
  719. return nil
  720. }
  721. var File_resource_proto protoreflect.FileDescriptor
  722. var file_resource_proto_rawDesc = []byte{
  723. 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  724. 0x22, 0x29, 0x0a, 0x07, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0b, 0x65,
  725. 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
  726. 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x80, 0x02, 0x0a, 0x08,
  727. 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69,
  728. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x1d,
  729. 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
  730. 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x22, 0x0a,
  731. 0x0d, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x03,
  732. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x53, 0x70, 0x65, 0x63, 0x49,
  733. 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28,
  734. 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f,
  735. 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63,
  736. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x62, 0x75, 0x79, 0x5f, 0x6e,
  737. 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x62, 0x75, 0x79, 0x4e, 0x75, 0x6d,
  738. 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04,
  739. 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69,
  740. 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54,
  741. 0x69, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18,
  742. 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xc6,
  743. 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
  744. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  745. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  746. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  747. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
  748. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  749. 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e,
  750. 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
  751. 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
  752. 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  753. 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75,
  754. 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e,
  755. 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xb6, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x64, 0x75,
  756. 0x63, 0x74, 0x69, 0x6f, 0x6e, 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, 0x23,
  758. 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
  759. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43,
  760. 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
  761. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  762. 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  763. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41,
  764. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  765. 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10,
  766. 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73,
  767. 0x22, 0xb5, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71,
  768. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  769. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  770. 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
  771. 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x61,
  772. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  773. 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e,
  774. 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
  775. 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64,
  776. 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
  777. 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20,
  778. 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f,
  779. 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  780. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d,
  781. 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20,
  782. 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64,
  783. 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
  784. 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f,
  785. 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65,
  786. 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70,
  787. 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61,
  788. 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69,
  789. 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f,
  790. 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
  791. 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64,
  792. 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a,
  793. 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  794. 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
  795. 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67,
  796. 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  797. 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e,
  798. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c,
  799. 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45,
  800. 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x9a, 0x01, 0x0a,
  801. 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18,
  802. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a,
  803. 0x09, 0x75, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
  804. 0x52, 0x08, 0x75, 0x73, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75,
  805. 0x72, 0x70, 0x6c, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28,
  806. 0x03, 0x52, 0x0c, 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  807. 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20,
  808. 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x19,
  809. 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  810. 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xa0, 0x01, 0x0a, 0x0c, 0x48, 0x61,
  811. 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  812. 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  813. 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02,
  814. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
  815. 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
  816. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f,
  817. 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18,
  818. 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b,
  819. 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
  820. 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x27, 0x0a, 0x0d,
  821. 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a,
  822. 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x70,
  823. 0x6f, 0x77, 0x65, 0x72, 0x73, 0x32, 0xb8, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  824. 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c,
  825. 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52,
  826. 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
  827. 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65,
  828. 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44, 0x65, 0x64, 0x75,
  829. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
  830. 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x08, 0x52,
  831. 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72,
  832. 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x09,
  833. 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f,
  834. 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a,
  835. 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b,
  836. 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65,
  837. 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73,
  838. 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52,
  839. 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74,
  840. 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72,
  841. 0x73, 0x12, 0x0d, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71,
  842. 0x1a, 0x0e, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
  843. 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  844. }
  845. var (
  846. file_resource_proto_rawDescOnce sync.Once
  847. file_resource_proto_rawDescData = file_resource_proto_rawDesc
  848. )
  849. func file_resource_proto_rawDescGZIP() []byte {
  850. file_resource_proto_rawDescOnce.Do(func() {
  851. file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_resource_proto_rawDescData)
  852. })
  853. return file_resource_proto_rawDescData
  854. }
  855. var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  856. var file_resource_proto_goTypes = []interface{}{
  857. (*Empower)(nil), // 0: Empower
  858. (*PowerReq)(nil), // 1: PowerReq
  859. (*CheckPowerReq)(nil), // 2: CheckPowerReq
  860. (*DeductionReq)(nil), // 3: DeductionReq
  861. (*RechargeReq)(nil), // 4: RechargeReq
  862. (*EmpowerReq)(nil), // 5: EmpowerReq
  863. (*EmpowerListReq)(nil), // 6: EmpowerListReq
  864. (*EmpowerListResp)(nil), // 7: EmpowerListResp
  865. (*Resp)(nil), // 8: Resp
  866. (*HaspowersReq)(nil), // 9: HaspowersReq
  867. (*HaspowersResp)(nil), // 10: HaspowersResp
  868. }
  869. var file_resource_proto_depIdxs = []int32{
  870. 0, // 0: EmpowerListResp.list:type_name -> Empower
  871. 1, // 1: Resource.PowerHandle:input_type -> PowerReq
  872. 2, // 2: Resource.CheckPower:input_type -> CheckPowerReq
  873. 3, // 3: Resource.Deduction:input_type -> DeductionReq
  874. 4, // 4: Resource.Recharge:input_type -> RechargeReq
  875. 5, // 5: Resource.ReEmpower:input_type -> EmpowerReq
  876. 5, // 6: Resource.CancelEmpower:input_type -> EmpowerReq
  877. 6, // 7: Resource.EmpowerList:input_type -> EmpowerListReq
  878. 9, // 8: Resource.Haspowers:input_type -> HaspowersReq
  879. 8, // 9: Resource.PowerHandle:output_type -> Resp
  880. 8, // 10: Resource.CheckPower:output_type -> Resp
  881. 8, // 11: Resource.Deduction:output_type -> Resp
  882. 8, // 12: Resource.Recharge:output_type -> Resp
  883. 8, // 13: Resource.ReEmpower:output_type -> Resp
  884. 8, // 14: Resource.CancelEmpower:output_type -> Resp
  885. 7, // 15: Resource.EmpowerList:output_type -> EmpowerListResp
  886. 10, // 16: Resource.Haspowers:output_type -> HaspowersResp
  887. 9, // [9:17] is the sub-list for method output_type
  888. 1, // [1:9] is the sub-list for method input_type
  889. 1, // [1:1] is the sub-list for extension type_name
  890. 1, // [1:1] is the sub-list for extension extendee
  891. 0, // [0:1] is the sub-list for field type_name
  892. }
  893. func init() { file_resource_proto_init() }
  894. func file_resource_proto_init() {
  895. if File_resource_proto != nil {
  896. return
  897. }
  898. if !protoimpl.UnsafeEnabled {
  899. file_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  900. switch v := v.(*Empower); i {
  901. case 0:
  902. return &v.state
  903. case 1:
  904. return &v.sizeCache
  905. case 2:
  906. return &v.unknownFields
  907. default:
  908. return nil
  909. }
  910. }
  911. file_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  912. switch v := v.(*PowerReq); i {
  913. case 0:
  914. return &v.state
  915. case 1:
  916. return &v.sizeCache
  917. case 2:
  918. return &v.unknownFields
  919. default:
  920. return nil
  921. }
  922. }
  923. file_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  924. switch v := v.(*CheckPowerReq); i {
  925. case 0:
  926. return &v.state
  927. case 1:
  928. return &v.sizeCache
  929. case 2:
  930. return &v.unknownFields
  931. default:
  932. return nil
  933. }
  934. }
  935. file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  936. switch v := v.(*DeductionReq); i {
  937. case 0:
  938. return &v.state
  939. case 1:
  940. return &v.sizeCache
  941. case 2:
  942. return &v.unknownFields
  943. default:
  944. return nil
  945. }
  946. }
  947. file_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  948. switch v := v.(*RechargeReq); i {
  949. case 0:
  950. return &v.state
  951. case 1:
  952. return &v.sizeCache
  953. case 2:
  954. return &v.unknownFields
  955. default:
  956. return nil
  957. }
  958. }
  959. file_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  960. switch v := v.(*EmpowerReq); i {
  961. case 0:
  962. return &v.state
  963. case 1:
  964. return &v.sizeCache
  965. case 2:
  966. return &v.unknownFields
  967. default:
  968. return nil
  969. }
  970. }
  971. file_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  972. switch v := v.(*EmpowerListReq); i {
  973. case 0:
  974. return &v.state
  975. case 1:
  976. return &v.sizeCache
  977. case 2:
  978. return &v.unknownFields
  979. default:
  980. return nil
  981. }
  982. }
  983. file_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  984. switch v := v.(*EmpowerListResp); i {
  985. case 0:
  986. return &v.state
  987. case 1:
  988. return &v.sizeCache
  989. case 2:
  990. return &v.unknownFields
  991. default:
  992. return nil
  993. }
  994. }
  995. file_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  996. switch v := v.(*Resp); i {
  997. case 0:
  998. return &v.state
  999. case 1:
  1000. return &v.sizeCache
  1001. case 2:
  1002. return &v.unknownFields
  1003. default:
  1004. return nil
  1005. }
  1006. }
  1007. file_resource_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1008. switch v := v.(*HaspowersReq); i {
  1009. case 0:
  1010. return &v.state
  1011. case 1:
  1012. return &v.sizeCache
  1013. case 2:
  1014. return &v.unknownFields
  1015. default:
  1016. return nil
  1017. }
  1018. }
  1019. file_resource_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1020. switch v := v.(*HaspowersResp); i {
  1021. case 0:
  1022. return &v.state
  1023. case 1:
  1024. return &v.sizeCache
  1025. case 2:
  1026. return &v.unknownFields
  1027. default:
  1028. return nil
  1029. }
  1030. }
  1031. }
  1032. type x struct{}
  1033. out := protoimpl.TypeBuilder{
  1034. File: protoimpl.DescBuilder{
  1035. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1036. RawDescriptor: file_resource_proto_rawDesc,
  1037. NumEnums: 0,
  1038. NumMessages: 11,
  1039. NumExtensions: 0,
  1040. NumServices: 1,
  1041. },
  1042. GoTypes: file_resource_proto_goTypes,
  1043. DependencyIndexes: file_resource_proto_depIdxs,
  1044. MessageInfos: file_resource_proto_msgTypes,
  1045. }.Build()
  1046. File_resource_proto = out.File
  1047. file_resource_proto_rawDesc = nil
  1048. file_resource_proto_goTypes = nil
  1049. file_resource_proto_depIdxs = nil
  1050. }