上传累计积分
This commit is contained in:
parent
5711a882c4
commit
d7e5929595
@ -46,13 +46,13 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (e
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, conf := range confs {
|
for _, conf := range confs {
|
||||||
if req.Atype == 0 && conf.Type == 1 {
|
if req.Atype == conf.Type {
|
||||||
|
if req.Atype == 1 {
|
||||||
if _, ok = info.Weekaward[conf.Key]; !ok && info.Integral >= conf.Condition {
|
if _, ok = info.Weekaward[conf.Key]; !ok && info.Integral >= conf.Condition {
|
||||||
res = append(res, conf.Reward...)
|
res = append(res, conf.Reward...)
|
||||||
info.Weekaward[conf.Key] = true
|
info.Weekaward[conf.Key] = true
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
if req.Atype == 1 && conf.Type == 2 {
|
|
||||||
if _, ok = info.Allaward[conf.Key]; !ok && info.Accruedintegral >= conf.Condition {
|
if _, ok = info.Allaward[conf.Key]; !ok && info.Accruedintegral >= conf.Condition {
|
||||||
res = append(res, conf.Reward...)
|
res = append(res, conf.Reward...)
|
||||||
info.Allaward[conf.Key] = true
|
info.Allaward[conf.Key] = true
|
||||||
@ -60,6 +60,7 @@ func (this *apiComp) Award(session comm.IUserSession, req *pb.DColorAwardReq) (e
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
|
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
|
||||||
return
|
return
|
||||||
|
@ -48,8 +48,10 @@ func (this *apiComp) SingleOver(session comm.IUserSession, req *pb.DColorSingleO
|
|||||||
}
|
}
|
||||||
score = int32(math.Floor(float64(conf.Fraction) * float64(tconf.Pro) / float64(1000)))
|
score = int32(math.Floor(float64(conf.Fraction) * float64(tconf.Pro) / float64(1000)))
|
||||||
info.Integral += score
|
info.Integral += score
|
||||||
|
info.Accruedintegral += score
|
||||||
if err = this.module.model.Change(session.GetUserId(), map[string]interface{}{
|
if err = this.module.model.Change(session.GetUserId(), map[string]interface{}{
|
||||||
"integral": info.Integral,
|
"integral": info.Integral,
|
||||||
|
"accruedintegral": info.Accruedintegral,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_DBError,
|
Code: pb.ErrorCode_DBError,
|
||||||
|
@ -66,6 +66,8 @@ func (this *DColor) OnInstallComp() {
|
|||||||
func (this *DColor) CreateRoom(sessions []comm.IUserSession, rulesStr string) (roomid string, err error) {
|
func (this *DColor) CreateRoom(sessions []comm.IUserSession, rulesStr string) (roomid string, err error) {
|
||||||
var (
|
var (
|
||||||
rules *GameRules = &GameRules{}
|
rules *GameRules = &GameRules{}
|
||||||
|
redinfo *pb.DBDColor
|
||||||
|
blueinfo *pb.DBDColor
|
||||||
red *pb.DBUser
|
red *pb.DBUser
|
||||||
blue *pb.DBUser
|
blue *pb.DBUser
|
||||||
room *Room
|
room *Room
|
||||||
@ -75,7 +77,14 @@ func (this *DColor) CreateRoom(sessions []comm.IUserSession, rulesStr string) (r
|
|||||||
this.Error("解析规则json", log.Field{Key: "err", Value: err.Error()})
|
this.Error("解析规则json", log.Field{Key: "err", Value: err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if redinfo, err = this.model.getModel(sessions[0].GetUserId()); err != nil {
|
||||||
|
this.Error("未找到红方信息", log.Field{Key: "uid", Value: sessions[0].GetUserId()})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if blueinfo, err = this.model.getModel(sessions[0].GetUserId()); err != nil {
|
||||||
|
this.Error("未找到蓝方信息", log.Field{Key: "uid", Value: sessions[0].GetUserId()})
|
||||||
|
return
|
||||||
|
}
|
||||||
//发起者 red
|
//发起者 red
|
||||||
red, err = this.ModuleUser.GetUser(sessions[0].GetUserId())
|
red, err = this.ModuleUser.GetUser(sessions[0].GetUserId())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -96,9 +105,15 @@ func (this *DColor) CreateRoom(sessions []comm.IUserSession, rulesStr string) (r
|
|||||||
Handles: make([]*pb.DBDColorResult, 0),
|
Handles: make([]*pb.DBDColorResult, 0),
|
||||||
Red: &pb.DBDColorRoomPlayer{
|
Red: &pb.DBDColorRoomPlayer{
|
||||||
Info: comm.GetUserBaseInfo(red),
|
Info: comm.GetUserBaseInfo(red),
|
||||||
|
Integral: redinfo.Integral,
|
||||||
|
Maxintegral: redinfo.Maxintegral,
|
||||||
|
Accruedintegral: redinfo.Accruedintegral,
|
||||||
},
|
},
|
||||||
Blue: &pb.DBDColorRoomPlayer{
|
Blue: &pb.DBDColorRoomPlayer{
|
||||||
Info: comm.GetUserBaseInfo(blue),
|
Info: comm.GetUserBaseInfo(blue),
|
||||||
|
Integral: blueinfo.Integral,
|
||||||
|
Maxintegral: blueinfo.Maxintegral,
|
||||||
|
Accruedintegral: blueinfo.Accruedintegral,
|
||||||
},
|
},
|
||||||
}, sessions); err != nil {
|
}, sessions); err != nil {
|
||||||
this.Error("创建房间错误", log.Field{Key: "err", Value: err.Error()})
|
this.Error("创建房间错误", log.Field{Key: "err", Value: err.Error()})
|
||||||
|
@ -100,19 +100,23 @@ func (this *Room) PlayerHandle(uid string, handle *pb.DColorHandleReq) (err erro
|
|||||||
this.data.Red.Score = int32(math.Floor(float64(conf.Fail) * float64(tconf.Pro) / float64(1000)))
|
this.data.Red.Score = int32(math.Floor(float64(conf.Fail) * float64(tconf.Pro) / float64(1000)))
|
||||||
}
|
}
|
||||||
this.data.Red.Integral += this.data.Red.Score
|
this.data.Red.Integral += this.data.Red.Score
|
||||||
|
this.data.Red.Accruedintegral += this.data.Blue.Score
|
||||||
if this.data.Red.Score > this.data.Red.Maxintegral {
|
if this.data.Red.Score > this.data.Red.Maxintegral {
|
||||||
this.data.Red.Maxintegral = this.data.Red.Score
|
this.data.Red.Maxintegral = this.data.Red.Score
|
||||||
}
|
}
|
||||||
this.data.Blue.Integral += this.data.Blue.Score
|
this.data.Blue.Integral += this.data.Blue.Score
|
||||||
|
this.data.Blue.Accruedintegral += this.data.Blue.Score
|
||||||
if this.data.Blue.Score > this.data.Blue.Maxintegral {
|
if this.data.Blue.Score > this.data.Blue.Maxintegral {
|
||||||
this.data.Blue.Maxintegral = this.data.Blue.Score
|
this.data.Blue.Maxintegral = this.data.Blue.Score
|
||||||
}
|
}
|
||||||
this.module.model.Change(this.data.Red.Info.Uid, map[string]interface{}{
|
this.module.model.Change(this.data.Red.Info.Uid, map[string]interface{}{
|
||||||
"integral": this.data.Red.Integral,
|
"integral": this.data.Red.Integral,
|
||||||
|
"accruedintegral": this.data.Red.Accruedintegral,
|
||||||
"maxintegral": this.data.Red.Maxintegral,
|
"maxintegral": this.data.Red.Maxintegral,
|
||||||
})
|
})
|
||||||
this.module.model.Change(this.data.Blue.Info.Uid, map[string]interface{}{
|
this.module.model.Change(this.data.Blue.Info.Uid, map[string]interface{}{
|
||||||
"integral": this.data.Blue.Integral,
|
"integral": this.data.Blue.Integral,
|
||||||
|
"accruedintegral": this.data.Blue.Accruedintegral,
|
||||||
"maxintegral": this.data.Blue.Maxintegral,
|
"maxintegral": this.data.Blue.Maxintegral,
|
||||||
})
|
})
|
||||||
if err = this.Broadcast("gameover", &pb.DColorGameOverPush{
|
if err = this.Broadcast("gameover", &pb.DColorGameOverPush{
|
||||||
|
@ -41,7 +41,6 @@ const (
|
|||||||
EffectTipsType_Bleed EffectTipsType = 15 //流血
|
EffectTipsType_Bleed EffectTipsType = 15 //流血
|
||||||
EffectTipsType_Recovery EffectTipsType = 16 //复苏
|
EffectTipsType_Recovery EffectTipsType = 16 //复苏
|
||||||
EffectTipsType_BeatBack EffectTipsType = 17 //反击
|
EffectTipsType_BeatBack EffectTipsType = 17 //反击
|
||||||
EffectTipsType_Diseased EffectTipsType = 18 //禁疗
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Enum value maps for EffectTipsType.
|
// Enum value maps for EffectTipsType.
|
||||||
@ -65,7 +64,6 @@ var (
|
|||||||
15: "Bleed",
|
15: "Bleed",
|
||||||
16: "Recovery",
|
16: "Recovery",
|
||||||
17: "BeatBack",
|
17: "BeatBack",
|
||||||
18: "Diseased",
|
|
||||||
}
|
}
|
||||||
EffectTipsType_value = map[string]int32{
|
EffectTipsType_value = map[string]int32{
|
||||||
"Eff_Success": 0,
|
"Eff_Success": 0,
|
||||||
@ -86,7 +84,6 @@ var (
|
|||||||
"Bleed": 15,
|
"Bleed": 15,
|
||||||
"Recovery": 16,
|
"Recovery": 16,
|
||||||
"BeatBack": 17,
|
"BeatBack": 17,
|
||||||
"Diseased": 18,
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1951,7 +1948,7 @@ var file_battle_battle_struct_proto_rawDesc = []byte{
|
|||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
||||||
0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x53, 0x77, 0x69, 0x74,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x53, 0x77, 0x69, 0x74,
|
||||||
0x63, 0x68, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65,
|
0x63, 0x68, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x2a, 0xaa, 0x02,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x2a, 0x9c, 0x02,
|
||||||
0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65,
|
0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65,
|
||||||
0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10,
|
0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10,
|
||||||
0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73,
|
||||||
@ -1969,9 +1966,8 @@ var file_battle_battle_struct_proto_rawDesc = []byte{
|
|||||||
0x6e, 0x64, 0x65, 0x61, 0x64, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x6f, 0x69, 0x73, 0x6f,
|
0x6e, 0x64, 0x65, 0x61, 0x64, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x6f, 0x69, 0x73, 0x6f,
|
||||||
0x6e, 0x65, 0x64, 0x10, 0x0e, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x6c, 0x65, 0x65, 0x64, 0x10, 0x0f,
|
0x6e, 0x65, 0x64, 0x10, 0x0e, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x6c, 0x65, 0x65, 0x64, 0x10, 0x0f,
|
||||||
0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x10, 0x10, 0x12, 0x0c,
|
0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x63, 0x6f, 0x76, 0x65, 0x72, 0x79, 0x10, 0x10, 0x12, 0x0c,
|
||||||
0x0a, 0x08, 0x42, 0x65, 0x61, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x10, 0x11, 0x12, 0x0c, 0x0a, 0x08,
|
0x0a, 0x08, 0x42, 0x65, 0x61, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x10, 0x11, 0x42, 0x06, 0x5a, 0x04,
|
||||||
0x44, 0x69, 0x73, 0x65, 0x61, 0x73, 0x65, 0x64, 0x10, 0x12, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
|
0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -344,6 +344,7 @@ type DBDColorRoomPlayer struct {
|
|||||||
Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score"`
|
Score int32 `protobuf:"varint,4,opt,name=score,proto3" json:"score"`
|
||||||
Integral int32 `protobuf:"varint,5,opt,name=integral,proto3" json:"integral"`
|
Integral int32 `protobuf:"varint,5,opt,name=integral,proto3" json:"integral"`
|
||||||
Maxintegral int32 `protobuf:"varint,6,opt,name=maxintegral,proto3" json:"maxintegral"`
|
Maxintegral int32 `protobuf:"varint,6,opt,name=maxintegral,proto3" json:"maxintegral"`
|
||||||
|
Accruedintegral int32 `protobuf:"varint,7,opt,name=accruedintegral,proto3" json:"accruedintegral"` //累计积分
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBDColorRoomPlayer) Reset() {
|
func (x *DBDColorRoomPlayer) Reset() {
|
||||||
@ -420,6 +421,13 @@ func (x *DBDColorRoomPlayer) GetMaxintegral() int32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *DBDColorRoomPlayer) GetAccruedintegral() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Accruedintegral
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type DBDColorResult struct {
|
type DBDColorResult struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@ -646,7 +654,7 @@ var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
|||||||
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65,
|
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65,
|
||||||
0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
|
0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74,
|
||||||
0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09,
|
0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09,
|
||||||
0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xb5, 0x01, 0x0a, 0x12, 0x44, 0x42, 0x44,
|
0x52, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0xdf, 0x01, 0x0a, 0x12, 0x44, 0x42, 0x44,
|
||||||
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12,
|
0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x12,
|
||||||
0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
0x21, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e,
|
||||||
0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e,
|
0x42, 0x61, 0x73, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e,
|
||||||
@ -658,36 +666,39 @@ var file_dcolor_dcolor_db_proto_rawDesc = []byte{
|
|||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x20,
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x12, 0x20,
|
||||||
0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x06, 0x20,
|
0x0a, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x18, 0x06, 0x20,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c,
|
0x01, 0x28, 0x05, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c,
|
||||||
0x22, 0x8a, 0x01, 0x0a, 0x0e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73,
|
0x12, 0x28, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x72, 0x75, 0x65, 0x64, 0x69, 0x6e, 0x74, 0x65, 0x67,
|
||||||
0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01,
|
0x72, 0x61, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0f, 0x61, 0x63, 0x63, 0x72, 0x75,
|
||||||
0x28, 0x05, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
|
0x65, 0x64, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61, 0x6c, 0x22, 0x8a, 0x01, 0x0a, 0x0e, 0x44,
|
||||||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72,
|
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x14, 0x0a,
|
||||||
0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65,
|
0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x69, 0x6e,
|
||||||
0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
0x64, 0x65, 0x78, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68,
|
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
|
||||||
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x18, 0x05, 0x20,
|
0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12,
|
||||||
0x01, 0x28, 0x05, 0x52, 0x08, 0x68, 0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x22, 0x82, 0x02,
|
0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x0a, 0x0c, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10,
|
0x05, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x72, 0x69, 0x67, 0x68, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68,
|
||||||
0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64,
|
0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x68,
|
||||||
0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x02,
|
0x61, 0x6c, 0x66, 0x70, 0x61, 0x69, 0x72, 0x22, 0x82, 0x02, 0x0a, 0x0c, 0x44, 0x42, 0x44, 0x43,
|
||||||
0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44,
|
0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18,
|
||||||
0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69,
|
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0a, 0x64, 0x69,
|
||||||
0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18,
|
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13,
|
||||||
0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x18, 0x0a,
|
0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75,
|
||||||
0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07,
|
0x6c, 0x74, 0x79, 0x52, 0x0a, 0x64, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12,
|
||||||
0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05,
|
0x16, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
||||||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52,
|
0x06, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c,
|
||||||
0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x27,
|
0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74,
|
||||||
0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44,
|
0x73, 0x12, 0x25, 0x0a, 0x03, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
|
||||||
0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65,
|
0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61,
|
||||||
0x72, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c,
|
0x79, 0x65, 0x72, 0x52, 0x03, 0x72, 0x65, 0x64, 0x12, 0x27, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x65,
|
||||||
0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f,
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f,
|
||||||
0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c,
|
0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x65, 0x72, 0x52, 0x04, 0x62, 0x6c, 0x75,
|
||||||
0x65, 0x73, 0x2a, 0x3a, 0x0a, 0x12, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69,
|
0x65, 0x12, 0x29, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03,
|
||||||
0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70,
|
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x52, 0x65, 0x73,
|
||||||
0x6c, 0x65, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
0x75, 0x6c, 0x74, 0x52, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x2a, 0x3a, 0x0a, 0x12,
|
||||||
0x74, 0x79, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10, 0x02, 0x42, 0x06,
|
0x44, 0x42, 0x44, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c,
|
||||||
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x74, 0x79, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x10, 0x00, 0x12, 0x0e,
|
||||||
|
0x0a, 0x0a, 0x44, 0x69, 0x66, 0x66, 0x69, 0x63, 0x75, 0x6c, 0x74, 0x79, 0x10, 0x01, 0x12, 0x08,
|
||||||
|
0x0a, 0x04, 0x48, 0x65, 0x6c, 0x6c, 0x10, 0x02, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
|
||||||
|
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
Loading…
Reference in New Issue
Block a user