charge.pb.go 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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 ChargeCreate struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. // 充值项id
  25. ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"`
  26. // 充值项类型
  27. ChargeType int32 `protobuf:"varint,2,opt,name=chargeType,proto3" json:"chargeType,omitempty"`
  28. // 充值项参数
  29. ChargeParams int32 `protobuf:"varint,3,opt,name=chargeParams,proto3" json:"chargeParams,omitempty"`
  30. unknownFields protoimpl.UnknownFields
  31. sizeCache protoimpl.SizeCache
  32. }
  33. func (x *ChargeCreate) Reset() {
  34. *x = ChargeCreate{}
  35. mi := &file_charge_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. func (x *ChargeCreate) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*ChargeCreate) ProtoMessage() {}
  43. func (x *ChargeCreate) ProtoReflect() protoreflect.Message {
  44. mi := &file_charge_proto_msgTypes[0]
  45. if x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use ChargeCreate.ProtoReflect.Descriptor instead.
  55. func (*ChargeCreate) Descriptor() ([]byte, []int) {
  56. return file_charge_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *ChargeCreate) GetChargeID() int32 {
  59. if x != nil {
  60. return x.ChargeID
  61. }
  62. return 0
  63. }
  64. func (x *ChargeCreate) GetChargeType() int32 {
  65. if x != nil {
  66. return x.ChargeType
  67. }
  68. return 0
  69. }
  70. func (x *ChargeCreate) GetChargeParams() int32 {
  71. if x != nil {
  72. return x.ChargeParams
  73. }
  74. return 0
  75. }
  76. // 充值订单创建响应结果
  77. type ChargeCreateResponse struct {
  78. state protoimpl.MessageState `protogen:"open.v1"`
  79. // 充值项id
  80. ChargeID int32 `protobuf:"varint,1,opt,name=chargeID,proto3" json:"chargeID,omitempty"`
  81. // 游戏订单id
  82. OrderID int64 `protobuf:"varint,2,opt,name=orderID,proto3" json:"orderID,omitempty"`
  83. // 返回参数
  84. Params map[string]string `protobuf:"bytes,4,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  85. unknownFields protoimpl.UnknownFields
  86. sizeCache protoimpl.SizeCache
  87. }
  88. func (x *ChargeCreateResponse) Reset() {
  89. *x = ChargeCreateResponse{}
  90. mi := &file_charge_proto_msgTypes[1]
  91. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  92. ms.StoreMessageInfo(mi)
  93. }
  94. func (x *ChargeCreateResponse) String() string {
  95. return protoimpl.X.MessageStringOf(x)
  96. }
  97. func (*ChargeCreateResponse) ProtoMessage() {}
  98. func (x *ChargeCreateResponse) ProtoReflect() protoreflect.Message {
  99. mi := &file_charge_proto_msgTypes[1]
  100. if x != nil {
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. if ms.LoadMessageInfo() == nil {
  103. ms.StoreMessageInfo(mi)
  104. }
  105. return ms
  106. }
  107. return mi.MessageOf(x)
  108. }
  109. // Deprecated: Use ChargeCreateResponse.ProtoReflect.Descriptor instead.
  110. func (*ChargeCreateResponse) Descriptor() ([]byte, []int) {
  111. return file_charge_proto_rawDescGZIP(), []int{1}
  112. }
  113. func (x *ChargeCreateResponse) GetChargeID() int32 {
  114. if x != nil {
  115. return x.ChargeID
  116. }
  117. return 0
  118. }
  119. func (x *ChargeCreateResponse) GetOrderID() int64 {
  120. if x != nil {
  121. return x.OrderID
  122. }
  123. return 0
  124. }
  125. func (x *ChargeCreateResponse) GetParams() map[string]string {
  126. if x != nil {
  127. return x.Params
  128. }
  129. return nil
  130. }
  131. var File_charge_proto protoreflect.FileDescriptor
  132. const file_charge_proto_rawDesc = "" +
  133. "\n" +
  134. "\fcharge.proto\x12\x02pb\"n\n" +
  135. "\fChargeCreate\x12\x1a\n" +
  136. "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\x1e\n" +
  137. "\n" +
  138. "chargeType\x18\x02 \x01(\x05R\n" +
  139. "chargeType\x12\"\n" +
  140. "\fchargeParams\x18\x03 \x01(\x05R\fchargeParams\"\xc5\x01\n" +
  141. "\x14ChargeCreateResponse\x12\x1a\n" +
  142. "\bchargeID\x18\x01 \x01(\x05R\bchargeID\x12\x18\n" +
  143. "\aorderID\x18\x02 \x01(\x03R\aorderID\x12<\n" +
  144. "\x06params\x18\x04 \x03(\v2$.pb.ChargeCreateResponse.ParamsEntryR\x06params\x1a9\n" +
  145. "\vParamsEntry\x12\x10\n" +
  146. "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
  147. "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01B\x05Z\x03/pbb\x06proto3"
  148. var (
  149. file_charge_proto_rawDescOnce sync.Once
  150. file_charge_proto_rawDescData []byte
  151. )
  152. func file_charge_proto_rawDescGZIP() []byte {
  153. file_charge_proto_rawDescOnce.Do(func() {
  154. file_charge_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc)))
  155. })
  156. return file_charge_proto_rawDescData
  157. }
  158. var file_charge_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  159. var file_charge_proto_goTypes = []any{
  160. (*ChargeCreate)(nil), // 0: pb.ChargeCreate
  161. (*ChargeCreateResponse)(nil), // 1: pb.ChargeCreateResponse
  162. nil, // 2: pb.ChargeCreateResponse.ParamsEntry
  163. }
  164. var file_charge_proto_depIdxs = []int32{
  165. 2, // 0: pb.ChargeCreateResponse.params:type_name -> pb.ChargeCreateResponse.ParamsEntry
  166. 1, // [1:1] is the sub-list for method output_type
  167. 1, // [1:1] is the sub-list for method input_type
  168. 1, // [1:1] is the sub-list for extension type_name
  169. 1, // [1:1] is the sub-list for extension extendee
  170. 0, // [0:1] is the sub-list for field type_name
  171. }
  172. func init() { file_charge_proto_init() }
  173. func file_charge_proto_init() {
  174. if File_charge_proto != nil {
  175. return
  176. }
  177. type x struct{}
  178. out := protoimpl.TypeBuilder{
  179. File: protoimpl.DescBuilder{
  180. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  181. RawDescriptor: unsafe.Slice(unsafe.StringData(file_charge_proto_rawDesc), len(file_charge_proto_rawDesc)),
  182. NumEnums: 0,
  183. NumMessages: 3,
  184. NumExtensions: 0,
  185. NumServices: 0,
  186. },
  187. GoTypes: file_charge_proto_goTypes,
  188. DependencyIndexes: file_charge_proto_depIdxs,
  189. MessageInfos: file_charge_proto_msgTypes,
  190. }.Build()
  191. File_charge_proto = out.File
  192. file_charge_proto_goTypes = nil
  193. file_charge_proto_depIdxs = nil
  194. }