shop.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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: shop.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 ShopList struct {
  23. state protoimpl.MessageState `protogen:"open.v1"`
  24. List []*Shop `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 商店列表
  25. unknownFields protoimpl.UnknownFields
  26. sizeCache protoimpl.SizeCache
  27. }
  28. func (x *ShopList) Reset() {
  29. *x = ShopList{}
  30. mi := &file_shop_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. func (x *ShopList) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*ShopList) ProtoMessage() {}
  38. func (x *ShopList) ProtoReflect() protoreflect.Message {
  39. mi := &file_shop_proto_msgTypes[0]
  40. if x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use ShopList.ProtoReflect.Descriptor instead.
  50. func (*ShopList) Descriptor() ([]byte, []int) {
  51. return file_shop_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *ShopList) GetList() []*Shop {
  54. if x != nil {
  55. return x.List
  56. }
  57. return nil
  58. }
  59. // 商店信息
  60. type Shop struct {
  61. state protoimpl.MessageState `protogen:"open.v1"`
  62. ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
  63. ShopPoolID int32 `protobuf:"varint,2,opt,name=shopPoolID,proto3" json:"shopPoolID,omitempty"` // 当前商店商品库ID S-商店-商品库表商品库ID
  64. GoodsList []*I32I32 `protobuf:"bytes,3,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 商品列表 key 为商品ID value 为购买次数
  65. ResetTime int64 `protobuf:"varint,4,opt,name=resetTime,proto3" json:"resetTime,omitempty"` // 重置时间戳 0 为不重置
  66. unknownFields protoimpl.UnknownFields
  67. sizeCache protoimpl.SizeCache
  68. }
  69. func (x *Shop) Reset() {
  70. *x = Shop{}
  71. mi := &file_shop_proto_msgTypes[1]
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. ms.StoreMessageInfo(mi)
  74. }
  75. func (x *Shop) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*Shop) ProtoMessage() {}
  79. func (x *Shop) ProtoReflect() protoreflect.Message {
  80. mi := &file_shop_proto_msgTypes[1]
  81. if x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use Shop.ProtoReflect.Descriptor instead.
  91. func (*Shop) Descriptor() ([]byte, []int) {
  92. return file_shop_proto_rawDescGZIP(), []int{1}
  93. }
  94. func (x *Shop) GetShopID() int32 {
  95. if x != nil {
  96. return x.ShopID
  97. }
  98. return 0
  99. }
  100. func (x *Shop) GetShopPoolID() int32 {
  101. if x != nil {
  102. return x.ShopPoolID
  103. }
  104. return 0
  105. }
  106. func (x *Shop) GetGoodsList() []*I32I32 {
  107. if x != nil {
  108. return x.GoodsList
  109. }
  110. return nil
  111. }
  112. func (x *Shop) GetResetTime() int64 {
  113. if x != nil {
  114. return x.ResetTime
  115. }
  116. return 0
  117. }
  118. // 商店购买
  119. type ShopBuyRequest struct {
  120. state protoimpl.MessageState `protogen:"open.v1"`
  121. ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
  122. GoodsList []*I32I32 `protobuf:"bytes,2,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 购买数量
  123. unknownFields protoimpl.UnknownFields
  124. sizeCache protoimpl.SizeCache
  125. }
  126. func (x *ShopBuyRequest) Reset() {
  127. *x = ShopBuyRequest{}
  128. mi := &file_shop_proto_msgTypes[2]
  129. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  130. ms.StoreMessageInfo(mi)
  131. }
  132. func (x *ShopBuyRequest) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*ShopBuyRequest) ProtoMessage() {}
  136. func (x *ShopBuyRequest) ProtoReflect() protoreflect.Message {
  137. mi := &file_shop_proto_msgTypes[2]
  138. if x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use ShopBuyRequest.ProtoReflect.Descriptor instead.
  148. func (*ShopBuyRequest) Descriptor() ([]byte, []int) {
  149. return file_shop_proto_rawDescGZIP(), []int{2}
  150. }
  151. func (x *ShopBuyRequest) GetShopID() int32 {
  152. if x != nil {
  153. return x.ShopID
  154. }
  155. return 0
  156. }
  157. func (x *ShopBuyRequest) GetGoodsList() []*I32I32 {
  158. if x != nil {
  159. return x.GoodsList
  160. }
  161. return nil
  162. }
  163. // 商店购买返回
  164. type ShopBuyResponse struct {
  165. state protoimpl.MessageState `protogen:"open.v1"`
  166. ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
  167. GoodsList []*I32I32 `protobuf:"bytes,2,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 累计购买数量
  168. Assets []*Asset `protobuf:"bytes,3,rep,name=assets,proto3" json:"assets,omitempty"` // 购买获得的资产列表
  169. unknownFields protoimpl.UnknownFields
  170. sizeCache protoimpl.SizeCache
  171. }
  172. func (x *ShopBuyResponse) Reset() {
  173. *x = ShopBuyResponse{}
  174. mi := &file_shop_proto_msgTypes[3]
  175. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  176. ms.StoreMessageInfo(mi)
  177. }
  178. func (x *ShopBuyResponse) String() string {
  179. return protoimpl.X.MessageStringOf(x)
  180. }
  181. func (*ShopBuyResponse) ProtoMessage() {}
  182. func (x *ShopBuyResponse) ProtoReflect() protoreflect.Message {
  183. mi := &file_shop_proto_msgTypes[3]
  184. if x != nil {
  185. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  186. if ms.LoadMessageInfo() == nil {
  187. ms.StoreMessageInfo(mi)
  188. }
  189. return ms
  190. }
  191. return mi.MessageOf(x)
  192. }
  193. // Deprecated: Use ShopBuyResponse.ProtoReflect.Descriptor instead.
  194. func (*ShopBuyResponse) Descriptor() ([]byte, []int) {
  195. return file_shop_proto_rawDescGZIP(), []int{3}
  196. }
  197. func (x *ShopBuyResponse) GetShopID() int32 {
  198. if x != nil {
  199. return x.ShopID
  200. }
  201. return 0
  202. }
  203. func (x *ShopBuyResponse) GetGoodsList() []*I32I32 {
  204. if x != nil {
  205. return x.GoodsList
  206. }
  207. return nil
  208. }
  209. func (x *ShopBuyResponse) GetAssets() []*Asset {
  210. if x != nil {
  211. return x.Assets
  212. }
  213. return nil
  214. }
  215. // 商店变更
  216. type ShopChangePush struct {
  217. state protoimpl.MessageState `protogen:"open.v1"`
  218. DelShopIDs []int32 `protobuf:"varint,1,rep,packed,name=delShopIDs,proto3" json:"delShopIDs,omitempty"` // 删除商店ID列表
  219. List []*Shop `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // 变更商店列表
  220. unknownFields protoimpl.UnknownFields
  221. sizeCache protoimpl.SizeCache
  222. }
  223. func (x *ShopChangePush) Reset() {
  224. *x = ShopChangePush{}
  225. mi := &file_shop_proto_msgTypes[4]
  226. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  227. ms.StoreMessageInfo(mi)
  228. }
  229. func (x *ShopChangePush) String() string {
  230. return protoimpl.X.MessageStringOf(x)
  231. }
  232. func (*ShopChangePush) ProtoMessage() {}
  233. func (x *ShopChangePush) ProtoReflect() protoreflect.Message {
  234. mi := &file_shop_proto_msgTypes[4]
  235. if x != nil {
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. if ms.LoadMessageInfo() == nil {
  238. ms.StoreMessageInfo(mi)
  239. }
  240. return ms
  241. }
  242. return mi.MessageOf(x)
  243. }
  244. // Deprecated: Use ShopChangePush.ProtoReflect.Descriptor instead.
  245. func (*ShopChangePush) Descriptor() ([]byte, []int) {
  246. return file_shop_proto_rawDescGZIP(), []int{4}
  247. }
  248. func (x *ShopChangePush) GetDelShopIDs() []int32 {
  249. if x != nil {
  250. return x.DelShopIDs
  251. }
  252. return nil
  253. }
  254. func (x *ShopChangePush) GetList() []*Shop {
  255. if x != nil {
  256. return x.List
  257. }
  258. return nil
  259. }
  260. var File_shop_proto protoreflect.FileDescriptor
  261. const file_shop_proto_rawDesc = "" +
  262. "\n" +
  263. "\n" +
  264. "shop.proto\x12\x02pb\x1a\x0fbase_type.proto\"(\n" +
  265. "\bShopList\x12\x1c\n" +
  266. "\x04list\x18\x01 \x03(\v2\b.pb.ShopR\x04list\"\x86\x01\n" +
  267. "\x04Shop\x12\x16\n" +
  268. "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12\x1e\n" +
  269. "\n" +
  270. "shopPoolID\x18\x02 \x01(\x05R\n" +
  271. "shopPoolID\x12(\n" +
  272. "\tgoodsList\x18\x03 \x03(\v2\n" +
  273. ".pb.I32I32R\tgoodsList\x12\x1c\n" +
  274. "\tresetTime\x18\x04 \x01(\x03R\tresetTime\"R\n" +
  275. "\x0eShopBuyRequest\x12\x16\n" +
  276. "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12(\n" +
  277. "\tgoodsList\x18\x02 \x03(\v2\n" +
  278. ".pb.I32I32R\tgoodsList\"v\n" +
  279. "\x0fShopBuyResponse\x12\x16\n" +
  280. "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12(\n" +
  281. "\tgoodsList\x18\x02 \x03(\v2\n" +
  282. ".pb.I32I32R\tgoodsList\x12!\n" +
  283. "\x06assets\x18\x03 \x03(\v2\t.pb.AssetR\x06assets\"N\n" +
  284. "\x0eShopChangePush\x12\x1e\n" +
  285. "\n" +
  286. "delShopIDs\x18\x01 \x03(\x05R\n" +
  287. "delShopIDs\x12\x1c\n" +
  288. "\x04list\x18\x02 \x03(\v2\b.pb.ShopR\x04listB\x05Z\x03/pbb\x06proto3"
  289. var (
  290. file_shop_proto_rawDescOnce sync.Once
  291. file_shop_proto_rawDescData []byte
  292. )
  293. func file_shop_proto_rawDescGZIP() []byte {
  294. file_shop_proto_rawDescOnce.Do(func() {
  295. file_shop_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_shop_proto_rawDesc), len(file_shop_proto_rawDesc)))
  296. })
  297. return file_shop_proto_rawDescData
  298. }
  299. var file_shop_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  300. var file_shop_proto_goTypes = []any{
  301. (*ShopList)(nil), // 0: pb.ShopList
  302. (*Shop)(nil), // 1: pb.Shop
  303. (*ShopBuyRequest)(nil), // 2: pb.ShopBuyRequest
  304. (*ShopBuyResponse)(nil), // 3: pb.ShopBuyResponse
  305. (*ShopChangePush)(nil), // 4: pb.ShopChangePush
  306. (*I32I32)(nil), // 5: pb.I32I32
  307. (*Asset)(nil), // 6: pb.Asset
  308. }
  309. var file_shop_proto_depIdxs = []int32{
  310. 1, // 0: pb.ShopList.list:type_name -> pb.Shop
  311. 5, // 1: pb.Shop.goodsList:type_name -> pb.I32I32
  312. 5, // 2: pb.ShopBuyRequest.goodsList:type_name -> pb.I32I32
  313. 5, // 3: pb.ShopBuyResponse.goodsList:type_name -> pb.I32I32
  314. 6, // 4: pb.ShopBuyResponse.assets:type_name -> pb.Asset
  315. 1, // 5: pb.ShopChangePush.list:type_name -> pb.Shop
  316. 6, // [6:6] is the sub-list for method output_type
  317. 6, // [6:6] is the sub-list for method input_type
  318. 6, // [6:6] is the sub-list for extension type_name
  319. 6, // [6:6] is the sub-list for extension extendee
  320. 0, // [0:6] is the sub-list for field type_name
  321. }
  322. func init() { file_shop_proto_init() }
  323. func file_shop_proto_init() {
  324. if File_shop_proto != nil {
  325. return
  326. }
  327. file_base_type_proto_init()
  328. type x struct{}
  329. out := protoimpl.TypeBuilder{
  330. File: protoimpl.DescBuilder{
  331. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  332. RawDescriptor: unsafe.Slice(unsafe.StringData(file_shop_proto_rawDesc), len(file_shop_proto_rawDesc)),
  333. NumEnums: 0,
  334. NumMessages: 5,
  335. NumExtensions: 0,
  336. NumServices: 0,
  337. },
  338. GoTypes: file_shop_proto_goTypes,
  339. DependencyIndexes: file_shop_proto_depIdxs,
  340. MessageInfos: file_shop_proto_msgTypes,
  341. }.Build()
  342. File_shop_proto = out.File
  343. file_shop_proto_goTypes = nil
  344. file_shop_proto_depIdxs = nil
  345. }