Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
aea2373d29
@ -201,13 +201,14 @@ type (
|
||||
//添加皮肤资源接口
|
||||
AddPer(session IUserSession, pers map[string]int32, bPush bool) (errdata *pb.ErrorData)
|
||||
|
||||
SetUserCaravanLvChange(session IUserSession, caravanlv int32) error
|
||||
//消耗体力加经验
|
||||
ConsumePsAddExp(session IUserSession, ps int32) (addExp int32, errdata *pb.ErrorData)
|
||||
// 体力差
|
||||
RemainingPS(uid string) int32
|
||||
|
||||
AddUserProfit(uid string, score int64) error
|
||||
AddUserProfit(session IUserSession, score int64) (curProfit int64, err error)
|
||||
// 清除玩家的虚拟币
|
||||
CleanUserMerchantmoney(session IUserSession) (err error)
|
||||
}
|
||||
//武器模块
|
||||
IEquipment interface {
|
||||
|
@ -103,7 +103,8 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
||||
}
|
||||
this.module.ArrayBag(caravan)
|
||||
|
||||
if err := this.module.ModuleUser.AddUserProfit(session.GetUserId(), int64(sellValue)); err != nil {
|
||||
curProfit, err := this.module.ModuleUser.AddUserProfit(session, int64(sellValue))
|
||||
if err != nil {
|
||||
this.module.Error("玩家Profit更新",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "update", Value: update},
|
||||
@ -131,10 +132,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
||||
}
|
||||
}
|
||||
caravan.Lv = curLv
|
||||
// update user caravanlv
|
||||
if err = this.module.ModuleUser.SetUserCaravanLvChange(session, curLv); err != nil {
|
||||
this.module.Errorf("update caravanlv error: %v", err)
|
||||
}
|
||||
|
||||
}
|
||||
if len(lvReward) > 0 { // 商队等级奖励 改发邮件
|
||||
this.module.mail.SendRewardMailByCid(session, comm.CaravanLvReward, lvReward)
|
||||
@ -144,7 +142,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
||||
reward := this.configure.GetCaravanReward()
|
||||
for _, v := range reward {
|
||||
if v.Key > 0 {
|
||||
if caravan.Profit > int64(v.Key) {
|
||||
if curProfit > int64(v.Key) {
|
||||
if _, ok := caravan.Reward[v.Key]; !ok {
|
||||
this.module.mail.SendRewardMailByCid(session, comm.CaravanLvReward, v.Reward)
|
||||
caravan.Reward[v.Key] = true
|
||||
|
@ -23,6 +23,7 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.CaravanGetListRe
|
||||
list, _ := this.module.modelCaravan.getCaravanList(session.GetUserId())
|
||||
endtime := utils.WeekIntervalTime()
|
||||
if list.Resettime != endtime { // 初始化门票和虚拟币
|
||||
this.module.ModuleUser.CleanUserMerchantmoney(session)
|
||||
if conf, err := this.module.configure.GetCaravanLv(list.Lv); err == nil {
|
||||
this.module.ModuleItems.CleanItemById(session, conf.Tickettop.T) // 清理之前的门票数据
|
||||
} else {
|
||||
@ -35,6 +36,7 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.CaravanGetListRe
|
||||
}
|
||||
|
||||
if conf, _ := this.module.configure.GetCaravanLv(list.Lv); conf != nil {
|
||||
|
||||
if errdata = this.module.InitCaravanTicket(session, conf); errdata != nil {
|
||||
return
|
||||
}
|
||||
@ -43,9 +45,7 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.CaravanGetListRe
|
||||
list.Items = make(map[string]*pb.BagInfo, 0)
|
||||
update["items"] = list.Items
|
||||
list.Reward = make(map[int32]bool, 0)
|
||||
list.Profit = 0
|
||||
update["reward"] = list.Reward // 初始化利润奖励
|
||||
update["profit"] = list.Profit // 初始化商品利润
|
||||
list.Resettime = endtime
|
||||
update["resettime"] = list.Resettime
|
||||
this.module.modelCaravan.modifyCaravanDataByObjId(session.GetUserId(), update)
|
||||
|
@ -29,7 +29,7 @@ func (this *apiComp) RankList(session comm.IUserSession, req *pb.CaravanRankList
|
||||
Avatar: userinfo.Avatar,
|
||||
Rank: rankid, // rankid为0 表示未上榜
|
||||
Merchantmoney: userinfo.Merchantmoney,
|
||||
CaravanLv: userinfo.Caravanlv,
|
||||
//CaravanLv: userinfo.Caravanlv,
|
||||
}
|
||||
session.SendMsg(string(this.module.GetType()), "ranklist", resp)
|
||||
return
|
||||
|
@ -85,7 +85,7 @@ func (this *modelCaravan) GetRankListData(rankNum int32, uid string) (list []*pb
|
||||
Avatar: temp.Avatar,
|
||||
Rank: ipos,
|
||||
Merchantmoney: temp.Merchantmoney,
|
||||
CaravanLv: temp.Caravanlv,
|
||||
//CaravanLv: temp.Caravanlv,
|
||||
})
|
||||
if temp.Uid == uid {
|
||||
rankid = ipos
|
||||
|
@ -197,13 +197,14 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
||||
update map[string]interface{}
|
||||
changeTime int32 // 商店刷新时间
|
||||
curTime int64 // 当前事件
|
||||
cityRtime int64
|
||||
)
|
||||
curTime = configure.Now().Unix()
|
||||
update = make(map[string]interface{})
|
||||
changeTime = this.configure.GetCityRefreshTime()
|
||||
|
||||
cityRtime = utils.GetZeroTime(configure.Now().Unix())
|
||||
// 刷新城市货物信息
|
||||
if utils.IsNextToday(caravan.Citystime) {
|
||||
if cityRtime != caravan.Citystime {
|
||||
list := this.configure.GetAllCaravanCity()
|
||||
for _, conf := range list {
|
||||
if v, ok := caravan.City[conf.Id]; ok {
|
||||
@ -251,7 +252,7 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
||||
}
|
||||
|
||||
}
|
||||
caravan.Citystime = utils.GetZeroTime(configure.Now().Unix()) // 设置第二天0点的时间
|
||||
caravan.Citystime = cityRtime // 设置第二天0点的时间
|
||||
update["city"] = caravan.City
|
||||
update["citystime"] = caravan.Citystime
|
||||
bChange = true
|
||||
|
@ -73,12 +73,11 @@ func (this *apiComp) Create(session comm.IUserSession, req *pb.UserCreateReq) (e
|
||||
// }
|
||||
|
||||
update := map[string]interface{}{
|
||||
"name": req.NickName, //设置昵称
|
||||
"created": true, //创角标识
|
||||
"figure": req.Figure, //设置形象
|
||||
"gender": req.Gender, //设置性别
|
||||
"ps": 0, //设置初始体力 调整未0 由策划初始表发放
|
||||
"caravanlv": 1,
|
||||
"name": req.NickName, //设置昵称
|
||||
"created": true, //创角标识
|
||||
"figure": req.Figure, //设置形象
|
||||
"gender": req.Gender, //设置性别
|
||||
"ps": 0, //设置初始体力 调整未0 由策划初始表发放
|
||||
}
|
||||
|
||||
globalConf := this.module.globalConf
|
||||
|
@ -377,14 +377,16 @@ func (this *ModelUser) ChangeLevel(event interface{}, next func(event interface{
|
||||
|
||||
}
|
||||
|
||||
func (this *ModelUser) AddUserProfit(uid string, score int64) (err error) {
|
||||
func (this *ModelUser) AddUserProfit(session comm.IUserSession, score int64) (curProfit int64, err error) {
|
||||
var (
|
||||
model *db.DBModel
|
||||
update map[string]interface{}
|
||||
uid string
|
||||
)
|
||||
if score < 0 {
|
||||
return
|
||||
}
|
||||
uid = session.GetUserId()
|
||||
user := &pb.DBUser{}
|
||||
update = make(map[string]interface{}, 0)
|
||||
update["profit"] = score
|
||||
@ -393,21 +395,66 @@ func (this *ModelUser) AddUserProfit(uid string, score int64) (err error) {
|
||||
if err := this.Get(uid, user); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
update["profit"] = user.Profit + score
|
||||
return model.Change(uid, update)
|
||||
curProfit = user.Profit + score
|
||||
update["profit"] = curProfit
|
||||
err = model.Change(uid, update)
|
||||
return
|
||||
} else {
|
||||
this.module.Errorln(err)
|
||||
return err
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
||||
if err := this.Get(uid, user); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
update["profit"] = user.Profit + score
|
||||
curProfit = user.Profit + score
|
||||
update["profit"] = curProfit
|
||||
}
|
||||
err = this.Change(uid, update)
|
||||
if err := session.SendMsg(string(this.module.GetType()), "profitchanged",
|
||||
&pb.UserProfitChangedPush{
|
||||
Profit: curProfit,
|
||||
}); err != nil {
|
||||
this.module.Error("玩家商队盈利数据变化 UserProfitChangedPush",
|
||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||
log.Field{Key: "Profit", Value: curProfit},
|
||||
)
|
||||
}
|
||||
|
||||
return this.Change(uid, update)
|
||||
return
|
||||
|
||||
}
|
||||
func (this *ModelUser) CleanUserMerchantmoney(session comm.IUserSession) (err error) {
|
||||
var (
|
||||
model *db.DBModel
|
||||
update map[string]interface{}
|
||||
uid string
|
||||
)
|
||||
|
||||
uid = session.GetUserId()
|
||||
user := &pb.DBUser{}
|
||||
update = make(map[string]interface{}, 0)
|
||||
update["profit"] = 0
|
||||
update["merchantmoney"] = 0
|
||||
if db.IsCross() {
|
||||
if model, err = this.module.GetDBModelByUid(uid, this.TableName); err == nil {
|
||||
if err := this.Get(uid, user); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
err = model.Change(uid, update)
|
||||
return
|
||||
} else {
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if err := this.Get(uid, user); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
}
|
||||
}
|
||||
err = this.Change(uid, update)
|
||||
|
||||
return
|
||||
|
||||
}
|
||||
|
||||
|
@ -1170,14 +1170,6 @@ func (this *User) AddPer(session comm.IUserSession, pers map[string]int32, bPush
|
||||
return
|
||||
}
|
||||
|
||||
func (this *User) SetUserCaravanLvChange(session comm.IUserSession, caravanlv int32) error {
|
||||
|
||||
update := map[string]interface{}{
|
||||
"caravanlv": caravanlv,
|
||||
}
|
||||
return this.modelUser.Change(session.GetUserId(), update)
|
||||
}
|
||||
|
||||
func (this *User) ConsumePsAddExp(session comm.IUserSession, ps int32) (addExp int32, errdata *pb.ErrorData) {
|
||||
if ps <= 0 {
|
||||
errdata = &pb.ErrorData{
|
||||
@ -1215,8 +1207,8 @@ func (this *User) RemainingPS(uid string) (ps int32) {
|
||||
}
|
||||
return ggd.PsUl - user.Ps
|
||||
}
|
||||
func (this *User) AddUserProfit(uid string, score int64) error {
|
||||
return this.modelUser.AddUserProfit(uid, score)
|
||||
func (this *User) AddUserProfit(session comm.IUserSession, score int64) (curProfit int64, err error) {
|
||||
return this.modelUser.AddUserProfit(session, score)
|
||||
}
|
||||
|
||||
// 查询每日红点信息
|
||||
@ -1248,3 +1240,6 @@ func (this *User) Reddot(session comm.IUserSession, rid ...comm.ReddotType) (red
|
||||
}
|
||||
return
|
||||
}
|
||||
func (this *User) CleanUserMerchantmoney(session comm.IUserSession) (err error) {
|
||||
return this.modelUser.CleanUserMerchantmoney(session)
|
||||
}
|
||||
|
101
pb/user_db.pb.go
101
pb/user_db.pb.go
@ -152,7 +152,6 @@ type DBUser struct {
|
||||
Channel int32 `protobuf:"varint,38,opt,name=channel,proto3" json:"channel"` //@go_tags(`bson:"channel"`)渠道
|
||||
Vcode int32 `protobuf:"varint,39,opt,name=vcode,proto3" json:"vcode"` //@go_tags(`bson:"vcode"`)版本号
|
||||
Vname string `protobuf:"bytes,40,opt,name=vname,proto3" json:"vname"` //@go_tags(`bson:"vname"`)版本名
|
||||
Caravanlv int32 `protobuf:"varint,41,opt,name=caravanlv,proto3" json:"caravanlv"` //@go_tags(`bson:"caravanlv"`)商队等级
|
||||
Deposit int64 `protobuf:"varint,42,opt,name=deposit,proto3" json:"deposit" bson:"deposit"` //储蓄
|
||||
Profit int64 `protobuf:"varint,43,opt,name=profit,proto3" json:"profit" bson:"profit"` //商队盈利
|
||||
Integral int64 `protobuf:"varint,44,opt,name=integral,proto3" json:"integral" bson:"integral"` //充值积分
|
||||
@ -470,13 +469,6 @@ func (x *DBUser) GetVname() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *DBUser) GetCaravanlv() int32 {
|
||||
if x != nil {
|
||||
return x.Caravanlv
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *DBUser) GetDeposit() int64 {
|
||||
if x != nil {
|
||||
return x.Deposit
|
||||
@ -823,7 +815,7 @@ var file_user_user_db_proto_rawDesc = []byte{
|
||||
0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x0e,
|
||||
0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x1c,
|
||||
0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x06, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xc2, 0x08, 0x0a,
|
||||
0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0xa4, 0x08, 0x0a,
|
||||
0x06, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69,
|
||||
@ -885,52 +877,51 @@ var file_user_user_db_proto_rawDesc = []byte{
|
||||
0x52, 0x07, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x63, 0x6f,
|
||||
0x64, 0x65, 0x18, 0x27, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x76, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||
0x76, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61, 0x6e,
|
||||
0x6c, 0x76, 0x18, 0x29, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61,
|
||||
0x6e, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x2a,
|
||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x16, 0x0a,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70,
|
||||
0x72, 0x6f, 0x66, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||
0x6c, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||
0x6c, 0x22, 0xc7, 0x02, 0x0a, 0x0d, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74,
|
||||
0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x75, 0x61, 0x7a, 0x68, 0x69, 0x18,
|
||||
0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x75, 0x61, 0x7a, 0x68, 0x69, 0x12, 0x1c, 0x0a,
|
||||
0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68, 0x69, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
|
||||
0x52, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68, 0x69, 0x12, 0x1a, 0x0a, 0x08, 0x67,
|
||||
0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x67,
|
||||
0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x75, 0x6c, 0x69, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x77, 0x75, 0x6c, 0x69, 0x12, 0x14, 0x0a, 0x05, 0x6d,
|
||||
0x75, 0x73, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75, 0x73, 0x69,
|
||||
0x63, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
|
||||
0x08, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x75, 0x61,
|
||||
0x6a, 0x69, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x67, 0x75, 0x61, 0x6a, 0x69, 0x12,
|
||||
0x14, 0x0a, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
|
||||
0x66, 0x75, 0x62, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x6e, 0x73, 0x75, 0x6f, 0x18,
|
||||
0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x61, 0x6e, 0x73, 0x75, 0x6f, 0x12, 0x18, 0x0a,
|
||||
0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
|
||||
0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x78, 0x75, 0x61, 0x6e, 0x73,
|
||||
0x68, 0x61, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x78, 0x75, 0x61, 0x6e,
|
||||
0x73, 0x68, 0x61, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x61, 0x69, 0x6a, 0x69, 0x18, 0x0e,
|
||||
0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x61, 0x69, 0x6a, 0x69, 0x22, 0xb8, 0x01, 0x0a, 0x06,
|
||||
0x44, 0x42, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69, 0x67, 0x6e,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x69, 0x67, 0x6e,
|
||||
0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x43, 0x6f, 0x75, 0x6e,
|
||||
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x43, 0x6f, 0x75,
|
||||
0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61, 0x79, 0x18,
|
||||
0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75,
|
||||
0x7a, 0x7a, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x70, 0x75, 0x7a, 0x7a,
|
||||
0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05,
|
||||
0x52, 0x04, 0x74, 0x69, 0x70, 0x73, 0x22, 0x57, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61, 0x6e, 0x64,
|
||||
0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x63,
|
||||
0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x61, 0x6d, 0x65, 0x43, 0x6e, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||
0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42,
|
||||
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x76, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74,
|
||||
0x18, 0x2a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12,
|
||||
0x16, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x03, 0x52,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
||||
0x72, 0x61, 0x6c, 0x18, 0x2c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
||||
0x72, 0x61, 0x6c, 0x22, 0xc7, 0x02, 0x0a, 0x0d, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65,
|
||||
0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
||||
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x75, 0x61, 0x7a, 0x68,
|
||||
0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68, 0x75, 0x61, 0x7a, 0x68, 0x69, 0x12,
|
||||
0x1c, 0x0a, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68, 0x69, 0x18, 0x04, 0x20, 0x01,
|
||||
0x28, 0x0d, 0x52, 0x09, 0x6b, 0x61, 0x6e, 0x67, 0x6a, 0x75, 0x63, 0x68, 0x69, 0x12, 0x1a, 0x0a,
|
||||
0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||
0x08, 0x67, 0x61, 0x6f, 0x67, 0x75, 0x61, 0x6e, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x77, 0x75, 0x6c,
|
||||
0x69, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x77, 0x75, 0x6c, 0x69, 0x12, 0x14, 0x0a,
|
||||
0x05, 0x6d, 0x75, 0x73, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x6d, 0x75,
|
||||
0x73, 0x69, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x18, 0x08, 0x20,
|
||||
0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67,
|
||||
0x75, 0x61, 0x6a, 0x69, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x67, 0x75, 0x61, 0x6a,
|
||||
0x69, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x05, 0x66, 0x75, 0x62, 0x65, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x6e, 0x73, 0x75,
|
||||
0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x74, 0x61, 0x6e, 0x73, 0x75, 0x6f, 0x12,
|
||||
0x18, 0x0a, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08,
|
||||
0x52, 0x07, 0x68, 0x75, 0x6f, 0x64, 0x6f, 0x6e, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x78, 0x75, 0x61,
|
||||
0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x78, 0x75,
|
||||
0x61, 0x6e, 0x73, 0x68, 0x61, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x61, 0x69, 0x6a, 0x69,
|
||||
0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x61, 0x69, 0x6a, 0x69, 0x22, 0xb8, 0x01,
|
||||
0x0a, 0x06, 0x44, 0x42, 0x53, 0x69, 0x67, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18,
|
||||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x69,
|
||||
0x67, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x69,
|
||||
0x67, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x43, 0x6f,
|
||||
0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x43,
|
||||
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20,
|
||||
0x01, 0x28, 0x05, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x61,
|
||||
0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x64, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06,
|
||||
0x70, 0x75, 0x7a, 0x7a, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x70, 0x75,
|
||||
0x7a, 0x7a, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x69, 0x70, 0x73, 0x18, 0x08, 0x20, 0x01,
|
||||
0x28, 0x05, 0x52, 0x04, 0x74, 0x69, 0x70, 0x73, 0x22, 0x57, 0x0a, 0x0c, 0x44, 0x42, 0x52, 0x61,
|
||||
0x6e, 0x64, 0x6f, 0x6d, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x6e, 0x61, 0x6d, 0x65,
|
||||
0x5f, 0x63, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6e, 0x61, 0x6d, 0x65, 0x43,
|
||||
0x6e, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||
0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61,
|
||||
0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
|
||||
0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||
0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user