charge.pb.go 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. // message结构的属性名请使用 驼峰小写字母开始
  2. // Code generated by protoc-gen-go. DO NOT EDIT.
  3. // versions:
  4. // protoc-gen-go v1.36.8
  5. // protoc v6.31.1
  6. // source: charge.proto
  7. package pb
  8. import (
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. unsafe "unsafe"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // 充值数据
  22. type ChargeData struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 周月卡信息 key: 充值项id value: 过期时间戳(毫秒)
  25. Cards map[int32]*Card `protobuf:"bytes,1,rep,name=Cards,proto3" json:"Cards,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  26. // 金币商城充值记录,用来判断首充
  27. Golds []int32 `protobuf:"varint,2,rep,packed,name=Golds,proto3" json:"Golds,omitempty"`
  28. unknownFields protoimpl.UnknownFields
  29. sizeCache protoimpl.SizeCache
  30. }
  31. func (x *ChargeData) Reset() {
  32. *x = ChargeData{}
  33. mi := &file_charge_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. func (x *ChargeData) String() string {
  38. return protoimpl.X.MessageStringOf(x)
  39. }
  40. func (*ChargeData) ProtoMessage() {}
  41. func (x *ChargeData) ProtoReflect() protoreflect.Message {
  42. mi := &file_charge_proto_msgTypes[0]
  43. if 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 ChargeData.ProtoReflect.Descriptor instead.
  53. func (*ChargeData) Descriptor() ([]byte, []int) {
  54. return file_charge_proto_rawDescGZIP(), []int{0}
  55. }
  56. func (x *ChargeData) GetCards() map[int32]*Card {
  57. if x != nil {
  58. return x.Cards
  59. }
  60. return nil
  61. }
  62. func (x *ChargeData) GetGolds() []int32 {
  63. if x != nil {
  64. return x.Golds
  65. }
  66. return nil
  67. }
  68. // 周月卡信息
  69. type Card struct {
  70. state protoimpl.MessageState `protogen:"open.v1"`
  71. // 过期时间戳(毫秒)
  72. ExpireTime int64 `protobuf:"varint,1,opt,name=expireTime,proto3" json:"expireTime,omitempty"`
  73. // 今日是否已领取
  74. IsReceive bool `protobuf:"varint,2,opt,name=isReceive,proto3" json:"isReceive,omitempty"`
  75. unknownFields protoimpl.UnknownFields
  76. sizeCache protoimpl.SizeCache
  77. }
  78. func (x *Card) Reset() {
  79. *x = Card{}
  80. mi := &file_charge_proto_msgTypes[1]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. func (x *Card) String() string {
  85. return protoimpl.X.MessageStringOf(x)
  86. }
  87. func (*Card) ProtoMessage() {}
  88. func (x *Card) ProtoReflect() protoreflect.Message {
  89. mi := &file_charge_proto_msgTypes[1]
  90. if x != nil {
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. if ms.LoadMessageInfo() == nil {
  93. ms.StoreMessageInfo(mi)
  94. }
  95. return ms
  96. }
  97. return mi.MessageOf(x)
  98. }
  99. // Deprecated: Use Card.ProtoReflect.Descriptor instead.
  100. func (*Card) Descriptor() ([]byte, []int) {
  101. return file_charge_proto_rawDescGZIP(), []int{1}
  102. }
  103. func (x *Card) GetExpireTime() int64 {
  104. if x != nil {
  105. return x.ExpireTime
  106. }
  107. return 0
  108. }
  109. func (x *Card) GetIsReceive() bool {
  110. if x != nil {
  111. return x.IsReceive
  112. }
  113. return false
  114. }
  115. // 充值订单创建
  116. type ChargeCreate struct {
  117. state protoimpl.MessageState `protogen:"open.v1"`
  118. // 充值项id
  119. ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"`
  120. // 充值项参数
  121. ChargeParams int32 `protobuf:"varint,2,opt,name=chargeParams,proto3" json:"chargeParams,omitempty"`
  122. unknownFields protoimpl.UnknownFields
  123. sizeCache protoimpl.SizeCache
  124. }
  125. func (x *ChargeCreate) Reset() {
  126. *x = ChargeCreate{}
  127. mi := &file_charge_proto_msgTypes[2]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. func (x *ChargeCreate) String() string {
  132. return protoimpl.X.MessageStringOf(x)
  133. }
  134. func (*ChargeCreate) ProtoMessage() {}
  135. func (x *ChargeCreate) ProtoReflect() protoreflect.Message {
  136. mi := &file_charge_proto_msgTypes[2]
  137. if x != nil {
  138. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  139. if ms.LoadMessageInfo() == nil {
  140. ms.StoreMessageInfo(mi)
  141. }
  142. return ms
  143. }
  144. return mi.MessageOf(x)
  145. }
  146. // Deprecated: Use ChargeCreate.ProtoReflect.Descriptor instead.
  147. func (*ChargeCreate) Descriptor() ([]byte, []int) {
  148. return file_charge_proto_rawDescGZIP(), []int{2}
  149. }
  150. func (x *ChargeCreate) GetChargeID() int32 {
  151. if x != nil {
  152. return x.ChargeID
  153. }
  154. return 0
  155. }
  156. func (x *ChargeCreate) GetChargeParams() int32 {
  157. if x != nil {
  158. return x.ChargeParams
  159. }
  160. return 0
  161. }
  162. // 充值订单创建响应结果
  163. type ChargeCreateResponse struct {
  164. state protoimpl.MessageState `protogen:"open.v1"`
  165. // 充值项id
  166. ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"`
  167. // 游戏订单id
  168. OrderID int64 `protobuf:"varint,2,opt,name=orderID,proto3" json:"orderID,omitempty"`
  169. // 返回参数
  170. Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  171. unknownFields protoimpl.UnknownFields
  172. sizeCache protoimpl.SizeCache
  173. }
  174. func (x *ChargeCreateResponse) Reset() {
  175. *x = ChargeCreateResponse{}
  176. mi := &file_charge_proto_msgTypes[3]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. func (x *ChargeCreateResponse) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*ChargeCreateResponse) ProtoMessage() {}
  184. func (x *ChargeCreateResponse) ProtoReflect() protoreflect.Message {
  185. mi := &file_charge_proto_msgTypes[3]
  186. if x != nil {
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. if ms.LoadMessageInfo() == nil {
  189. ms.StoreMessageInfo(mi)
  190. }
  191. return ms
  192. }
  193. return mi.MessageOf(x)
  194. }
  195. // Deprecated: Use ChargeCreateResponse.ProtoReflect.Descriptor instead.
  196. func (*ChargeCreateResponse) Descriptor() ([]byte, []int) {
  197. return file_charge_proto_rawDescGZIP(), []int{3}
  198. }
  199. func (x *ChargeCreateResponse) GetChargeID() int32 {
  200. if x != nil {
  201. return x.ChargeID
  202. }
  203. return 0
  204. }
  205. func (x *ChargeCreateResponse) GetOrderID() int64 {
  206. if x != nil {
  207. return x.OrderID
  208. }
  209. return 0
  210. }
  211. func (x *ChargeCreateResponse) GetParams() map[string]string {
  212. if x != nil {
  213. return x.Params
  214. }
  215. return nil
  216. }
  217. var File_charge_proto protoreflect.FileDescriptor
  218. const file_charge_proto_rawDesc = "" +
  219. "\n" +
  220. "\fcharge.proto\x12\x02pb\"\x97\x01\n" +
  221. "\n" +
  222. "ChargeData\x12/\n" +
  223. "\x05Cards\x18\x01 \x03(\v2\x19.pb.ChargeData.CardsEntryR\x05Cards\x12\x14\n" +
  224. "\x05Golds\x18\x02 \x03(\x05R\x05Golds\x1aB\n" +
  225. "\n" +
  226. "CardsEntry\x12\x10\n" +
  227. "\x03key\x18\x01 \x01(\x05R\x03key\x12\x1e\n" +
  228. "\x05value\x18\x02 \x01(\v2\b.pb.CardR\x05value:\x028\x01\"D\n" +
  229. "\x04Card\x12\x1e\n" +
  230. "\n" +
  231. "expireTime\x18\x01 \x01(\x03R\n" +
  232. "expireTime\x12\x1c\n" +
  233. "\tisReceive\x18\x02 \x01(\bR\tisReceive\"N\n" +
  234. "\fChargeCreate\x12\x1a\n" +
  235. "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\"\n" +
  236. "\fchargeParams\x18\x02 \x01(\x05R\fchargeParams\"\xc5\x01\n" +
  237. "\x14ChargeCreateResponse\x12\x1a\n" +
  238. "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\x18\n" +
  239. "\aorderID\x18\x02 \x01(\x03R\aorderID\x12<\n" +
  240. "\x06params\x18\x03 \x03(\v2$.pb.ChargeCreateResponse.ParamsEntryR\x06params\x1a9\n" +
  241. "\vParamsEntry\x12\x10\n" +
  242. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  243. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x05Z\x03/pbb\x06proto3"
  244. var (
  245. file_charge_proto_rawDescOnce sync.Once
  246. file_charge_proto_rawDescData []byte
  247. )
  248. func file_charge_proto_rawDescGZIP() []byte {
  249. file_charge_proto_rawDescOnce.Do(func() {
  250. file_charge_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc)))
  251. })
  252. return file_charge_proto_rawDescData
  253. }
  254. var file_charge_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  255. var file_charge_proto_goTypes = []any{
  256. (*ChargeData)(nil), // 0: pb.ChargeData
  257. (*Card)(nil), // 1: pb.Card
  258. (*ChargeCreate)(nil), // 2: pb.ChargeCreate
  259. (*ChargeCreateResponse)(nil), // 3: pb.ChargeCreateResponse
  260. nil, // 4: pb.ChargeData.CardsEntry
  261. nil, // 5: pb.ChargeCreateResponse.ParamsEntry
  262. }
  263. var file_charge_proto_depIdxs = []int32{
  264. 4, // 0: pb.ChargeData.Cards:type_name -> pb.ChargeData.CardsEntry
  265. 5, // 1: pb.ChargeCreateResponse.params:type_name -> pb.ChargeCreateResponse.ParamsEntry
  266. 1, // 2: pb.ChargeData.CardsEntry.value:type_name -> pb.Card
  267. 3, // [3:3] is the sub-list for method output_type
  268. 3, // [3:3] is the sub-list for method input_type
  269. 3, // [3:3] is the sub-list for extension type_name
  270. 3, // [3:3] is the sub-list for extension extendee
  271. 0, // [0:3] is the sub-list for field type_name
  272. }
  273. func init() { file_charge_proto_init() }
  274. func file_charge_proto_init() {
  275. if File_charge_proto != nil {
  276. return
  277. }
  278. type x struct{}
  279. out := protoimpl.TypeBuilder{
  280. File: protoimpl.DescBuilder{
  281. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  282. RawDescriptor: unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc)),
  283. NumEnums: 0,
  284. NumMessages: 6,
  285. NumExtensions: 0,
  286. NumServices: 0,
  287. },
  288. GoTypes: file_charge_proto_goTypes,
  289. DependencyIndexes: file_charge_proto_depIdxs,
  290. MessageInfos: file_charge_proto_msgTypes,
  291. }.Build()
  292. File_charge_proto = out.File
  293. file_charge_proto_goTypes = nil
  294. file_charge_proto_depIdxs = nil
  295. }