528 lines
17 KiB
Go
528 lines
17 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: shop/shop_msg.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
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 ShopItem struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
GoodsId int32 `protobuf:"varint,1,opt,name=GoodsId,proto3" json:"GoodsId"` //商品Id
|
|
Items []*UserAssets `protobuf:"bytes,2,rep,name=Items,proto3" json:"Items"` //货物
|
|
Consume []*UserAssets `protobuf:"bytes,3,rep,name=Consume,proto3" json:"Consume"` //消耗
|
|
Sale int32 `protobuf:"varint,4,opt,name=Sale,proto3" json:"Sale"` //打折
|
|
LeftBuyNum int32 `protobuf:"varint,5,opt,name=LeftBuyNum,proto3" json:"LeftBuyNum"` //还可购买次数
|
|
Preview *DB_Equipment `protobuf:"bytes,6,opt,name=preview,proto3" json:"preview"` //装备预览数据
|
|
}
|
|
|
|
func (x *ShopItem) Reset() {
|
|
*x = ShopItem{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ShopItem) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShopItem) ProtoMessage() {}
|
|
|
|
func (x *ShopItem) ProtoReflect() protoreflect.Message {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[0]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShopItem.ProtoReflect.Descriptor instead.
|
|
func (*ShopItem) Descriptor() ([]byte, []int) {
|
|
return file_shop_shop_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ShopItem) GetGoodsId() int32 {
|
|
if x != nil {
|
|
return x.GoodsId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShopItem) GetItems() []*UserAssets {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ShopItem) GetConsume() []*UserAssets {
|
|
if x != nil {
|
|
return x.Consume
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ShopItem) GetSale() int32 {
|
|
if x != nil {
|
|
return x.Sale
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShopItem) GetLeftBuyNum() int32 {
|
|
if x != nil {
|
|
return x.LeftBuyNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShopItem) GetPreview() *DB_Equipment {
|
|
if x != nil {
|
|
return x.Preview
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//获取装备列表请求
|
|
type ShopGetListReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SType ShopType `protobuf:"varint,1,opt,name=sType,proto3,enum=ShopType" json:"sType"` //商城类型
|
|
IsManualRefresh bool `protobuf:"varint,2,opt,name=IsManualRefresh,proto3" json:"IsManualRefresh"` //是否手动刷新
|
|
}
|
|
|
|
func (x *ShopGetListReq) Reset() {
|
|
*x = ShopGetListReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ShopGetListReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShopGetListReq) ProtoMessage() {}
|
|
|
|
func (x *ShopGetListReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[1]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShopGetListReq.ProtoReflect.Descriptor instead.
|
|
func (*ShopGetListReq) Descriptor() ([]byte, []int) {
|
|
return file_shop_shop_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ShopGetListReq) GetSType() ShopType {
|
|
if x != nil {
|
|
return x.SType
|
|
}
|
|
return ShopType_Null
|
|
}
|
|
|
|
func (x *ShopGetListReq) GetIsManualRefresh() bool {
|
|
if x != nil {
|
|
return x.IsManualRefresh
|
|
}
|
|
return false
|
|
}
|
|
|
|
//获取装备列表请求
|
|
type ShopGetListResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
SType ShopType `protobuf:"varint,1,opt,name=sType,proto3,enum=ShopType" json:"sType"` //商城类型
|
|
IsManualRefresh bool `protobuf:"varint,2,opt,name=IsManualRefresh,proto3" json:"IsManualRefresh"` //是否手动刷新
|
|
Goods []*ShopItem `protobuf:"bytes,4,rep,name=Goods,proto3" json:"Goods"` //商品列表
|
|
SurplusRefreshNum int32 `protobuf:"varint,5,opt,name=SurplusRefreshNum,proto3" json:"SurplusRefreshNum"` //剩余手动刷新次数
|
|
}
|
|
|
|
func (x *ShopGetListResp) Reset() {
|
|
*x = ShopGetListResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ShopGetListResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShopGetListResp) ProtoMessage() {}
|
|
|
|
func (x *ShopGetListResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[2]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShopGetListResp.ProtoReflect.Descriptor instead.
|
|
func (*ShopGetListResp) Descriptor() ([]byte, []int) {
|
|
return file_shop_shop_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ShopGetListResp) GetSType() ShopType {
|
|
if x != nil {
|
|
return x.SType
|
|
}
|
|
return ShopType_Null
|
|
}
|
|
|
|
func (x *ShopGetListResp) GetIsManualRefresh() bool {
|
|
if x != nil {
|
|
return x.IsManualRefresh
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ShopGetListResp) GetGoods() []*ShopItem {
|
|
if x != nil {
|
|
return x.Goods
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ShopGetListResp) GetSurplusRefreshNum() int32 {
|
|
if x != nil {
|
|
return x.SurplusRefreshNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//购买商品 请求
|
|
type ShopBuyReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ShopType ShopType `protobuf:"varint,1,opt,name=ShopType,proto3,enum=ShopType" json:"ShopType"` //商店类型
|
|
GoodsId int32 `protobuf:"varint,2,opt,name=GoodsId,proto3" json:"GoodsId"` //商品Id
|
|
BuyNum int32 `protobuf:"varint,3,opt,name=BuyNum,proto3" json:"BuyNum"` //商品购买数量
|
|
}
|
|
|
|
func (x *ShopBuyReq) Reset() {
|
|
*x = ShopBuyReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ShopBuyReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShopBuyReq) ProtoMessage() {}
|
|
|
|
func (x *ShopBuyReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[3]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShopBuyReq.ProtoReflect.Descriptor instead.
|
|
func (*ShopBuyReq) Descriptor() ([]byte, []int) {
|
|
return file_shop_shop_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ShopBuyReq) GetShopType() ShopType {
|
|
if x != nil {
|
|
return x.ShopType
|
|
}
|
|
return ShopType_Null
|
|
}
|
|
|
|
func (x *ShopBuyReq) GetGoodsId() int32 {
|
|
if x != nil {
|
|
return x.GoodsId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ShopBuyReq) GetBuyNum() int32 {
|
|
if x != nil {
|
|
return x.BuyNum
|
|
}
|
|
return 0
|
|
}
|
|
|
|
//购买商品 回应
|
|
type ShopBuyResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
IsSucc bool `protobuf:"varint,1,opt,name=IsSucc,proto3" json:"IsSucc"` //是否成功
|
|
}
|
|
|
|
func (x *ShopBuyResp) Reset() {
|
|
*x = ShopBuyResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *ShopBuyResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ShopBuyResp) ProtoMessage() {}
|
|
|
|
func (x *ShopBuyResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_shop_shop_msg_proto_msgTypes[4]
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ShopBuyResp.ProtoReflect.Descriptor instead.
|
|
func (*ShopBuyResp) Descriptor() ([]byte, []int) {
|
|
return file_shop_shop_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ShopBuyResp) GetIsSucc() bool {
|
|
if x != nil {
|
|
return x.IsSucc
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_shop_shop_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_shop_shop_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x13, 0x73, 0x68, 0x6f, 0x70, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x73, 0x68, 0x6f, 0x70, 0x2f, 0x73, 0x68, 0x6f, 0x70,
|
|
0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x65, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74,
|
|
0x2f, 0x65, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x22, 0xcb, 0x01, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x70, 0x49, 0x74, 0x65, 0x6d,
|
|
0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x05, 0x49, 0x74,
|
|
0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72,
|
|
0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x25, 0x0a,
|
|
0x07, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b,
|
|
0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x07, 0x43, 0x6f, 0x6e,
|
|
0x73, 0x75, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x53, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x04, 0x53, 0x61, 0x6c, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x4c, 0x65, 0x66, 0x74,
|
|
0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x4c, 0x65,
|
|
0x66, 0x74, 0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x27, 0x0a, 0x07, 0x70, 0x72, 0x65, 0x76,
|
|
0x69, 0x65, 0x77, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x5f, 0x45,
|
|
0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x70, 0x72, 0x65, 0x76, 0x69, 0x65,
|
|
0x77, 0x22, 0x5b, 0x0a, 0x0e, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74,
|
|
0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x05, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x0e, 0x32, 0x09, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x73,
|
|
0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x49, 0x73, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c,
|
|
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x49,
|
|
0x73, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x22, 0xab,
|
|
0x01, 0x0a, 0x0f, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
0x73, 0x70, 0x12, 0x1f, 0x0a, 0x05, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
0x0e, 0x32, 0x09, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x73, 0x54,
|
|
0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x49, 0x73, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x52,
|
|
0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x49, 0x73,
|
|
0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x12, 0x1f, 0x0a,
|
|
0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x53,
|
|
0x68, 0x6f, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x12, 0x2c,
|
|
0x0a, 0x11, 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
|
|
0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x53, 0x75, 0x72, 0x70, 0x6c,
|
|
0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x22, 0x65, 0x0a, 0x0a,
|
|
0x53, 0x68, 0x6f, 0x70, 0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x25, 0x0a, 0x08, 0x53, 0x68,
|
|
0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x53,
|
|
0x68, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x53, 0x68, 0x6f, 0x70, 0x54, 0x79, 0x70,
|
|
0x65, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
|
|
0x28, 0x05, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x42,
|
|
0x75, 0x79, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x42, 0x75, 0x79,
|
|
0x4e, 0x75, 0x6d, 0x22, 0x25, 0x0a, 0x0b, 0x53, 0x68, 0x6f, 0x70, 0x42, 0x75, 0x79, 0x52, 0x65,
|
|
0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x08, 0x52, 0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_shop_shop_msg_proto_rawDescOnce sync.Once
|
|
file_shop_shop_msg_proto_rawDescData = file_shop_shop_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_shop_shop_msg_proto_rawDescGZIP() []byte {
|
|
file_shop_shop_msg_proto_rawDescOnce.Do(func() {
|
|
file_shop_shop_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_shop_shop_msg_proto_rawDescData)
|
|
})
|
|
return file_shop_shop_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_shop_shop_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
|
var file_shop_shop_msg_proto_goTypes = []interface{}{
|
|
(*ShopItem)(nil), // 0: ShopItem
|
|
(*ShopGetListReq)(nil), // 1: ShopGetListReq
|
|
(*ShopGetListResp)(nil), // 2: ShopGetListResp
|
|
(*ShopBuyReq)(nil), // 3: ShopBuyReq
|
|
(*ShopBuyResp)(nil), // 4: ShopBuyResp
|
|
(*UserAssets)(nil), // 5: UserAssets
|
|
(*DB_Equipment)(nil), // 6: DB_Equipment
|
|
(ShopType)(0), // 7: ShopType
|
|
}
|
|
var file_shop_shop_msg_proto_depIdxs = []int32{
|
|
5, // 0: ShopItem.Items:type_name -> UserAssets
|
|
5, // 1: ShopItem.Consume:type_name -> UserAssets
|
|
6, // 2: ShopItem.preview:type_name -> DB_Equipment
|
|
7, // 3: ShopGetListReq.sType:type_name -> ShopType
|
|
7, // 4: ShopGetListResp.sType:type_name -> ShopType
|
|
0, // 5: ShopGetListResp.Goods:type_name -> ShopItem
|
|
7, // 6: ShopBuyReq.ShopType:type_name -> ShopType
|
|
7, // [7:7] is the sub-list for method output_type
|
|
7, // [7:7] is the sub-list for method input_type
|
|
7, // [7:7] is the sub-list for extension type_name
|
|
7, // [7:7] is the sub-list for extension extendee
|
|
0, // [0:7] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_shop_shop_msg_proto_init() }
|
|
func file_shop_shop_msg_proto_init() {
|
|
if File_shop_shop_msg_proto != nil {
|
|
return
|
|
}
|
|
file_shop_shop_db_proto_init()
|
|
file_comm_proto_init()
|
|
file_equipment_equipment_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_shop_shop_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ShopItem); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_shop_shop_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ShopGetListReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_shop_shop_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ShopGetListResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_shop_shop_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ShopBuyReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_shop_shop_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*ShopBuyResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_shop_shop_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 5,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_shop_shop_msg_proto_goTypes,
|
|
DependencyIndexes: file_shop_shop_msg_proto_depIdxs,
|
|
MessageInfos: file_shop_shop_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_shop_shop_msg_proto = out.File
|
|
file_shop_shop_msg_proto_rawDesc = nil
|
|
file_shop_shop_msg_proto_goTypes = nil
|
|
file_shop_shop_msg_proto_depIdxs = nil
|
|
}
|