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. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  234. AccountId int64 `protobuf:"varint,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  235. EntAccountId int64 `protobuf:"varint,5,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  236. Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
  237. Ids []string `protobuf:"bytes,7,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  238. }
  239. func (x *DeductionReq) Reset() {
  240. *x = DeductionReq{}
  241. if protoimpl.UnsafeEnabled {
  242. mi := &file_resource_proto_msgTypes[3]
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. ms.StoreMessageInfo(mi)
  245. }
  246. }
  247. func (x *DeductionReq) String() string {
  248. return protoimpl.X.MessageStringOf(x)
  249. }
  250. func (*DeductionReq) ProtoMessage() {}
  251. func (x *DeductionReq) ProtoReflect() protoreflect.Message {
  252. mi := &file_resource_proto_msgTypes[3]
  253. if protoimpl.UnsafeEnabled && x != nil {
  254. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  255. if ms.LoadMessageInfo() == nil {
  256. ms.StoreMessageInfo(mi)
  257. }
  258. return ms
  259. }
  260. return mi.MessageOf(x)
  261. }
  262. // Deprecated: Use DeductionReq.ProtoReflect.Descriptor instead.
  263. func (*DeductionReq) Descriptor() ([]byte, []int) {
  264. return file_resource_proto_rawDescGZIP(), []int{3}
  265. }
  266. func (x *DeductionReq) GetAppid() string {
  267. if x != nil {
  268. return x.Appid
  269. }
  270. return ""
  271. }
  272. func (x *DeductionReq) GetFunctionCode() string {
  273. if x != nil {
  274. return x.FunctionCode
  275. }
  276. return ""
  277. }
  278. func (x *DeductionReq) GetEntId() int64 {
  279. if x != nil {
  280. return x.EntId
  281. }
  282. return 0
  283. }
  284. func (x *DeductionReq) GetAccountId() int64 {
  285. if x != nil {
  286. return x.AccountId
  287. }
  288. return 0
  289. }
  290. func (x *DeductionReq) GetEntAccountId() int64 {
  291. if x != nil {
  292. return x.EntAccountId
  293. }
  294. return 0
  295. }
  296. func (x *DeductionReq) GetCount() int64 {
  297. if x != nil {
  298. return x.Count
  299. }
  300. return 0
  301. }
  302. func (x *DeductionReq) GetIds() []string {
  303. if x != nil {
  304. return x.Ids
  305. }
  306. return nil
  307. }
  308. type RechargeReq struct {
  309. state protoimpl.MessageState
  310. sizeCache protoimpl.SizeCache
  311. unknownFields protoimpl.UnknownFields
  312. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  313. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  314. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  315. AccountId int64 `protobuf:"varint,4,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` //账户id
  316. EntAccountId int64 `protobuf:"varint,5,opt,name=ent_account_id,json=entAccountId,proto3" json:"ent_account_id,omitempty"` //企业账户id
  317. Count int64 `protobuf:"varint,6,opt,name=count,proto3" json:"count,omitempty"` //充值数量
  318. Ids []string `protobuf:"bytes,7,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  319. }
  320. func (x *RechargeReq) Reset() {
  321. *x = RechargeReq{}
  322. if protoimpl.UnsafeEnabled {
  323. mi := &file_resource_proto_msgTypes[4]
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. ms.StoreMessageInfo(mi)
  326. }
  327. }
  328. func (x *RechargeReq) String() string {
  329. return protoimpl.X.MessageStringOf(x)
  330. }
  331. func (*RechargeReq) ProtoMessage() {}
  332. func (x *RechargeReq) ProtoReflect() protoreflect.Message {
  333. mi := &file_resource_proto_msgTypes[4]
  334. if protoimpl.UnsafeEnabled && x != nil {
  335. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  336. if ms.LoadMessageInfo() == nil {
  337. ms.StoreMessageInfo(mi)
  338. }
  339. return ms
  340. }
  341. return mi.MessageOf(x)
  342. }
  343. // Deprecated: Use RechargeReq.ProtoReflect.Descriptor instead.
  344. func (*RechargeReq) Descriptor() ([]byte, []int) {
  345. return file_resource_proto_rawDescGZIP(), []int{4}
  346. }
  347. func (x *RechargeReq) GetAppid() string {
  348. if x != nil {
  349. return x.Appid
  350. }
  351. return ""
  352. }
  353. func (x *RechargeReq) GetFunctionCode() string {
  354. if x != nil {
  355. return x.FunctionCode
  356. }
  357. return ""
  358. }
  359. func (x *RechargeReq) GetEntId() int64 {
  360. if x != nil {
  361. return x.EntId
  362. }
  363. return 0
  364. }
  365. func (x *RechargeReq) GetAccountId() int64 {
  366. if x != nil {
  367. return x.AccountId
  368. }
  369. return 0
  370. }
  371. func (x *RechargeReq) GetEntAccountId() int64 {
  372. if x != nil {
  373. return x.EntAccountId
  374. }
  375. return 0
  376. }
  377. func (x *RechargeReq) GetCount() int64 {
  378. if x != nil {
  379. return x.Count
  380. }
  381. return 0
  382. }
  383. func (x *RechargeReq) GetIds() []string {
  384. if x != nil {
  385. return x.Ids
  386. }
  387. return nil
  388. }
  389. type EmpowerReq struct {
  390. state protoimpl.MessageState
  391. sizeCache protoimpl.SizeCache
  392. unknownFields protoimpl.UnknownFields
  393. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  394. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  395. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  396. EntUserId []int64 `protobuf:"varint,4,rep,packed,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
  397. }
  398. func (x *EmpowerReq) Reset() {
  399. *x = EmpowerReq{}
  400. if protoimpl.UnsafeEnabled {
  401. mi := &file_resource_proto_msgTypes[5]
  402. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  403. ms.StoreMessageInfo(mi)
  404. }
  405. }
  406. func (x *EmpowerReq) String() string {
  407. return protoimpl.X.MessageStringOf(x)
  408. }
  409. func (*EmpowerReq) ProtoMessage() {}
  410. func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
  411. mi := &file_resource_proto_msgTypes[5]
  412. if protoimpl.UnsafeEnabled && x != nil {
  413. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  414. if ms.LoadMessageInfo() == nil {
  415. ms.StoreMessageInfo(mi)
  416. }
  417. return ms
  418. }
  419. return mi.MessageOf(x)
  420. }
  421. // Deprecated: Use EmpowerReq.ProtoReflect.Descriptor instead.
  422. func (*EmpowerReq) Descriptor() ([]byte, []int) {
  423. return file_resource_proto_rawDescGZIP(), []int{5}
  424. }
  425. func (x *EmpowerReq) GetAppid() string {
  426. if x != nil {
  427. return x.Appid
  428. }
  429. return ""
  430. }
  431. func (x *EmpowerReq) GetFunctionCode() string {
  432. if x != nil {
  433. return x.FunctionCode
  434. }
  435. return ""
  436. }
  437. func (x *EmpowerReq) GetEntId() int64 {
  438. if x != nil {
  439. return x.EntId
  440. }
  441. return 0
  442. }
  443. func (x *EmpowerReq) GetEntUserId() []int64 {
  444. if x != nil {
  445. return x.EntUserId
  446. }
  447. return nil
  448. }
  449. type EmpowerListReq struct {
  450. state protoimpl.MessageState
  451. sizeCache protoimpl.SizeCache
  452. unknownFields protoimpl.UnknownFields
  453. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  454. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  455. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  456. PageNum int64 `protobuf:"varint,4,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` //开始页码,小于1的话,返回所有数据,不进行分页
  457. PageSize int64 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //每页大小
  458. }
  459. func (x *EmpowerListReq) Reset() {
  460. *x = EmpowerListReq{}
  461. if protoimpl.UnsafeEnabled {
  462. mi := &file_resource_proto_msgTypes[6]
  463. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  464. ms.StoreMessageInfo(mi)
  465. }
  466. }
  467. func (x *EmpowerListReq) String() string {
  468. return protoimpl.X.MessageStringOf(x)
  469. }
  470. func (*EmpowerListReq) ProtoMessage() {}
  471. func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
  472. mi := &file_resource_proto_msgTypes[6]
  473. if protoimpl.UnsafeEnabled && x != nil {
  474. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  475. if ms.LoadMessageInfo() == nil {
  476. ms.StoreMessageInfo(mi)
  477. }
  478. return ms
  479. }
  480. return mi.MessageOf(x)
  481. }
  482. // Deprecated: Use EmpowerListReq.ProtoReflect.Descriptor instead.
  483. func (*EmpowerListReq) Descriptor() ([]byte, []int) {
  484. return file_resource_proto_rawDescGZIP(), []int{6}
  485. }
  486. func (x *EmpowerListReq) GetAppid() string {
  487. if x != nil {
  488. return x.Appid
  489. }
  490. return ""
  491. }
  492. func (x *EmpowerListReq) GetFunctionCode() string {
  493. if x != nil {
  494. return x.FunctionCode
  495. }
  496. return ""
  497. }
  498. func (x *EmpowerListReq) GetEntId() int64 {
  499. if x != nil {
  500. return x.EntId
  501. }
  502. return 0
  503. }
  504. func (x *EmpowerListReq) GetPageNum() int64 {
  505. if x != nil {
  506. return x.PageNum
  507. }
  508. return 0
  509. }
  510. func (x *EmpowerListReq) GetPageSize() int64 {
  511. if x != nil {
  512. return x.PageSize
  513. }
  514. return 0
  515. }
  516. type EmpowerListResp struct {
  517. state protoimpl.MessageState
  518. sizeCache protoimpl.SizeCache
  519. unknownFields protoimpl.UnknownFields
  520. Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` //总条数,只有第一页的时候才返回, 如果企业下所有人都有权限返回-1
  521. List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //列表,如果企业下所有人都有权限,返回空数组
  522. }
  523. func (x *EmpowerListResp) Reset() {
  524. *x = EmpowerListResp{}
  525. if protoimpl.UnsafeEnabled {
  526. mi := &file_resource_proto_msgTypes[7]
  527. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  528. ms.StoreMessageInfo(mi)
  529. }
  530. }
  531. func (x *EmpowerListResp) String() string {
  532. return protoimpl.X.MessageStringOf(x)
  533. }
  534. func (*EmpowerListResp) ProtoMessage() {}
  535. func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
  536. mi := &file_resource_proto_msgTypes[7]
  537. if protoimpl.UnsafeEnabled && x != nil {
  538. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  539. if ms.LoadMessageInfo() == nil {
  540. ms.StoreMessageInfo(mi)
  541. }
  542. return ms
  543. }
  544. return mi.MessageOf(x)
  545. }
  546. // Deprecated: Use EmpowerListResp.ProtoReflect.Descriptor instead.
  547. func (*EmpowerListResp) Descriptor() ([]byte, []int) {
  548. return file_resource_proto_rawDescGZIP(), []int{7}
  549. }
  550. func (x *EmpowerListResp) GetCount() int64 {
  551. if x != nil {
  552. return x.Count
  553. }
  554. return 0
  555. }
  556. func (x *EmpowerListResp) GetList() []*Empower {
  557. if x != nil {
  558. return x.List
  559. }
  560. return nil
  561. }
  562. type Resp struct {
  563. state protoimpl.MessageState
  564. sizeCache protoimpl.SizeCache
  565. unknownFields protoimpl.UnknownFields
  566. Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权 -4:超额
  567. UseCount int64 `protobuf:"varint,2,opt,name=use_count,json=useCount,proto3" json:"use_count,omitempty"` //使用数量
  568. SurplusCount int64 `protobuf:"varint,3,opt,name=surplus_count,json=surplusCount,proto3" json:"surplus_count,omitempty"` //剩余数量
  569. }
  570. func (x *Resp) Reset() {
  571. *x = Resp{}
  572. if protoimpl.UnsafeEnabled {
  573. mi := &file_resource_proto_msgTypes[8]
  574. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  575. ms.StoreMessageInfo(mi)
  576. }
  577. }
  578. func (x *Resp) String() string {
  579. return protoimpl.X.MessageStringOf(x)
  580. }
  581. func (*Resp) ProtoMessage() {}
  582. func (x *Resp) ProtoReflect() protoreflect.Message {
  583. mi := &file_resource_proto_msgTypes[8]
  584. if protoimpl.UnsafeEnabled && x != nil {
  585. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  586. if ms.LoadMessageInfo() == nil {
  587. ms.StoreMessageInfo(mi)
  588. }
  589. return ms
  590. }
  591. return mi.MessageOf(x)
  592. }
  593. // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
  594. func (*Resp) Descriptor() ([]byte, []int) {
  595. return file_resource_proto_rawDescGZIP(), []int{8}
  596. }
  597. func (x *Resp) GetStatus() int64 {
  598. if x != nil {
  599. return x.Status
  600. }
  601. return 0
  602. }
  603. func (x *Resp) GetUseCount() int64 {
  604. if x != nil {
  605. return x.UseCount
  606. }
  607. return 0
  608. }
  609. func (x *Resp) GetSurplusCount() int64 {
  610. if x != nil {
  611. return x.SurplusCount
  612. }
  613. return 0
  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, 0xcd, 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, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
  761. 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63,
  762. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  763. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74,
  764. 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,
  765. 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
  766. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  767. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03,
  768. 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xcc, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68,
  769. 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  770. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a,
  771. 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
  772. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
  773. 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  774. 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63,
  775. 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61,
  776. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f,
  777. 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  778. 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x14,
  779. 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
  780. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
  781. 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
  782. 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20,
  783. 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75,
  784. 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
  785. 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12,
  786. 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
  787. 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73,
  788. 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74,
  789. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77,
  790. 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70,
  791. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12,
  792. 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65,
  793. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  794. 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03,
  795. 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70,
  796. 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70,
  797. 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
  798. 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  799. 0x69, 0x7a, 0x65, 0x22, 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  800. 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  801. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04,
  802. 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70,
  803. 0x6f, 0x77, 0x65, 0x72, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x04, 0x52, 0x65,
  804. 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01,
  805. 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73,
  806. 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75,
  807. 0x73, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x72, 0x70, 0x6c,
  808. 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c,
  809. 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xa0, 0x01, 0x0a,
  810. 0x0c, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
  811. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  812. 0x70, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69,
  813. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  814. 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  815. 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x41,
  816. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f,
  817. 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
  818. 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x05,
  819. 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
  820. 0x27, 0x0a, 0x0d, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
  821. 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
  822. 0x52, 0x06, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x32, 0xb8, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73,
  823. 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61,
  824. 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
  825. 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
  826. 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
  827. 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44,
  828. 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63,
  829. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
  830. 0x0a, 0x08, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63,
  831. 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
  832. 0x1f, 0x0a, 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45,
  833. 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70,
  834. 0x12, 0x23, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
  835. 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05,
  836. 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
  837. 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
  838. 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c,
  839. 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2a, 0x0a, 0x09, 0x48, 0x61, 0x73, 0x70, 0x6f,
  840. 0x77, 0x65, 0x72, 0x73, 0x12, 0x0d, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73,
  841. 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x48, 0x61, 0x73, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x73, 0x52,
  842. 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
  843. 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. }