resource.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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 PowerReq struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  24. GoodsCode string `protobuf:"bytes,2,opt,name=goods_code,json=goodsCode,proto3" json:"goods_code,omitempty"` //商品代码
  25. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  26. UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  27. Type int64 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` //操作类型 0:查询权益 1:开通权益 -1:取消权益
  28. }
  29. func (x *PowerReq) Reset() {
  30. *x = PowerReq{}
  31. if protoimpl.UnsafeEnabled {
  32. mi := &file_resource_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. }
  37. func (x *PowerReq) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*PowerReq) ProtoMessage() {}
  41. func (x *PowerReq) ProtoReflect() protoreflect.Message {
  42. mi := &file_resource_proto_msgTypes[0]
  43. if protoimpl.UnsafeEnabled && x != nil {
  44. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  45. if ms.LoadMessageInfo() == nil {
  46. ms.StoreMessageInfo(mi)
  47. }
  48. return ms
  49. }
  50. return mi.MessageOf(x)
  51. }
  52. // Deprecated: Use PowerReq.ProtoReflect.Descriptor instead.
  53. func (*PowerReq) Descriptor() ([]byte, []int) {
  54. return file_resource_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *PowerReq) GetAppid() string {
  57. if x != nil {
  58. return x.Appid
  59. }
  60. return ""
  61. }
  62. func (x *PowerReq) GetGoodsCode() string {
  63. if x != nil {
  64. return x.GoodsCode
  65. }
  66. return ""
  67. }
  68. func (x *PowerReq) GetEntId() int64 {
  69. if x != nil {
  70. return x.EntId
  71. }
  72. return 0
  73. }
  74. func (x *PowerReq) GetUserId() int64 {
  75. if x != nil {
  76. return x.UserId
  77. }
  78. return 0
  79. }
  80. func (x *PowerReq) GetType() int64 {
  81. if x != nil {
  82. return x.Type
  83. }
  84. return 0
  85. }
  86. type CheckPowerReq struct {
  87. state protoimpl.MessageState
  88. sizeCache protoimpl.SizeCache
  89. unknownFields protoimpl.UnknownFields
  90. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  91. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  92. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  93. UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  94. }
  95. func (x *CheckPowerReq) Reset() {
  96. *x = CheckPowerReq{}
  97. if protoimpl.UnsafeEnabled {
  98. mi := &file_resource_proto_msgTypes[1]
  99. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  100. ms.StoreMessageInfo(mi)
  101. }
  102. }
  103. func (x *CheckPowerReq) String() string {
  104. return protoimpl.X.MessageStringOf(x)
  105. }
  106. func (*CheckPowerReq) ProtoMessage() {}
  107. func (x *CheckPowerReq) ProtoReflect() protoreflect.Message {
  108. mi := &file_resource_proto_msgTypes[1]
  109. if protoimpl.UnsafeEnabled && x != nil {
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. if ms.LoadMessageInfo() == nil {
  112. ms.StoreMessageInfo(mi)
  113. }
  114. return ms
  115. }
  116. return mi.MessageOf(x)
  117. }
  118. // Deprecated: Use CheckPowerReq.ProtoReflect.Descriptor instead.
  119. func (*CheckPowerReq) Descriptor() ([]byte, []int) {
  120. return file_resource_proto_rawDescGZIP(), []int{1}
  121. }
  122. func (x *CheckPowerReq) GetAppid() string {
  123. if x != nil {
  124. return x.Appid
  125. }
  126. return ""
  127. }
  128. func (x *CheckPowerReq) GetFunctionCode() string {
  129. if x != nil {
  130. return x.FunctionCode
  131. }
  132. return ""
  133. }
  134. func (x *CheckPowerReq) GetEntId() int64 {
  135. if x != nil {
  136. return x.EntId
  137. }
  138. return 0
  139. }
  140. func (x *CheckPowerReq) GetUserId() int64 {
  141. if x != nil {
  142. return x.UserId
  143. }
  144. return 0
  145. }
  146. type DeductionReq struct {
  147. state protoimpl.MessageState
  148. sizeCache protoimpl.SizeCache
  149. unknownFields protoimpl.UnknownFields
  150. Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
  151. FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
  152. EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
  153. UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
  154. Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
  155. Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
  156. }
  157. func (x *DeductionReq) Reset() {
  158. *x = DeductionReq{}
  159. if protoimpl.UnsafeEnabled {
  160. mi := &file_resource_proto_msgTypes[2]
  161. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  162. ms.StoreMessageInfo(mi)
  163. }
  164. }
  165. func (x *DeductionReq) String() string {
  166. return protoimpl.X.MessageStringOf(x)
  167. }
  168. func (*DeductionReq) ProtoMessage() {}
  169. func (x *DeductionReq) ProtoReflect() protoreflect.Message {
  170. mi := &file_resource_proto_msgTypes[2]
  171. if protoimpl.UnsafeEnabled && x != nil {
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. if ms.LoadMessageInfo() == nil {
  174. ms.StoreMessageInfo(mi)
  175. }
  176. return ms
  177. }
  178. return mi.MessageOf(x)
  179. }
  180. // Deprecated: Use DeductionReq.ProtoReflect.Descriptor instead.
  181. func (*DeductionReq) Descriptor() ([]byte, []int) {
  182. return file_resource_proto_rawDescGZIP(), []int{2}
  183. }
  184. func (x *DeductionReq) GetAppid() string {
  185. if x != nil {
  186. return x.Appid
  187. }
  188. return ""
  189. }
  190. func (x *DeductionReq) GetFunctionCode() string {
  191. if x != nil {
  192. return x.FunctionCode
  193. }
  194. return ""
  195. }
  196. func (x *DeductionReq) GetEntId() int64 {
  197. if x != nil {
  198. return x.EntId
  199. }
  200. return 0
  201. }
  202. func (x *DeductionReq) GetUserId() int64 {
  203. if x != nil {
  204. return x.UserId
  205. }
  206. return 0
  207. }
  208. func (x *DeductionReq) GetCount() int64 {
  209. if x != nil {
  210. return x.Count
  211. }
  212. return 0
  213. }
  214. func (x *DeductionReq) GetIds() []string {
  215. if x != nil {
  216. return x.Ids
  217. }
  218. return nil
  219. }
  220. type Resp struct {
  221. state protoimpl.MessageState
  222. sizeCache protoimpl.SizeCache
  223. unknownFields protoimpl.UnknownFields
  224. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足
  225. }
  226. func (x *Resp) Reset() {
  227. *x = Resp{}
  228. if protoimpl.UnsafeEnabled {
  229. mi := &file_resource_proto_msgTypes[3]
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. ms.StoreMessageInfo(mi)
  232. }
  233. }
  234. func (x *Resp) String() string {
  235. return protoimpl.X.MessageStringOf(x)
  236. }
  237. func (*Resp) ProtoMessage() {}
  238. func (x *Resp) ProtoReflect() protoreflect.Message {
  239. mi := &file_resource_proto_msgTypes[3]
  240. if protoimpl.UnsafeEnabled && x != nil {
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. if ms.LoadMessageInfo() == nil {
  243. ms.StoreMessageInfo(mi)
  244. }
  245. return ms
  246. }
  247. return mi.MessageOf(x)
  248. }
  249. // Deprecated: Use Resp.ProtoReflect.Descriptor instead.
  250. func (*Resp) Descriptor() ([]byte, []int) {
  251. return file_resource_proto_rawDescGZIP(), []int{3}
  252. }
  253. func (x *Resp) GetStatus() string {
  254. if x != nil {
  255. return x.Status
  256. }
  257. return ""
  258. }
  259. var File_resource_proto protoreflect.FileDescriptor
  260. var file_resource_proto_rawDesc = []byte{
  261. 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  262. 0x22, 0x83, 0x01, 0x0a, 0x08, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
  263. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
  264. 0x70, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x5f, 0x63, 0x6f, 0x64,
  265. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x43, 0x6f,
  266. 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  267. 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
  268. 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  269. 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03,
  270. 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7a, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
  271. 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  272. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a,
  273. 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02,
  274. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
  275. 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
  276. 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65,
  277. 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72,
  278. 0x49, 0x64, 0x22, 0xa1, 0x01, 0x0a, 0x0c, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  279. 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  280. 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e,
  281. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  282. 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15,
  283. 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  284. 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64,
  285. 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14,
  286. 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63,
  287. 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
  288. 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0x1e, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16,
  289. 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
  290. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x73, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
  291. 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c,
  292. 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52,
  293. 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
  294. 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65,
  295. 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44, 0x65, 0x64, 0x75,
  296. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f,
  297. 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e,
  298. 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  299. }
  300. var (
  301. file_resource_proto_rawDescOnce sync.Once
  302. file_resource_proto_rawDescData = file_resource_proto_rawDesc
  303. )
  304. func file_resource_proto_rawDescGZIP() []byte {
  305. file_resource_proto_rawDescOnce.Do(func() {
  306. file_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_resource_proto_rawDescData)
  307. })
  308. return file_resource_proto_rawDescData
  309. }
  310. var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  311. var file_resource_proto_goTypes = []interface{}{
  312. (*PowerReq)(nil), // 0: PowerReq
  313. (*CheckPowerReq)(nil), // 1: CheckPowerReq
  314. (*DeductionReq)(nil), // 2: DeductionReq
  315. (*Resp)(nil), // 3: Resp
  316. }
  317. var file_resource_proto_depIdxs = []int32{
  318. 0, // 0: Resource.PowerHandle:input_type -> PowerReq
  319. 1, // 1: Resource.CheckPower:input_type -> CheckPowerReq
  320. 2, // 2: Resource.Deduction:input_type -> DeductionReq
  321. 3, // 3: Resource.PowerHandle:output_type -> Resp
  322. 3, // 4: Resource.CheckPower:output_type -> Resp
  323. 3, // 5: Resource.Deduction:output_type -> Resp
  324. 3, // [3:6] is the sub-list for method output_type
  325. 0, // [0:3] is the sub-list for method input_type
  326. 0, // [0:0] is the sub-list for extension type_name
  327. 0, // [0:0] is the sub-list for extension extendee
  328. 0, // [0:0] is the sub-list for field type_name
  329. }
  330. func init() { file_resource_proto_init() }
  331. func file_resource_proto_init() {
  332. if File_resource_proto != nil {
  333. return
  334. }
  335. if !protoimpl.UnsafeEnabled {
  336. file_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  337. switch v := v.(*PowerReq); i {
  338. case 0:
  339. return &v.state
  340. case 1:
  341. return &v.sizeCache
  342. case 2:
  343. return &v.unknownFields
  344. default:
  345. return nil
  346. }
  347. }
  348. file_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  349. switch v := v.(*CheckPowerReq); i {
  350. case 0:
  351. return &v.state
  352. case 1:
  353. return &v.sizeCache
  354. case 2:
  355. return &v.unknownFields
  356. default:
  357. return nil
  358. }
  359. }
  360. file_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  361. switch v := v.(*DeductionReq); i {
  362. case 0:
  363. return &v.state
  364. case 1:
  365. return &v.sizeCache
  366. case 2:
  367. return &v.unknownFields
  368. default:
  369. return nil
  370. }
  371. }
  372. file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  373. switch v := v.(*Resp); i {
  374. case 0:
  375. return &v.state
  376. case 1:
  377. return &v.sizeCache
  378. case 2:
  379. return &v.unknownFields
  380. default:
  381. return nil
  382. }
  383. }
  384. }
  385. type x struct{}
  386. out := protoimpl.TypeBuilder{
  387. File: protoimpl.DescBuilder{
  388. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  389. RawDescriptor: file_resource_proto_rawDesc,
  390. NumEnums: 0,
  391. NumMessages: 4,
  392. NumExtensions: 0,
  393. NumServices: 1,
  394. },
  395. GoTypes: file_resource_proto_goTypes,
  396. DependencyIndexes: file_resource_proto_depIdxs,
  397. MessageInfos: file_resource_proto_msgTypes,
  398. }.Build()
  399. File_resource_proto = out.File
  400. file_resource_proto_rawDesc = nil
  401. file_resource_proto_goTypes = nil
  402. file_resource_proto_depIdxs = nil
  403. }