上传商店购买购买次数重置问题

This commit is contained in:
liwei1dao 2022-09-20 15:37:07 +08:00
parent 714da99c01
commit 68ae162d5c
13 changed files with 784 additions and 660 deletions

View File

@ -14,29 +14,32 @@ func NewAttributeNumeric(pData float32) *AttributeNumeric {
} }
type AttributeNumeric struct { type AttributeNumeric struct {
fixedValue *FixedPoint fixedValue FixedPoint
/// <summary> /// <summary>
/// 基础数值 /// 基础数值
/// </summary> /// </summary>
BaseValue *FixedNumeric BaseValue FixedNumeric
/// <summary> /// <summary>
/// 附加数值 /// 附加数值
/// </summary> /// </summary>
AppendValue *FixedNumeric AppendValue FixedNumeric
/// <summary> /// <summary>
/// 附加百分比数值 /// 附加百分比数值
/// </summary> /// </summary>
ProValue *FixedNumeric ProValue FixedNumeric
/// <summary> /// <summary>
/// Buff附加数值 /// Buff附加数值
/// </summary> /// </summary>
BuffValue *FixedNumeric BuffValue FixedNumeric
/// <summary> /// <summary>
/// Buff附加百分比数值 /// Buff附加百分比数值
/// </summary> /// </summary>
BuffProValue *FixedNumeric BuffProValue FixedNumeric
} }
func (this *AttributeNumeric) Fixed() FixedPoint {
return this.fixedValue
}
func (this *AttributeNumeric) Value() float32 { func (this *AttributeNumeric) Value() float32 {
return this.fixedValue.Scalar() return this.fixedValue.Scalar()
} }

View File

@ -1,33 +1,33 @@
package attribute package attribute
func NewFixedNumeric(pData float32) *FixedNumeric { func NewFixedNumeric(pData float32) FixedNumeric {
fixed := &FixedNumeric{} fixed := FixedNumeric{}
fixed.Set(pData) fixed.Set(pData)
return fixed return fixed
} }
type FixedNumeric struct { type FixedNumeric struct {
baseValue *FixedPoint baseValue FixedPoint
} }
func (this *FixedNumeric) Set(value float32) float32 { func (this FixedNumeric) Set(value float32) float32 {
this.baseValue = NewFixedPoint(value) this.baseValue = NewFixedPoint(value)
return this.baseValue.Scalar() return this.baseValue.Scalar()
} }
func (this *FixedNumeric) Fixed() *FixedPoint { func (this FixedNumeric) Fixed() FixedPoint {
return this.baseValue return this.baseValue
} }
func (this *FixedNumeric) Value() float32 { func (this FixedNumeric) Value() float32 {
return this.baseValue.Scalar() return this.baseValue.Scalar()
} }
/// <summary> /// <summary>
/// 减少基本值 /// 减少基本值
/// </summary> /// </summary>
func (this *FixedNumeric) Minus(value float32) float32 { func (this FixedNumeric) Minus(value float32) float32 {
// this.baseValue -= value this.baseValue.Reduce(value)
// if this.baseValue.Scalar < 0 { if this.baseValue.Scalar() < 0 {
// this.baseValue = 0 this.baseValue.SetInt(0)
// } }
return this.baseValue.Scalar() return this.baseValue.Scalar()
} }

View File

@ -8,8 +8,8 @@ import (
//基准倍数 //基准倍数
const CARDINAL_NUMBER int = 10000 const CARDINAL_NUMBER int = 10000
func NewFixedPoint(value float32) *FixedPoint { func NewFixedPoint(value float32) FixedPoint {
return &FixedPoint{ return FixedPoint{
rawValue: int(math.Round(float64(value * float32(CARDINAL_NUMBER)))), rawValue: int(math.Round(float64(value * float32(CARDINAL_NUMBER)))),
} }
} }
@ -18,40 +18,54 @@ type FixedPoint struct {
rawValue int rawValue int
} }
func (this *FixedPoint) Scalar() float32 { func (this FixedPoint) SetInt(v int) {
this.rawValue = v
}
func (this FixedPoint) Scalar() float32 {
return float32(this.rawValue) * 0.0001 return float32(this.rawValue) * 0.0001
} }
func (this *FixedPoint) ToInt() int { func (this FixedPoint) ToInt() int {
return this.rawValue / CARDINAL_NUMBER return this.rawValue / CARDINAL_NUMBER
} }
func (this *FixedPoint) ToFloat() float32 { func (this FixedPoint) ToFloat() float32 {
return this.Scalar() return this.Scalar()
} }
func (this *FixedPoint) ToString() string { func (this FixedPoint) ToString() string {
return fmt.Sprintf("%f", this.Scalar()) return fmt.Sprintf("%f", this.Scalar())
} }
///+ /// -
func (this *FixedPoint) Add(y *FixedPoint) *FixedPoint { func (this FixedPoint) Reduce(v float32) {
this.rawValue += y.rawValue y := NewFixedPoint(v)
return this this.rawValue = this.rawValue - y.rawValue
} }
///- /// +
func (this *FixedPoint) Reduce(y *FixedPoint) *FixedPoint { func FixedPoint_Add(x, y FixedPoint) FixedPoint {
this.rawValue -= y.rawValue result := FixedPoint{}
return this result.rawValue = x.rawValue + y.rawValue
return result
} }
///* /// -
func (this *FixedPoint) Multiply(y *FixedPoint) *FixedPoint { func FixedPoint_Reduce(x, y FixedPoint) FixedPoint {
this.rawValue = (this.rawValue * y.rawValue) / CARDINAL_NUMBER result := FixedPoint{}
return this result.rawValue = x.rawValue - y.rawValue
return result
}
/// *
func FixedPoint_Multiply(x, y FixedPoint) FixedPoint {
result := FixedPoint{}
result.rawValue = (x.rawValue * y.rawValue) / CARDINAL_NUMBER
return result
} }
/// / /// /
func (this *FixedPoint) Divide(y *FixedPoint) *FixedPoint { func FixedPoint_Divide(x, y FixedPoint) FixedPoint {
this.rawValue = (this.rawValue * CARDINAL_NUMBER) / y.rawValue result := FixedPoint{}
return this result.rawValue = (x.rawValue * CARDINAL_NUMBER) / (y.rawValue)
return result
} }

View File

@ -46,3 +46,10 @@ func (this *HealthPoint) MaxValue() int32 {
func (this *HealthPoint) Minus(value float32) { func (this *HealthPoint) Minus(value float32) {
this.Hp.Minus(value) this.Hp.Minus(value)
} }
/// <summary>
/// 剩余血量百分比
/// </summary>
func (this *HealthPoint) Percent() float32 {
return FixedPoint_Divide(this.Hp.Fixed(), this.CurrMaxHp.Fixed()).Scalar()
}

View File

@ -6,9 +6,7 @@ import (
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"go_dreamfactory/utils" "go_dreamfactory/utils"
"math" "math"
"time"
"go.mongodb.org/mongo-driver/bson/primitive"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
) )
@ -24,9 +22,10 @@ func (this *apiComp) BuyCheck(session comm.IUserSession, req *pb.ShopBuyReq) (co
func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb.ErrorCode, data proto.Message) { func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb.ErrorCode, data proto.Message) {
var ( var (
err error err error
ok bool
conf *cfg.GameShopitemData conf *cfg.GameShopitemData
shopitem *pb.DBShopItem shopData *pb.DBShop
filed string
record *pb.UserShopData
need []*cfg.Gameatn need []*cfg.Gameatn
give []*cfg.Gameatn give []*cfg.Gameatn
) )
@ -38,14 +37,9 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb
code = pb.ErrorCode_SystemError code = pb.ErrorCode_SystemError
return return
} }
if shopitem, ok = this.module.modelShopItems.QueryUserShopDataByGoodId(session.GetUserId(), req.GoodsId); !ok { //没有购买记录 if shopData, err = this.module.modelShop.QueryUserShopData(session.GetUserId()); err != nil { //没有购买记录
shopitem = &pb.DBShopItem{ code = pb.ErrorCode_DBError
Id: primitive.NewObjectID().Hex(), return
Uid: session.GetUserId(),
GoodsId: conf.Key,
BuyNum: map[int32]int32{1: 0, 2: 0, 3: 0, 4: 0, 5: 0},
LastBuyTime: map[int32]int64{1: 0, 2: 0, 3: 0, 4: 0, 5: 0},
}
} }
need = make([]*cfg.Gameatn, len(conf.Need)) need = make([]*cfg.Gameatn, len(conf.Need))
for i, v := range conf.Need { for i, v := range conf.Need {
@ -71,21 +65,40 @@ func (this *apiComp) Buy(session comm.IUserSession, req *pb.ShopBuyReq) (code pb
if code = this.module.DispenseRes(session, give, true); code != pb.ErrorCode_Success { if code = this.module.DispenseRes(session, give, true); code != pb.ErrorCode_Success {
return return
} }
if conf.Buyminnum-shopitem.BuyNum[int32(req.ShopType)] < req.BuyNum { switch req.ShopType {
case pb.ShopType_GoldShop:
filed = "goldShop"
record = shopData.GoldShop
break
case pb.ShopType_DiamondShop:
filed = "diamondShop"
record = shopData.DiamondShop
break
case pb.ShopType_PVEShop:
filed = "pveShop"
record = shopData.PveShop
break
case pb.ShopType_PVPShop:
filed = "pvpShop"
record = shopData.PvpShop
break
case pb.ShopType_AllianceShop:
filed = "allianceShop"
record = shopData.AllianceShop
break
}
if record == nil {
record = &pb.UserShopData{
Buy: map[int32]int32{},
}
}
if conf.Buyminnum-record.Buy[req.GoodsId] < req.BuyNum {
code = pb.ErrorCode_ShopGoodsIsSoldOut code = pb.ErrorCode_ShopGoodsIsSoldOut
return return
} }
record.Buy[req.GoodsId] += req.BuyNum
this.module.modelShop.Change(session.GetUserId(), map[string]interface{}{filed: record})
shopitem.BuyNum[int32(req.ShopType)] += req.BuyNum
shopitem.LastBuyTime[int32(req.ShopType)] = time.Now().Unix()
if !ok {
this.module.modelShopItems.AddList(session.GetUserId(), shopitem.Id, shopitem)
} else {
this.module.modelShopItems.ChangeList(session.GetUserId(), shopitem.Id, map[string]interface{}{
"buyNum": shopitem.BuyNum,
"lastBuyTime": shopitem.LastBuyTime,
})
}
//随机任务 //随机任务
this.module.ModuleRtask.SendToRtask(session, comm.Rtype64, 1) this.module.ModuleRtask.SendToRtask(session, comm.Rtype64, 1)
for _, v := range give { for _, v := range give {

View File

@ -2,7 +2,6 @@ package shop
import ( import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/sys/mgo"
"go_dreamfactory/pb" "go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"time" "time"
@ -28,7 +27,6 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
udata *pb.DBUser udata *pb.DBUser
sdata *pb.UserShopData sdata *pb.UserShopData
items []*cfg.GameShopitemData items []*cfg.GameShopitemData
ushoputem map[int32]*pb.DBShopItem
goods []*pb.ShopItem goods []*pb.ShopItem
tdata time.Duration tdata time.Duration
ltime time.Duration ltime time.Duration
@ -37,22 +35,19 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
if code = this.GetlistCheck(session, req); code != pb.ErrorCode_Success { if code = this.GetlistCheck(session, req); code != pb.ErrorCode_Success {
return return
} }
if shopconf, err = this.module.configure.GetShopConfigure(int32(req.SType)); err != nil && err != mgo.MongodbNil { if shopconf, err = this.module.configure.GetShopConfigure(int32(req.SType)); err != nil {
code = pb.ErrorCode_SystemError code = pb.ErrorCode_ConfigNoFound
return return
} }
if shopData, err = this.module.modelShop.QueryUserShopData(session.GetUserId()); err != nil && err != mgo.MongodbNil { if shopData, err = this.module.modelShop.QueryUserShopData(session.GetUserId()); err != nil {
code = pb.ErrorCode_SystemError code = pb.ErrorCode_DBError
return return
} }
if udata = this.module.ModuleUser.GetUser(session.GetUserId()); udata == nil { if udata = this.module.ModuleUser.GetUser(session.GetUserId()); udata == nil {
code = pb.ErrorCode_SystemError code = pb.ErrorCode_SystemError
return return
} }
if ushoputem, err = this.module.modelShopItems.QueryUserShopData(session.GetUserId()); err != nil {
code = pb.ErrorCode_SystemError
return
}
switch req.SType { switch req.SType {
case pb.ShopType_GoldShop: case pb.ShopType_GoldShop:
sdata = shopData.GoldShop sdata = shopData.GoldShop
@ -76,7 +71,9 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
break break
} }
if sdata == nil { if sdata == nil {
sdata = &pb.UserShopData{} sdata = &pb.UserShopData{
Buy: map[int32]int32{},
}
} }
if shopconf.Rnum > 0 { if shopconf.Rnum > 0 {
leftrefnum = shopconf.Rnum - sdata.ManualRefreshNum leftrefnum = shopconf.Rnum - sdata.ManualRefreshNum
@ -120,7 +117,8 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
} }
items = append(items, randomGoods(_items)) items = append(items, randomGoods(_items))
} }
goods = transGoods(req.SType, items, ushoputem) sdata.Buy = make(map[int32]int32)
goods = transGoods(items, sdata.Buy)
sdata.LastRefreshTime = time.Now().Unix() sdata.LastRefreshTime = time.Now().Unix()
sdata.ManualRefreshNum++ sdata.ManualRefreshNum++
sdata.Items = make([]int32, len(items)) sdata.Items = make([]int32, len(items))
@ -138,7 +136,8 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
} }
items = append(items, randomGoods(_items)) items = append(items, randomGoods(_items))
} }
goods = transGoods(req.SType, items, ushoputem) sdata.Buy = make(map[int32]int32)
goods = transGoods(items, sdata.Buy)
sdata.LastRefreshTime = time.Now().Unix() sdata.LastRefreshTime = time.Now().Unix()
sdata.Items = make([]int32, len(items)) sdata.Items = make([]int32, len(items))
for i, v := range items { for i, v := range items {
@ -150,7 +149,7 @@ func (this *apiComp) Getlist(session comm.IUserSession, req *pb.ShopGetListReq)
code = pb.ErrorCode_SystemError code = pb.ErrorCode_SystemError
return return
} }
goods = transGoods(req.SType, items, ushoputem) goods = transGoods(items, sdata.Buy)
} }
} else { } else {
code = pb.ErrorCode_ReqParameterError code = pb.ErrorCode_ReqParameterError

View File

@ -31,19 +31,19 @@ func randomGoods(goods []*cfg.GameShopitemData) (result *cfg.GameShopitemData) {
} }
//转换商品对象 //转换商品对象
func transGoods(stype pb.ShopType, goods []*cfg.GameShopitemData, ushoputem map[int32]*pb.DBShopItem) (result []*pb.ShopItem) { func transGoods(goods []*cfg.GameShopitemData, buy map[int32]int32) (result []*pb.ShopItem) {
result = make([]*pb.ShopItem, len(goods)) result = make([]*pb.ShopItem, len(goods))
ok := false // ok := false
uitem := &pb.DBShopItem{} // uitem := &pb.DBShopItem{}
for i, v := range goods { for i, v := range goods {
if uitem, ok = ushoputem[v.Key]; !ok { // if uitem, ok = ushoputem[v.Key]; !ok {
uitem = &pb.DBShopItem{} // uitem = &pb.DBShopItem{}
} // }
result[i] = &pb.ShopItem{ result[i] = &pb.ShopItem{
GoodsId: v.Key, GoodsId: v.Key,
Sale: int32(v.Sale), Sale: int32(v.Sale),
} }
result[i].LeftBuyNum = v.Buyminnum - uitem.BuyNum[int32(stype)] result[i].LeftBuyNum = v.Buyminnum - buy[v.Key]
result[i].Items = make([]*pb.UserAssets, len(v.Iteminfo)) result[i].Items = make([]*pb.UserAssets, len(v.Iteminfo))
for i1, v1 := range v.Iteminfo { for i1, v1 := range v.Iteminfo {
result[i].Items[i1] = &pb.UserAssets{ result[i].Items[i1] = &pb.UserAssets{

View File

@ -3,6 +3,7 @@ package shop
import ( import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/core" "go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/mgo"
"go_dreamfactory/modules" "go_dreamfactory/modules"
"go_dreamfactory/pb" "go_dreamfactory/pb"
@ -31,8 +32,9 @@ func (this *modelShopComp) Init(service core.IService, module core.IModule, comp
//查询用户装备数据 //查询用户装备数据
func (this *modelShopComp) QueryUserShopData(uId string) (data *pb.DBShop, err error) { func (this *modelShopComp) QueryUserShopData(uId string) (data *pb.DBShop, err error) {
data = &pb.DBShop{} data = &pb.DBShop{}
if err = this.Get(uId, data); err != nil { if err = this.Get(uId, data); err != nil && err != mgo.MongodbNil {
this.module.Errorf("err:%v", err) this.module.Errorf("err:%v", err)
} }
err = nil
return return
} }

View File

@ -1,72 +0,0 @@
package shop
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/mgo"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/x/bsonx"
)
///商店物品记录 数据组件
type modelShopItemsComp struct {
modules.MCompModel
module *Shop
}
//组件初始化接口
func (this *modelShopItemsComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, opt core.IModuleOptions) (err error) {
this.MCompModel.Init(service, module, comp, opt)
this.module = module.(*Shop)
this.TableName = comm.TableShopitems
//创建uid索引
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}, {Key: "goodsid", Value: bsonx.Int32(1)}},
})
return
}
//查询用户装备数据
func (this *modelShopItemsComp) QueryUserShopData(uId string) (result map[int32]*pb.DBShopItem, err error) {
result = make(map[int32]*pb.DBShopItem)
data := make([]*pb.DBShopItem, 0)
if err = this.GetList(uId, &data); err != nil && err != mgo.MongodbNil {
this.module.Errorf("err:%v", err)
return
}
err = nil
for _, v := range data {
result[v.GoodsId] = v
}
return
}
//查询用户装备数据
func (this *modelShopItemsComp) QueryUserShopDataByGoodId(uId string, goodId int32) (result *pb.DBShopItem, ok bool) {
var (
err error
data []*pb.DBShopItem
)
data = make([]*pb.DBShopItem, 0)
if err = this.GetList(uId, &data); err != nil {
this.module.Errorf("err%v", err)
return
}
for _, v := range data {
if v.GoodsId == goodId {
result = v
ok = true
return
}
}
return
}
//添加用户的商品购买记录
func (this *modelShopItemsComp) AddUserShopItemData(data *pb.DBShopItem) (err error) {
err = this.AddList(data.Uid, data.Id, data)
return
}

View File

@ -22,7 +22,6 @@ type Shop struct {
api_comp *apiComp api_comp *apiComp
configure *configureComp configure *configureComp
modelShop *modelShopComp modelShop *modelShopComp
modelShopItems *modelShopItemsComp
} }
//模块名 //模块名
@ -41,12 +40,10 @@ func (this *Shop) OnInstallComp() {
this.ModuleBase.OnInstallComp() this.ModuleBase.OnInstallComp()
this.api_comp = this.RegisterComp(new(apiComp)).(*apiComp) this.api_comp = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelShop = this.RegisterComp(new(modelShopComp)).(*modelShopComp) this.modelShop = this.RegisterComp(new(modelShopComp)).(*modelShopComp)
this.modelShopItems = this.RegisterComp(new(modelShopItemsComp)).(*modelShopItemsComp)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
} }
//Event------------------------------------------------------------------------------------------------------------ //Event------------------------------------------------------------------------------------------------------------
func (this *Shop) EventUserOffline(session comm.IUserSession) { func (this *Shop) EventUserOffline(session comm.IUserSession) {
this.modelShop.Del(session.GetUserId(), db.SetDBMgoLog(false)) this.modelShop.Del(session.GetUserId(), db.SetDBMgoLog(false))
this.modelShopItems.BatchDelLists(session.GetUserId())
} }

View File

@ -1162,6 +1162,101 @@ func (x *HeroAwakenResp) GetHero() *DBHero {
return nil return nil
} }
//抽卡
type HeroChoukaReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
HeroIds []string `protobuf:"bytes,1,rep,name=heroIds,proto3" json:"heroIds"`
}
func (x *HeroChoukaReq) Reset() {
*x = HeroChoukaReq{}
if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HeroChoukaReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeroChoukaReq) ProtoMessage() {}
func (x *HeroChoukaReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[22]
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 HeroChoukaReq.ProtoReflect.Descriptor instead.
func (*HeroChoukaReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{22}
}
func (x *HeroChoukaReq) GetHeroIds() []string {
if x != nil {
return x.HeroIds
}
return nil
}
type HeroChoukaResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Heroes []*DBHero `protobuf:"bytes,1,rep,name=heroes,proto3" json:"heroes"`
}
func (x *HeroChoukaResp) Reset() {
*x = HeroChoukaResp{}
if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HeroChoukaResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeroChoukaResp) ProtoMessage() {}
func (x *HeroChoukaResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[23]
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 HeroChoukaResp.ProtoReflect.Descriptor instead.
func (*HeroChoukaResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{23}
}
func (x *HeroChoukaResp) GetHeroes() []*DBHero {
if x != nil {
return x.Heroes
}
return nil
}
//英雄属性推送 //英雄属性推送
type HeroPropertyPush struct { type HeroPropertyPush struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -1176,7 +1271,7 @@ type HeroPropertyPush struct {
func (x *HeroPropertyPush) Reset() { func (x *HeroPropertyPush) Reset() {
*x = HeroPropertyPush{} *x = HeroPropertyPush{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[22] mi := &file_hero_hero_msg_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1189,7 +1284,7 @@ func (x *HeroPropertyPush) String() string {
func (*HeroPropertyPush) ProtoMessage() {} func (*HeroPropertyPush) ProtoMessage() {}
func (x *HeroPropertyPush) ProtoReflect() protoreflect.Message { func (x *HeroPropertyPush) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[22] mi := &file_hero_hero_msg_proto_msgTypes[24]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1202,7 +1297,7 @@ func (x *HeroPropertyPush) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroPropertyPush.ProtoReflect.Descriptor instead. // Deprecated: Use HeroPropertyPush.ProtoReflect.Descriptor instead.
func (*HeroPropertyPush) Descriptor() ([]byte, []int) { func (*HeroPropertyPush) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{22} return file_hero_hero_msg_proto_rawDescGZIP(), []int{24}
} }
func (x *HeroPropertyPush) GetHeroId() string { func (x *HeroPropertyPush) GetHeroId() string {
@ -1238,7 +1333,7 @@ type HeroLockReq struct {
func (x *HeroLockReq) Reset() { func (x *HeroLockReq) Reset() {
*x = HeroLockReq{} *x = HeroLockReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[23] mi := &file_hero_hero_msg_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1251,7 +1346,7 @@ func (x *HeroLockReq) String() string {
func (*HeroLockReq) ProtoMessage() {} func (*HeroLockReq) ProtoMessage() {}
func (x *HeroLockReq) ProtoReflect() protoreflect.Message { func (x *HeroLockReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[23] mi := &file_hero_hero_msg_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1264,7 +1359,7 @@ func (x *HeroLockReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroLockReq.ProtoReflect.Descriptor instead. // Deprecated: Use HeroLockReq.ProtoReflect.Descriptor instead.
func (*HeroLockReq) Descriptor() ([]byte, []int) { func (*HeroLockReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{23} return file_hero_hero_msg_proto_rawDescGZIP(), []int{25}
} }
func (x *HeroLockReq) GetHeroid() string { func (x *HeroLockReq) GetHeroid() string {
@ -1286,7 +1381,7 @@ type HeroLockResp struct {
func (x *HeroLockResp) Reset() { func (x *HeroLockResp) Reset() {
*x = HeroLockResp{} *x = HeroLockResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[24] mi := &file_hero_hero_msg_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1299,7 +1394,7 @@ func (x *HeroLockResp) String() string {
func (*HeroLockResp) ProtoMessage() {} func (*HeroLockResp) ProtoMessage() {}
func (x *HeroLockResp) ProtoReflect() protoreflect.Message { func (x *HeroLockResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[24] mi := &file_hero_hero_msg_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1312,7 +1407,7 @@ func (x *HeroLockResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroLockResp.ProtoReflect.Descriptor instead. // Deprecated: Use HeroLockResp.ProtoReflect.Descriptor instead.
func (*HeroLockResp) Descriptor() ([]byte, []int) { func (*HeroLockResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{24} return file_hero_hero_msg_proto_rawDescGZIP(), []int{26}
} }
func (x *HeroLockResp) GetHero() *DBHero { func (x *HeroLockResp) GetHero() *DBHero {
@ -1337,7 +1432,7 @@ type HeroGetSpecifiedReq struct {
func (x *HeroGetSpecifiedReq) Reset() { func (x *HeroGetSpecifiedReq) Reset() {
*x = HeroGetSpecifiedReq{} *x = HeroGetSpecifiedReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[25] mi := &file_hero_hero_msg_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1350,7 +1445,7 @@ func (x *HeroGetSpecifiedReq) String() string {
func (*HeroGetSpecifiedReq) ProtoMessage() {} func (*HeroGetSpecifiedReq) ProtoMessage() {}
func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message { func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[25] mi := &file_hero_hero_msg_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1363,7 +1458,7 @@ func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroGetSpecifiedReq.ProtoReflect.Descriptor instead. // Deprecated: Use HeroGetSpecifiedReq.ProtoReflect.Descriptor instead.
func (*HeroGetSpecifiedReq) Descriptor() ([]byte, []int) { func (*HeroGetSpecifiedReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{25} return file_hero_hero_msg_proto_rawDescGZIP(), []int{27}
} }
func (x *HeroGetSpecifiedReq) GetHeroCoinfigID() string { func (x *HeroGetSpecifiedReq) GetHeroCoinfigID() string {
@ -1405,7 +1500,7 @@ type HeroGetSpecifiedResp struct {
func (x *HeroGetSpecifiedResp) Reset() { func (x *HeroGetSpecifiedResp) Reset() {
*x = HeroGetSpecifiedResp{} *x = HeroGetSpecifiedResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[26] mi := &file_hero_hero_msg_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1418,7 +1513,7 @@ func (x *HeroGetSpecifiedResp) String() string {
func (*HeroGetSpecifiedResp) ProtoMessage() {} func (*HeroGetSpecifiedResp) ProtoMessage() {}
func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message { func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[26] mi := &file_hero_hero_msg_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1431,7 +1526,7 @@ func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroGetSpecifiedResp.ProtoReflect.Descriptor instead. // Deprecated: Use HeroGetSpecifiedResp.ProtoReflect.Descriptor instead.
func (*HeroGetSpecifiedResp) Descriptor() ([]byte, []int) { func (*HeroGetSpecifiedResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{26} return file_hero_hero_msg_proto_rawDescGZIP(), []int{28}
} }
func (x *HeroGetSpecifiedResp) GetHero() *DBHero { func (x *HeroGetSpecifiedResp) GetHero() *DBHero {
@ -1454,7 +1549,7 @@ type HeroDrawCardReq struct {
func (x *HeroDrawCardReq) Reset() { func (x *HeroDrawCardReq) Reset() {
*x = HeroDrawCardReq{} *x = HeroDrawCardReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[27] mi := &file_hero_hero_msg_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1467,7 +1562,7 @@ func (x *HeroDrawCardReq) String() string {
func (*HeroDrawCardReq) ProtoMessage() {} func (*HeroDrawCardReq) ProtoMessage() {}
func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message { func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[27] mi := &file_hero_hero_msg_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1480,7 +1575,7 @@ func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroDrawCardReq.ProtoReflect.Descriptor instead. // Deprecated: Use HeroDrawCardReq.ProtoReflect.Descriptor instead.
func (*HeroDrawCardReq) Descriptor() ([]byte, []int) { func (*HeroDrawCardReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{27} return file_hero_hero_msg_proto_rawDescGZIP(), []int{29}
} }
func (x *HeroDrawCardReq) GetDrawType() int32 { func (x *HeroDrawCardReq) GetDrawType() int32 {
@ -1508,7 +1603,7 @@ type HeroDrawCardResp struct {
func (x *HeroDrawCardResp) Reset() { func (x *HeroDrawCardResp) Reset() {
*x = HeroDrawCardResp{} *x = HeroDrawCardResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[28] mi := &file_hero_hero_msg_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1521,7 +1616,7 @@ func (x *HeroDrawCardResp) String() string {
func (*HeroDrawCardResp) ProtoMessage() {} func (*HeroDrawCardResp) ProtoMessage() {}
func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message { func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[28] mi := &file_hero_hero_msg_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1534,7 +1629,7 @@ func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroDrawCardResp.ProtoReflect.Descriptor instead. // Deprecated: Use HeroDrawCardResp.ProtoReflect.Descriptor instead.
func (*HeroDrawCardResp) Descriptor() ([]byte, []int) { func (*HeroDrawCardResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{28} return file_hero_hero_msg_proto_rawDescGZIP(), []int{30}
} }
func (x *HeroDrawCardResp) GetHeroes() []string { func (x *HeroDrawCardResp) GetHeroes() []string {
@ -1556,7 +1651,7 @@ type HeroChangePush struct {
func (x *HeroChangePush) Reset() { func (x *HeroChangePush) Reset() {
*x = HeroChangePush{} *x = HeroChangePush{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[29] mi := &file_hero_hero_msg_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1569,7 +1664,7 @@ func (x *HeroChangePush) String() string {
func (*HeroChangePush) ProtoMessage() {} func (*HeroChangePush) ProtoMessage() {}
func (x *HeroChangePush) ProtoReflect() protoreflect.Message { func (x *HeroChangePush) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[29] mi := &file_hero_hero_msg_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1582,7 +1677,7 @@ func (x *HeroChangePush) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroChangePush.ProtoReflect.Descriptor instead. // Deprecated: Use HeroChangePush.ProtoReflect.Descriptor instead.
func (*HeroChangePush) Descriptor() ([]byte, []int) { func (*HeroChangePush) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{29} return file_hero_hero_msg_proto_rawDescGZIP(), []int{31}
} }
func (x *HeroChangePush) GetList() []*DBHero { func (x *HeroChangePush) GetList() []*DBHero {
@ -1690,53 +1785,59 @@ var file_hero_hero_msg_proto_rawDesc = []byte{
0x62, 0x6a, 0x49, 0x44, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x41, 0x77, 0x61, 0x6b, 0x62, 0x6a, 0x49, 0x44, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x41, 0x77, 0x61, 0x6b,
0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x65, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68,
0x65, 0x72, 0x6f, 0x22, 0xaa, 0x02, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x6f, 0x22, 0x29, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x68, 0x6f, 0x75, 0x6b,
0x65, 0x72, 0x74, 0x79, 0x50, 0x75, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x61, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x73, 0x18,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x73, 0x22, 0x31,
0x12, 0x3b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x02, 0x20, 0x03, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x68, 0x6f, 0x75, 0x6b, 0x61, 0x52, 0x65, 0x73, 0x70,
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x12, 0x1f, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x79, 0x50, 0x75, 0x73, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65,
0x74, 0x72, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x44, 0x0a, 0x73, 0x22, 0xaa, 0x02, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72,
0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x03, 0x20, 0x03, 0x74, 0x79, 0x50, 0x75, 0x73, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64,
0x28, 0x0b, 0x32, 0x22, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x64, 0x12, 0x3b,
0x79, 0x50, 0x75, 0x73, 0x68, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x32, 0x1f, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x50,
0x72, 0x74, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x75, 0x73, 0x68, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x79, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x44, 0x0a, 0x0b, 0x61,
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x22, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x50,
0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x75, 0x73, 0x68, 0x2e, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74,
0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x22, 0x25, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e,
0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74,
0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x68, 0x65, 0x72, 0x6f, 0x22, 0x77, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x25,
0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a,
0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68,
0x28, 0x09, 0x52, 0x0d, 0x68, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4c, 0x6f, 0x63,
0x44, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20,
0x05, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61,
0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a,
0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x33, 0x0a,
0x14, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65,
0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65,
0x72, 0x6f, 0x22, 0x4b, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x6f, 0x22, 0x77, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65,
0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x65, 0x72,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x52, 0x0d, 0x68, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x12,
0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
0x2a, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18,
0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
0x03, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x33, 0x0a, 0x14, 0x48,
0x65, 0x72, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52,
0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x22, 0x4b, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64,
0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12,
0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x05, 0x52, 0x09, 0x64, 0x72, 0x61, 0x77, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2a, 0x0a,
0x10, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73,
0x70, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x65, 0x72,
0x6f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x6c,
0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65,
0x72, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -1751,7 +1852,7 @@ func file_hero_hero_msg_proto_rawDescGZIP() []byte {
return file_hero_hero_msg_proto_rawDescData return file_hero_hero_msg_proto_rawDescData
} }
var file_hero_hero_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 32) var file_hero_hero_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 34)
var file_hero_hero_msg_proto_goTypes = []interface{}{ var file_hero_hero_msg_proto_goTypes = []interface{}{
(*HeroInfoReq)(nil), // 0: HeroInfoReq (*HeroInfoReq)(nil), // 0: HeroInfoReq
(*HeroInfoResp)(nil), // 1: HeroInfoResp (*HeroInfoResp)(nil), // 1: HeroInfoResp
@ -1775,43 +1876,46 @@ var file_hero_hero_msg_proto_goTypes = []interface{}{
(*HeroResonanceUseEnergyResp)(nil), // 19: HeroResonanceUseEnergyResp (*HeroResonanceUseEnergyResp)(nil), // 19: HeroResonanceUseEnergyResp
(*HeroAwakenReq)(nil), // 20: HeroAwakenReq (*HeroAwakenReq)(nil), // 20: HeroAwakenReq
(*HeroAwakenResp)(nil), // 21: HeroAwakenResp (*HeroAwakenResp)(nil), // 21: HeroAwakenResp
(*HeroPropertyPush)(nil), // 22: HeroPropertyPush (*HeroChoukaReq)(nil), // 22: HeroChoukaReq
(*HeroLockReq)(nil), // 23: HeroLockReq (*HeroChoukaResp)(nil), // 23: HeroChoukaResp
(*HeroLockResp)(nil), // 24: HeroLockResp (*HeroPropertyPush)(nil), // 24: HeroPropertyPush
(*HeroGetSpecifiedReq)(nil), // 25: HeroGetSpecifiedReq (*HeroLockReq)(nil), // 25: HeroLockReq
(*HeroGetSpecifiedResp)(nil), // 26: HeroGetSpecifiedResp (*HeroLockResp)(nil), // 26: HeroLockResp
(*HeroDrawCardReq)(nil), // 27: HeroDrawCardReq (*HeroGetSpecifiedReq)(nil), // 27: HeroGetSpecifiedReq
(*HeroDrawCardResp)(nil), // 28: HeroDrawCardResp (*HeroGetSpecifiedResp)(nil), // 28: HeroGetSpecifiedResp
(*HeroChangePush)(nil), // 29: HeroChangePush (*HeroDrawCardReq)(nil), // 29: HeroDrawCardReq
nil, // 30: HeroPropertyPush.PropertyEntry (*HeroDrawCardResp)(nil), // 30: HeroDrawCardResp
nil, // 31: HeroPropertyPush.AddPropertyEntry (*HeroChangePush)(nil), // 31: HeroChangePush
(*DBHero)(nil), // 32: DBHero nil, // 32: HeroPropertyPush.PropertyEntry
nil, // 33: HeroPropertyPush.AddPropertyEntry
(*DBHero)(nil), // 34: DBHero
} }
var file_hero_hero_msg_proto_depIdxs = []int32{ var file_hero_hero_msg_proto_depIdxs = []int32{
32, // 0: HeroInfoResp.base:type_name -> DBHero 34, // 0: HeroInfoResp.base:type_name -> DBHero
32, // 1: HeroListResp.list:type_name -> DBHero 34, // 1: HeroListResp.list:type_name -> DBHero
5, // 2: HeroStrengthenUplvReq.expCards:type_name -> MapStringInt32 5, // 2: HeroStrengthenUplvReq.expCards:type_name -> MapStringInt32
32, // 3: HeroStrengthenUplvResp.hero:type_name -> DBHero 34, // 3: HeroStrengthenUplvResp.hero:type_name -> DBHero
8, // 4: HeroStrengthenUpStarReq.hero:type_name -> CostCardData 8, // 4: HeroStrengthenUpStarReq.hero:type_name -> CostCardData
8, // 5: HeroStrengthenUpStarReq.heroRace:type_name -> CostCardData 8, // 5: HeroStrengthenUpStarReq.heroRace:type_name -> CostCardData
32, // 6: HeroStrengthenUpStarResp.hero:type_name -> DBHero 34, // 6: HeroStrengthenUpStarResp.hero:type_name -> DBHero
32, // 7: HeroStrengthenUpSkillResp.hero:type_name -> DBHero 34, // 7: HeroStrengthenUpSkillResp.hero:type_name -> DBHero
32, // 8: HeroResonanceResp.hero:type_name -> DBHero 34, // 8: HeroResonanceResp.hero:type_name -> DBHero
32, // 9: HeroResonanceResp.upStarCard:type_name -> DBHero 34, // 9: HeroResonanceResp.upStarCard:type_name -> DBHero
32, // 10: HeroResonanceResetResp.hero:type_name -> DBHero 34, // 10: HeroResonanceResetResp.hero:type_name -> DBHero
17, // 11: HeroResonanceUseEnergyReq.energy:type_name -> EnergyData 17, // 11: HeroResonanceUseEnergyReq.energy:type_name -> EnergyData
32, // 12: HeroResonanceUseEnergyResp.hero:type_name -> DBHero 34, // 12: HeroResonanceUseEnergyResp.hero:type_name -> DBHero
32, // 13: HeroAwakenResp.hero:type_name -> DBHero 34, // 13: HeroAwakenResp.hero:type_name -> DBHero
30, // 14: HeroPropertyPush.property:type_name -> HeroPropertyPush.PropertyEntry 34, // 14: HeroChoukaResp.heroes:type_name -> DBHero
31, // 15: HeroPropertyPush.addProperty:type_name -> HeroPropertyPush.AddPropertyEntry 32, // 15: HeroPropertyPush.property:type_name -> HeroPropertyPush.PropertyEntry
32, // 16: HeroLockResp.hero:type_name -> DBHero 33, // 16: HeroPropertyPush.addProperty:type_name -> HeroPropertyPush.AddPropertyEntry
32, // 17: HeroGetSpecifiedResp.hero:type_name -> DBHero 34, // 17: HeroLockResp.hero:type_name -> DBHero
32, // 18: HeroChangePush.list:type_name -> DBHero 34, // 18: HeroGetSpecifiedResp.hero:type_name -> DBHero
19, // [19:19] is the sub-list for method output_type 34, // 19: HeroChangePush.list:type_name -> DBHero
19, // [19:19] is the sub-list for method input_type 20, // [20:20] is the sub-list for method output_type
19, // [19:19] is the sub-list for extension type_name 20, // [20:20] is the sub-list for method input_type
19, // [19:19] is the sub-list for extension extendee 20, // [20:20] is the sub-list for extension type_name
0, // [0:19] is the sub-list for field type_name 20, // [20:20] is the sub-list for extension extendee
0, // [0:20] is the sub-list for field type_name
} }
func init() { file_hero_hero_msg_proto_init() } func init() { file_hero_hero_msg_proto_init() }
@ -2086,7 +2190,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroPropertyPush); i { switch v := v.(*HeroChoukaReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2098,7 +2202,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroLockReq); i { switch v := v.(*HeroChoukaResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2110,7 +2214,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroLockResp); i { switch v := v.(*HeroPropertyPush); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2122,7 +2226,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroGetSpecifiedReq); i { switch v := v.(*HeroLockReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2134,7 +2238,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroGetSpecifiedResp); i { switch v := v.(*HeroLockResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2146,7 +2250,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardReq); i { switch v := v.(*HeroGetSpecifiedReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2158,7 +2262,7 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardResp); i { switch v := v.(*HeroGetSpecifiedResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -2170,6 +2274,30 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hero_hero_msg_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hero_hero_msg_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroChangePush); i { switch v := v.(*HeroChangePush); i {
case 0: case 0:
return &v.state return &v.state
@ -2188,7 +2316,7 @@ func file_hero_hero_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_hero_hero_msg_proto_rawDesc, RawDescriptor: file_hero_hero_msg_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 32, NumMessages: 34,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

@ -86,6 +86,7 @@ type UserShopData struct {
LastRefreshTime int64 `protobuf:"varint,1,opt,name=LastRefreshTime,proto3" json:"LastRefreshTime"` //最后一次刷新时间 LastRefreshTime int64 `protobuf:"varint,1,opt,name=LastRefreshTime,proto3" json:"LastRefreshTime"` //最后一次刷新时间
ManualRefreshNum int32 `protobuf:"varint,2,opt,name=ManualRefreshNum,proto3" json:"ManualRefreshNum"` //手动刷新次数 ManualRefreshNum int32 `protobuf:"varint,2,opt,name=ManualRefreshNum,proto3" json:"ManualRefreshNum"` //手动刷新次数
Items []int32 `protobuf:"varint,3,rep,packed,name=Items,proto3" json:"Items"` //商品列表 Items []int32 `protobuf:"varint,3,rep,packed,name=Items,proto3" json:"Items"` //商品列表
Buy map[int32]int32 `protobuf:"bytes,4,rep,name=buy,proto3" json:"buy" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //购买记录
} }
func (x *UserShopData) Reset() { func (x *UserShopData) Reset() {
@ -141,6 +142,13 @@ func (x *UserShopData) GetItems() []int32 {
return nil return nil
} }
func (x *UserShopData) GetBuy() map[int32]int32 {
if x != nil {
return x.Buy
}
return nil
}
type DBShop struct { type DBShop struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@ -236,141 +244,49 @@ func (x *DBShop) GetAllianceShop() *UserShopData {
return nil return nil
} }
type DBShopItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //装备id
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid" bson:"uid"` //装备id
GoodsId int32 `protobuf:"varint,3,opt,name=goodsId,proto3" json:"goodsId" bson:"goodsId"` //商品Id
BuyNum map[int32]int32 `protobuf:"bytes,4,rep,name=buyNum,proto3" json:"buyNum" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"buyNum"` //购买数量
LastBuyTime map[int32]int64 `protobuf:"bytes,5,rep,name=lastBuyTime,proto3" json:"lastBuyTime" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"lastBuyTime"` //最后一次购买的时间
}
func (x *DBShopItem) Reset() {
*x = DBShopItem{}
if protoimpl.UnsafeEnabled {
mi := &file_shop_shop_db_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBShopItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBShopItem) ProtoMessage() {}
func (x *DBShopItem) ProtoReflect() protoreflect.Message {
mi := &file_shop_shop_db_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 DBShopItem.ProtoReflect.Descriptor instead.
func (*DBShopItem) Descriptor() ([]byte, []int) {
return file_shop_shop_db_proto_rawDescGZIP(), []int{2}
}
func (x *DBShopItem) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBShopItem) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBShopItem) GetGoodsId() int32 {
if x != nil {
return x.GoodsId
}
return 0
}
func (x *DBShopItem) GetBuyNum() map[int32]int32 {
if x != nil {
return x.BuyNum
}
return nil
}
func (x *DBShopItem) GetLastBuyTime() map[int32]int64 {
if x != nil {
return x.LastBuyTime
}
return nil
}
var File_shop_shop_db_proto protoreflect.FileDescriptor var File_shop_shop_db_proto protoreflect.FileDescriptor
var file_shop_shop_db_proto_rawDesc = []byte{ var file_shop_shop_db_proto_rawDesc = []byte{
0x0a, 0x12, 0x73, 0x68, 0x6f, 0x70, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x0a, 0x12, 0x73, 0x68, 0x6f, 0x70, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x5f, 0x64, 0x62, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7a, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x01, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f,
0x44, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x70, 0x44, 0x61, 0x74, 0x61, 0x12, 0x28, 0x0a, 0x0f, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x66,
0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f, 0x4c, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0f,
0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2a, 0x4c, 0x61, 0x73, 0x74, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12,
0x0a, 0x10, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x2a, 0x0a, 0x10, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68,
0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x4d, 0x61, 0x6e, 0x75, 0x61, 0x6c, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x4d, 0x61, 0x6e, 0x75, 0x61,
0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x49, 0x74, 0x6c, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x49,
0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d,
0x22, 0x8b, 0x02, 0x0a, 0x06, 0x44, 0x42, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x73, 0x12, 0x28, 0x0a, 0x03, 0x62, 0x75, 0x79, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x42, 0x75,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x03, 0x62, 0x75, 0x79, 0x1a, 0x36, 0x0a, 0x08, 0x42,
0x08, 0x67, 0x6f, 0x6c, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x75, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x67, 0x6f, 0x6c, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x69, 0x61, 0x6d, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x6f, 0x6e, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x02, 0x38, 0x01, 0x22, 0x8b, 0x02, 0x0a, 0x06, 0x44, 0x42, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x0e,
0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0b, 0x64, 0x69, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10,
0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x27, 0x0a, 0x07, 0x70, 0x76, 0x70, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64,
0x53, 0x68, 0x6f, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x67, 0x6f, 0x6c, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01,
0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x70, 0x76, 0x70, 0x53, 0x68, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74,
0x6f, 0x70, 0x12, 0x27, 0x0a, 0x07, 0x70, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x06, 0x20, 0x61, 0x52, 0x08, 0x67, 0x6f, 0x6c, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x2f, 0x0a, 0x0b, 0x64,
0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x74, 0x61, 0x52, 0x07, 0x70, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x31, 0x0a, 0x0c, 0x61, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52,
0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x27, 0x0a, 0x07,
0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x70, 0x76, 0x70, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x22, 0xb4, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x70, 0x76,
0x02, 0x0a, 0x0a, 0x44, 0x42, 0x53, 0x68, 0x6f, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x0e, 0x0a, 0x70, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x27, 0x0a, 0x07, 0x70, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x70,
0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f,
0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x70, 0x44, 0x61, 0x74, 0x61, 0x52, 0x07, 0x70, 0x76, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x12, 0x31,
0x18, 0x0a, 0x07, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x0a, 0x0c, 0x61, 0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x70, 0x18, 0x07,
0x52, 0x07, 0x67, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x06, 0x62, 0x75, 0x79, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x68, 0x6f, 0x70, 0x44,
0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x44, 0x42, 0x53, 0x68, 0x61, 0x74, 0x61, 0x52, 0x0c, 0x61, 0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f,
0x6f, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x70, 0x2a, 0x5f, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a,
0x72, 0x79, 0x52, 0x06, 0x62, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0b, 0x6c, 0x61, 0x04, 0x4e, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x47, 0x6f, 0x6c, 0x64, 0x53,
0x73, 0x74, 0x42, 0x75, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x68, 0x6f, 0x70, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64,
0x1c, 0x2e, 0x44, 0x42, 0x53, 0x68, 0x6f, 0x70, 0x49, 0x74, 0x65, 0x6d, 0x2e, 0x4c, 0x61, 0x73, 0x53, 0x68, 0x6f, 0x70, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x56, 0x50, 0x53, 0x68, 0x6f,
0x74, 0x42, 0x75, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x6c, 0x70, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x56, 0x45, 0x53, 0x68, 0x6f, 0x70, 0x10, 0x04,
0x61, 0x73, 0x74, 0x42, 0x75, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x42, 0x75, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x68, 0x6f, 0x70,
0x79, 0x4e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x10, 0x05, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x6f, 0x33,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x4c, 0x61, 0x73, 0x74, 0x42, 0x75, 0x79,
0x54, 0x69, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, 0x5f, 0x0a, 0x08, 0x53, 0x68, 0x6f, 0x70, 0x54, 0x79, 0x70,
0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x75, 0x6c, 0x6c, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x47,
0x6f, 0x6c, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x69, 0x61,
0x6d, 0x6f, 0x6e, 0x64, 0x53, 0x68, 0x6f, 0x70, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x56,
0x50, 0x53, 0x68, 0x6f, 0x70, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x56, 0x45, 0x53, 0x68,
0x6f, 0x70, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x6c, 0x6c, 0x69, 0x61, 0x6e, 0x63, 0x65,
0x53, 0x68, 0x6f, 0x70, 0x10, 0x05, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -386,28 +302,25 @@ func file_shop_shop_db_proto_rawDescGZIP() []byte {
} }
var file_shop_shop_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_shop_shop_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_shop_shop_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_shop_shop_db_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_shop_shop_db_proto_goTypes = []interface{}{ var file_shop_shop_db_proto_goTypes = []interface{}{
(ShopType)(0), // 0: ShopType (ShopType)(0), // 0: ShopType
(*UserShopData)(nil), // 1: UserShopData (*UserShopData)(nil), // 1: UserShopData
(*DBShop)(nil), // 2: DBShop (*DBShop)(nil), // 2: DBShop
(*DBShopItem)(nil), // 3: DBShopItem nil, // 3: UserShopData.BuyEntry
nil, // 4: DBShopItem.BuyNumEntry
nil, // 5: DBShopItem.LastBuyTimeEntry
} }
var file_shop_shop_db_proto_depIdxs = []int32{ var file_shop_shop_db_proto_depIdxs = []int32{
1, // 0: DBShop.goldShop:type_name -> UserShopData 3, // 0: UserShopData.buy:type_name -> UserShopData.BuyEntry
1, // 1: DBShop.diamondShop:type_name -> UserShopData 1, // 1: DBShop.goldShop:type_name -> UserShopData
1, // 2: DBShop.pvpShop:type_name -> UserShopData 1, // 2: DBShop.diamondShop:type_name -> UserShopData
1, // 3: DBShop.pveShop:type_name -> UserShopData 1, // 3: DBShop.pvpShop:type_name -> UserShopData
1, // 4: DBShop.allianceShop:type_name -> UserShopData 1, // 4: DBShop.pveShop:type_name -> UserShopData
4, // 5: DBShopItem.buyNum:type_name -> DBShopItem.BuyNumEntry 1, // 5: DBShop.allianceShop:type_name -> UserShopData
5, // 6: DBShopItem.lastBuyTime:type_name -> DBShopItem.LastBuyTimeEntry 6, // [6:6] is the sub-list for method output_type
7, // [7:7] is the sub-list for method output_type 6, // [6:6] is the sub-list for method input_type
7, // [7:7] is the sub-list for method input_type 6, // [6:6] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension type_name 6, // [6:6] is the sub-list for extension extendee
7, // [7:7] is the sub-list for extension extendee 0, // [0:6] is the sub-list for field type_name
0, // [0:7] is the sub-list for field type_name
} }
func init() { file_shop_shop_db_proto_init() } func init() { file_shop_shop_db_proto_init() }
@ -440,18 +353,6 @@ func file_shop_shop_db_proto_init() {
return nil return nil
} }
} }
file_shop_shop_db_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBShopItem); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
} }
type x struct{} type x struct{}
out := protoimpl.TypeBuilder{ out := protoimpl.TypeBuilder{
@ -459,7 +360,7 @@ func file_shop_shop_db_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_shop_shop_db_proto_rawDesc, RawDescriptor: file_shop_shop_db_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 5, NumMessages: 3,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

File diff suppressed because it is too large Load Diff