resource.pb.go 40 KB

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