| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- // message结构的属性名请使用 驼峰小写字母开始
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.36.8
- // protoc v6.31.1
- // source: shop.proto
- package pb
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- unsafe "unsafe"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // 商店列表
- type ShopList struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- List []*Shop `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 商店列表
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ShopList) Reset() {
- *x = ShopList{}
- mi := &file_shop_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ShopList) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ShopList) ProtoMessage() {}
- func (x *ShopList) ProtoReflect() protoreflect.Message {
- mi := &file_shop_proto_msgTypes[0]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ShopList.ProtoReflect.Descriptor instead.
- func (*ShopList) Descriptor() ([]byte, []int) {
- return file_shop_proto_rawDescGZIP(), []int{0}
- }
- func (x *ShopList) GetList() []*Shop {
- if x != nil {
- return x.List
- }
- return nil
- }
- // 商店信息
- type Shop struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
- ShopPoolID int32 `protobuf:"varint,2,opt,name=shopPoolID,proto3" json:"shopPoolID,omitempty"` // 当前商店商品库ID S-商店-商品库表商品库ID
- GoodsList []*I32I32 `protobuf:"bytes,3,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 商品列表 key 为商品ID value 为购买次数
- ResetTime int64 `protobuf:"varint,4,opt,name=resetTime,proto3" json:"resetTime,omitempty"` // 重置时间戳 0 为不重置
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *Shop) Reset() {
- *x = Shop{}
- mi := &file_shop_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *Shop) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Shop) ProtoMessage() {}
- func (x *Shop) ProtoReflect() protoreflect.Message {
- mi := &file_shop_proto_msgTypes[1]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Shop.ProtoReflect.Descriptor instead.
- func (*Shop) Descriptor() ([]byte, []int) {
- return file_shop_proto_rawDescGZIP(), []int{1}
- }
- func (x *Shop) GetShopID() int32 {
- if x != nil {
- return x.ShopID
- }
- return 0
- }
- func (x *Shop) GetShopPoolID() int32 {
- if x != nil {
- return x.ShopPoolID
- }
- return 0
- }
- func (x *Shop) GetGoodsList() []*I32I32 {
- if x != nil {
- return x.GoodsList
- }
- return nil
- }
- func (x *Shop) GetResetTime() int64 {
- if x != nil {
- return x.ResetTime
- }
- return 0
- }
- // 商店购买
- type ShopBuyRequest struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
- GoodsList []*I32I32 `protobuf:"bytes,2,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 购买数量
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ShopBuyRequest) Reset() {
- *x = ShopBuyRequest{}
- mi := &file_shop_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ShopBuyRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ShopBuyRequest) ProtoMessage() {}
- func (x *ShopBuyRequest) ProtoReflect() protoreflect.Message {
- mi := &file_shop_proto_msgTypes[2]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ShopBuyRequest.ProtoReflect.Descriptor instead.
- func (*ShopBuyRequest) Descriptor() ([]byte, []int) {
- return file_shop_proto_rawDescGZIP(), []int{2}
- }
- func (x *ShopBuyRequest) GetShopID() int32 {
- if x != nil {
- return x.ShopID
- }
- return 0
- }
- func (x *ShopBuyRequest) GetGoodsList() []*I32I32 {
- if x != nil {
- return x.GoodsList
- }
- return nil
- }
- // 商店购买返回
- type ShopBuyResponse struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- ShopID int32 `protobuf:"varint,1,opt,name=shopID,proto3" json:"shopID,omitempty"` // 商店ID S-商店表商店ID
- GoodsList []*I32I32 `protobuf:"bytes,2,rep,name=goodsList,proto3" json:"goodsList,omitempty"` // 购买商品列表 key 购买商品ID S-商店-商品库表商品ID value 累计购买数量
- Assets []*Asset `protobuf:"bytes,3,rep,name=assets,proto3" json:"assets,omitempty"` // 购买获得的资产列表
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ShopBuyResponse) Reset() {
- *x = ShopBuyResponse{}
- mi := &file_shop_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ShopBuyResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ShopBuyResponse) ProtoMessage() {}
- func (x *ShopBuyResponse) ProtoReflect() protoreflect.Message {
- mi := &file_shop_proto_msgTypes[3]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ShopBuyResponse.ProtoReflect.Descriptor instead.
- func (*ShopBuyResponse) Descriptor() ([]byte, []int) {
- return file_shop_proto_rawDescGZIP(), []int{3}
- }
- func (x *ShopBuyResponse) GetShopID() int32 {
- if x != nil {
- return x.ShopID
- }
- return 0
- }
- func (x *ShopBuyResponse) GetGoodsList() []*I32I32 {
- if x != nil {
- return x.GoodsList
- }
- return nil
- }
- func (x *ShopBuyResponse) GetAssets() []*Asset {
- if x != nil {
- return x.Assets
- }
- return nil
- }
- // 商店变更
- type ShopChangePush struct {
- state protoimpl.MessageState `protogen:"open.v1"`
- DelShopIDs []int32 `protobuf:"varint,1,rep,packed,name=delShopIDs,proto3" json:"delShopIDs,omitempty"` // 删除商店ID列表
- List []*Shop `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // 变更商店列表
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
- }
- func (x *ShopChangePush) Reset() {
- *x = ShopChangePush{}
- mi := &file_shop_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- func (x *ShopChangePush) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ShopChangePush) ProtoMessage() {}
- func (x *ShopChangePush) ProtoReflect() protoreflect.Message {
- mi := &file_shop_proto_msgTypes[4]
- if x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ShopChangePush.ProtoReflect.Descriptor instead.
- func (*ShopChangePush) Descriptor() ([]byte, []int) {
- return file_shop_proto_rawDescGZIP(), []int{4}
- }
- func (x *ShopChangePush) GetDelShopIDs() []int32 {
- if x != nil {
- return x.DelShopIDs
- }
- return nil
- }
- func (x *ShopChangePush) GetList() []*Shop {
- if x != nil {
- return x.List
- }
- return nil
- }
- var File_shop_proto protoreflect.FileDescriptor
- const file_shop_proto_rawDesc = "" +
- "\n" +
- "\n" +
- "shop.proto\x12\x02pb\x1a\x0fbase_type.proto\"(\n" +
- "\bShopList\x12\x1c\n" +
- "\x04list\x18\x01 \x03(\v2\b.pb.ShopR\x04list\"\x86\x01\n" +
- "\x04Shop\x12\x16\n" +
- "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12\x1e\n" +
- "\n" +
- "shopPoolID\x18\x02 \x01(\x05R\n" +
- "shopPoolID\x12(\n" +
- "\tgoodsList\x18\x03 \x03(\v2\n" +
- ".pb.I32I32R\tgoodsList\x12\x1c\n" +
- "\tresetTime\x18\x04 \x01(\x03R\tresetTime\"R\n" +
- "\x0eShopBuyRequest\x12\x16\n" +
- "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12(\n" +
- "\tgoodsList\x18\x02 \x03(\v2\n" +
- ".pb.I32I32R\tgoodsList\"v\n" +
- "\x0fShopBuyResponse\x12\x16\n" +
- "\x06shopID\x18\x01 \x01(\x05R\x06shopID\x12(\n" +
- "\tgoodsList\x18\x02 \x03(\v2\n" +
- ".pb.I32I32R\tgoodsList\x12!\n" +
- "\x06assets\x18\x03 \x03(\v2\t.pb.AssetR\x06assets\"N\n" +
- "\x0eShopChangePush\x12\x1e\n" +
- "\n" +
- "delShopIDs\x18\x01 \x03(\x05R\n" +
- "delShopIDs\x12\x1c\n" +
- "\x04list\x18\x02 \x03(\v2\b.pb.ShopR\x04listB\x05Z\x03/pbb\x06proto3"
- var (
- file_shop_proto_rawDescOnce sync.Once
- file_shop_proto_rawDescData []byte
- )
- func file_shop_proto_rawDescGZIP() []byte {
- file_shop_proto_rawDescOnce.Do(func() {
- file_shop_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_shop_proto_rawDesc), len(file_shop_proto_rawDesc)))
- })
- return file_shop_proto_rawDescData
- }
- var file_shop_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
- var file_shop_proto_goTypes = []any{
- (*ShopList)(nil), // 0: pb.ShopList
- (*Shop)(nil), // 1: pb.Shop
- (*ShopBuyRequest)(nil), // 2: pb.ShopBuyRequest
- (*ShopBuyResponse)(nil), // 3: pb.ShopBuyResponse
- (*ShopChangePush)(nil), // 4: pb.ShopChangePush
- (*I32I32)(nil), // 5: pb.I32I32
- (*Asset)(nil), // 6: pb.Asset
- }
- var file_shop_proto_depIdxs = []int32{
- 1, // 0: pb.ShopList.list:type_name -> pb.Shop
- 5, // 1: pb.Shop.goodsList:type_name -> pb.I32I32
- 5, // 2: pb.ShopBuyRequest.goodsList:type_name -> pb.I32I32
- 5, // 3: pb.ShopBuyResponse.goodsList:type_name -> pb.I32I32
- 6, // 4: pb.ShopBuyResponse.assets:type_name -> pb.Asset
- 1, // 5: pb.ShopChangePush.list:type_name -> pb.Shop
- 6, // [6:6] is the sub-list for method output_type
- 6, // [6:6] is the sub-list for method input_type
- 6, // [6:6] is the sub-list for extension type_name
- 6, // [6:6] is the sub-list for extension extendee
- 0, // [0:6] is the sub-list for field type_name
- }
- func init() { file_shop_proto_init() }
- func file_shop_proto_init() {
- if File_shop_proto != nil {
- return
- }
- file_base_type_proto_init()
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: unsafe.Slice(unsafe.StringData(file_shop_proto_rawDesc), len(file_shop_proto_rawDesc)),
- NumEnums: 0,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_shop_proto_goTypes,
- DependencyIndexes: file_shop_proto_depIdxs,
- MessageInfos: file_shop_proto_msgTypes,
- }.Build()
- File_shop_proto = out.File
- file_shop_proto_goTypes = nil
- file_shop_proto_depIdxs = nil
- }
|