This commit is contained in:
wh_zcy 2023-04-20 14:40:55 +08:00
parent 2a70daf1ef
commit 93996e3c80
7 changed files with 278 additions and 69 deletions

View File

@ -261,7 +261,7 @@ var (
ff(comm.ModuleDispatch, "dispatch"), ff(comm.ModuleDispatch, "dispatch"),
}, },
"reputation": { "reputation": {
ff(comm.ModuleReputation, "upgrade"), ff(comm.ModuleReputation, "reputation"),
}, },
} }
) )
@ -927,11 +927,11 @@ var (
MainType: string(comm.ModuleReputation), MainType: string(comm.ModuleReputation),
Enabled: true, Enabled: true,
}, },
ff(comm.ModuleReputation, "upgrade"): { ff(comm.ModuleReputation, "reputation"): {
NavLabel: "天赋升级", NavLabel: "声望管理",
Desc: "天赋树升级", Desc: "声望管理",
MainType: string(comm.ModuleReputation), MainType: string(comm.ModuleReputation),
SubType: "upgrade", SubType: "reputation",
Enabled: true, Enabled: true,
}, },
} }

View File

@ -135,8 +135,8 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject {
paiWin := dialog.NewCustom("派遣", "关闭", form, d.w) paiWin := dialog.NewCustom("派遣", "关闭", form, d.w)
paiWin.Resize(fyne.NewSize(600, 300)) paiWin.Resize(fyne.NewSize(600, 300))
paiWin.Show() paiWin.Show()
}) })
//周奖励领取 //周奖励领取
weekReceiveBtn := widget.NewButton("周奖励", func() { weekReceiveBtn := widget.NewButton("周奖励", func() {
if err := service.GetPttService().SendToClient( if err := service.GetPttService().SendToClient(

View File

@ -1,24 +1,75 @@
package formview package formview
import ( import (
"go_dreamfactory/cmd/v2/lib/common"
"go_dreamfactory/cmd/v2/model" "go_dreamfactory/cmd/v2/model"
"go_dreamfactory/cmd/v2/service"
"go_dreamfactory/pb"
"fyne.io/fyne/v2" "fyne.io/fyne/v2"
"fyne.io/fyne/v2/container" "fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/dialog"
"fyne.io/fyne/v2/widget" "fyne.io/fyne/v2/widget"
"github.com/sirupsen/logrus"
"github.com/spf13/cast"
) )
type ReputationView struct { type ReputationView struct {
BaseformView BaseformView
itemList *common.ItemList
flag bool
} }
func (d *ReputationView) CreateView(t *model.TestCase) fyne.CanvasObject { func (d *ReputationView) CreateView(t *model.TestCase) fyne.CanvasObject {
upgradeBtn := widget.NewButton("天赋升级", func() { d.itemList = common.NewItemList()
d.itemList.ItemList = d.itemList.CreateList()
swBtn := widget.NewButton("声望升级", func() {
//阵营
zy := widget.NewEntry()
//好感度
fv := widget.NewEntry()
form := widget.NewForm(
widget.NewFormItem("阵营ID", zy),
widget.NewFormItem("好感度", fv),
)
form.OnSubmit = func() {
}
paiWin := dialog.NewCustom("升级", "关闭", form, d.w)
paiWin.Resize(fyne.NewSize(600, 300))
paiWin.Show()
}) })
upgradeBtn := widget.NewButton("天赋升级", func() {
nodeId := widget.NewEntry()
form := widget.NewForm(
widget.NewFormItem("节点ID", nodeId),
)
topBtns := container.NewHBox(upgradeBtn) form.OnSubmit = func() {
c := container.NewBorder(topBtns, nil, nil, nil) if err := service.GetPttService().SendToClient(
t.MainType,
"upgrade",
&pb.ReputationUpgradeReq{
NodeId: cast.ToInt32(nodeId.Text),
},
); err != nil {
logrus.Error(err)
return
}
}
paiWin := dialog.NewCustom("升级", "关闭", form, d.w)
paiWin.Resize(fyne.NewSize(600, 300))
paiWin.Show()
})
topBtns := container.NewHBox(swBtn, upgradeBtn)
c := container.NewBorder(topBtns, nil, nil, nil, d.itemList.ItemList)
return c return c
} }

View File

@ -0,0 +1,20 @@
package reputation
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb"
)
func (this *apiComp) TalenttestCheck(session comm.IUserSession, req *pb.ReputationTalenttestReq) (code pb.ErrorCode) {
return
}
func (this *apiComp) Talenttest(session comm.IUserSession, req *pb.ReputationTalenttestReq) (code pb.ErrorCode, data *pb.ErrorData) {
rsp := &pb.ReputationTalenttestResp{}
lv := this.module.Upgrade(session, req.RaceType, req.FriendValue)
this.module.Debug("声望等级", log.Field{Key: "lv", Value: lv})
session.SendMsg(string(this.module.GetType()), "talenttest", rsp)
return
}

View File

@ -2,7 +2,6 @@ package reputation
import ( import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb" "go_dreamfactory/pb"
) )
@ -30,14 +29,19 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.ReputationUpgrad
camp, ok := reputation.Camps[talentCfg.Type] camp, ok := reputation.Camps[talentCfg.Type]
if !ok { if !ok {
code = pb.ErrorCode_DataNotFound reputation.Camps[talentCfg.Type] = &pb.Camp{}
this.module.Debug("未找到阵营数据", }
log.Field{Key: "uid", Value: uid},
log.Field{Key: "raceType", Value: talentCfg.Type}) if code = this.module.CheckRes(session, talentCfg.IconCos); code != pb.ErrorCode_Success {
return return
} }
if camp != nil { if camp != nil {
if len(camp.Nodes) == 0 {
camp.Nodes = append(camp.Nodes, &pb.TalentNode{
Nid: req.NodeId,
})
} else {
for _, v := range camp.Nodes { for _, v := range camp.Nodes {
//判断是否满级 //判断是否满级
if req.NodeId == v.Nid && v.Status == 2 { if req.NodeId == v.Nid && v.Status == 2 {
@ -48,18 +52,17 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.ReputationUpgrad
if c := this.module.ConsumeRes(session, talentCfg.IconCos, true); c == pb.ErrorCode_Success { if c := this.module.ConsumeRes(session, talentCfg.IconCos, true); c == pb.ErrorCode_Success {
v.Status = 1 v.Status = 1
camp.CampAttr = this.module.modelReputation.computeAttr(camp.CampAttr, talentCfg.Attribute) camp.CampAttr = this.module.modelReputation.computeAttr(camp.CampAttr, talentCfg.Attribute)
update := map[string]interface{}{
"camps": reputation.Camps,
}
this.module.modelReputation.updateDBReputation(uid, update)
} else {
code = pb.ErrorCode_ResNoEnough
return
} }
break break
} }
} }
} }
update := map[string]interface{}{
"camps": reputation.Camps,
}
this.module.modelReputation.updateDBReputation(uid, update)
}
session.SendMsg(string(this.module.GetType()), "upgrade", rsp) session.SendMsg(string(this.module.GetType()), "upgrade", rsp)

View File

@ -25,6 +25,13 @@ func (this *ModelReputation) Init(service core.IService, module core.IModule, co
return return
} }
func(this *ModelReputation) initCamp(reputation *pb.DBReputation){
if reputation!=nil && reputation.Camps == nil{
reputation.Camps = make(map[int32]*pb.Camp)
}
}
// 获取玩家声望数据 // 获取玩家声望数据
func (this *ModelReputation) getDBReputation(uid string) *pb.DBReputation { func (this *ModelReputation) getDBReputation(uid string) *pb.DBReputation {
reputation := &pb.DBReputation{} reputation := &pb.DBReputation{}

View File

@ -20,6 +20,100 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
//测试
type ReputationTalenttestReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
RaceType int32 `protobuf:"varint,1,opt,name=raceType,proto3" json:"raceType"`
FriendValue int32 `protobuf:"varint,2,opt,name=friendValue,proto3" json:"friendValue"`
}
func (x *ReputationTalenttestReq) Reset() {
*x = ReputationTalenttestReq{}
if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReputationTalenttestReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReputationTalenttestReq) ProtoMessage() {}
func (x *ReputationTalenttestReq) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReputationTalenttestReq.ProtoReflect.Descriptor instead.
func (*ReputationTalenttestReq) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{0}
}
func (x *ReputationTalenttestReq) GetRaceType() int32 {
if x != nil {
return x.RaceType
}
return 0
}
func (x *ReputationTalenttestReq) GetFriendValue() int32 {
if x != nil {
return x.FriendValue
}
return 0
}
type ReputationTalenttestResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *ReputationTalenttestResp) Reset() {
*x = ReputationTalenttestResp{}
if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReputationTalenttestResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReputationTalenttestResp) ProtoMessage() {}
func (x *ReputationTalenttestResp) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReputationTalenttestResp.ProtoReflect.Descriptor instead.
func (*ReputationTalenttestResp) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{1}
}
//天赋树升级 //天赋树升级
type ReputationUpgradeReq struct { type ReputationUpgradeReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -32,7 +126,7 @@ type ReputationUpgradeReq struct {
func (x *ReputationUpgradeReq) Reset() { func (x *ReputationUpgradeReq) Reset() {
*x = ReputationUpgradeReq{} *x = ReputationUpgradeReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[0] mi := &file_reputation_reputation_msg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -45,7 +139,7 @@ func (x *ReputationUpgradeReq) String() string {
func (*ReputationUpgradeReq) ProtoMessage() {} func (*ReputationUpgradeReq) ProtoMessage() {}
func (x *ReputationUpgradeReq) ProtoReflect() protoreflect.Message { func (x *ReputationUpgradeReq) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[0] mi := &file_reputation_reputation_msg_proto_msgTypes[2]
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 {
@ -58,7 +152,7 @@ func (x *ReputationUpgradeReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReputationUpgradeReq.ProtoReflect.Descriptor instead. // Deprecated: Use ReputationUpgradeReq.ProtoReflect.Descriptor instead.
func (*ReputationUpgradeReq) Descriptor() ([]byte, []int) { func (*ReputationUpgradeReq) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{0} return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{2}
} }
func (x *ReputationUpgradeReq) GetNodeId() int32 { func (x *ReputationUpgradeReq) GetNodeId() int32 {
@ -77,7 +171,7 @@ type ReputationUpgradeResp struct {
func (x *ReputationUpgradeResp) Reset() { func (x *ReputationUpgradeResp) Reset() {
*x = ReputationUpgradeResp{} *x = ReputationUpgradeResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[1] mi := &file_reputation_reputation_msg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -90,7 +184,7 @@ func (x *ReputationUpgradeResp) String() string {
func (*ReputationUpgradeResp) ProtoMessage() {} func (*ReputationUpgradeResp) ProtoMessage() {}
func (x *ReputationUpgradeResp) ProtoReflect() protoreflect.Message { func (x *ReputationUpgradeResp) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[1] mi := &file_reputation_reputation_msg_proto_msgTypes[3]
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 {
@ -103,7 +197,7 @@ func (x *ReputationUpgradeResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReputationUpgradeResp.ProtoReflect.Descriptor instead. // Deprecated: Use ReputationUpgradeResp.ProtoReflect.Descriptor instead.
func (*ReputationUpgradeResp) Descriptor() ([]byte, []int) { func (*ReputationUpgradeResp) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{1} return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{3}
} }
//获取天赋树节点 //获取天赋树节点
@ -116,7 +210,7 @@ type ReputationTalentReq struct {
func (x *ReputationTalentReq) Reset() { func (x *ReputationTalentReq) Reset() {
*x = ReputationTalentReq{} *x = ReputationTalentReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[2] mi := &file_reputation_reputation_msg_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -129,7 +223,7 @@ func (x *ReputationTalentReq) String() string {
func (*ReputationTalentReq) ProtoMessage() {} func (*ReputationTalentReq) ProtoMessage() {}
func (x *ReputationTalentReq) ProtoReflect() protoreflect.Message { func (x *ReputationTalentReq) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[2] mi := &file_reputation_reputation_msg_proto_msgTypes[4]
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 {
@ -142,7 +236,7 @@ func (x *ReputationTalentReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReputationTalentReq.ProtoReflect.Descriptor instead. // Deprecated: Use ReputationTalentReq.ProtoReflect.Descriptor instead.
func (*ReputationTalentReq) Descriptor() ([]byte, []int) { func (*ReputationTalentReq) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{2} return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{4}
} }
type ReputationTalentResp struct { type ReputationTalentResp struct {
@ -157,7 +251,7 @@ type ReputationTalentResp struct {
func (x *ReputationTalentResp) Reset() { func (x *ReputationTalentResp) Reset() {
*x = ReputationTalentResp{} *x = ReputationTalentResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_reputation_reputation_msg_proto_msgTypes[3] mi := &file_reputation_reputation_msg_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -170,7 +264,7 @@ func (x *ReputationTalentResp) String() string {
func (*ReputationTalentResp) ProtoMessage() {} func (*ReputationTalentResp) ProtoMessage() {}
func (x *ReputationTalentResp) ProtoReflect() protoreflect.Message { func (x *ReputationTalentResp) ProtoReflect() protoreflect.Message {
mi := &file_reputation_reputation_msg_proto_msgTypes[3] mi := &file_reputation_reputation_msg_proto_msgTypes[5]
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 {
@ -183,7 +277,7 @@ func (x *ReputationTalentResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use ReputationTalentResp.ProtoReflect.Descriptor instead. // Deprecated: Use ReputationTalentResp.ProtoReflect.Descriptor instead.
func (*ReputationTalentResp) Descriptor() ([]byte, []int) { func (*ReputationTalentResp) Descriptor() ([]byte, []int) {
return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{3} return file_reputation_reputation_msg_proto_rawDescGZIP(), []int{5}
} }
func (x *ReputationTalentResp) GetAttrGlobal() *CampAttr { func (x *ReputationTalentResp) GetAttrGlobal() *CampAttr {
@ -207,19 +301,27 @@ var file_reputation_reputation_msg_proto_rawDesc = []byte{
0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x1e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x6f, 0x1a, 0x1e, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x65,
0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x2e, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x6f, 0x22, 0x57, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08,
0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x72, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
0x64, 0x22, 0x17, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x72, 0x69, 0x65,
0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x15, 0x0a, 0x13, 0x72, 0x65, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x66,
0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x72, 0x65,
0x71, 0x22, 0x5c, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x74, 0x65,
0x61, 0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x2e, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61,
0x72, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16,
0x43, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x47, 0x6c, 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
0x6f, 0x62, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x04, 0x63, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61,
0x28, 0x0b, 0x32, 0x05, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x63, 0x61, 0x6d, 0x70, 0x42, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22,
0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x15, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c,
0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x22, 0x5c, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x29,
0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x41, 0x74, 0x74, 0x72, 0x52, 0x0a, 0x61,
0x74, 0x74, 0x72, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x12, 0x19, 0x0a, 0x04, 0x63, 0x61, 0x6d,
0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x43, 0x61, 0x6d, 0x70, 0x52, 0x04,
0x63, 0x61, 0x6d, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -234,18 +336,20 @@ func file_reputation_reputation_msg_proto_rawDescGZIP() []byte {
return file_reputation_reputation_msg_proto_rawDescData return file_reputation_reputation_msg_proto_rawDescData
} }
var file_reputation_reputation_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_reputation_reputation_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_reputation_reputation_msg_proto_goTypes = []interface{}{ var file_reputation_reputation_msg_proto_goTypes = []interface{}{
(*ReputationUpgradeReq)(nil), // 0: reputationUpgradeReq (*ReputationTalenttestReq)(nil), // 0: reputationTalenttestReq
(*ReputationUpgradeResp)(nil), // 1: reputationUpgradeResp (*ReputationTalenttestResp)(nil), // 1: reputationTalenttestResp
(*ReputationTalentReq)(nil), // 2: reputationTalentReq (*ReputationUpgradeReq)(nil), // 2: reputationUpgradeReq
(*ReputationTalentResp)(nil), // 3: reputationTalentResp (*ReputationUpgradeResp)(nil), // 3: reputationUpgradeResp
(*CampAttr)(nil), // 4: CampAttr (*ReputationTalentReq)(nil), // 4: reputationTalentReq
(*Camp)(nil), // 5: Camp (*ReputationTalentResp)(nil), // 5: reputationTalentResp
(*CampAttr)(nil), // 6: CampAttr
(*Camp)(nil), // 7: Camp
} }
var file_reputation_reputation_msg_proto_depIdxs = []int32{ var file_reputation_reputation_msg_proto_depIdxs = []int32{
4, // 0: reputationTalentResp.attrGlobal:type_name -> CampAttr 6, // 0: reputationTalentResp.attrGlobal:type_name -> CampAttr
5, // 1: reputationTalentResp.camp:type_name -> Camp 7, // 1: reputationTalentResp.camp:type_name -> Camp
2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension type_name
@ -261,7 +365,7 @@ func file_reputation_reputation_msg_proto_init() {
file_reputation_reputation_db_proto_init() file_reputation_reputation_db_proto_init()
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_reputation_reputation_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { file_reputation_reputation_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationUpgradeReq); i { switch v := v.(*ReputationTalenttestReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -273,7 +377,7 @@ func file_reputation_reputation_msg_proto_init() {
} }
} }
file_reputation_reputation_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { file_reputation_reputation_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationUpgradeResp); i { switch v := v.(*ReputationTalenttestResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -285,7 +389,7 @@ func file_reputation_reputation_msg_proto_init() {
} }
} }
file_reputation_reputation_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { file_reputation_reputation_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationTalentReq); i { switch v := v.(*ReputationUpgradeReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -297,6 +401,30 @@ func file_reputation_reputation_msg_proto_init() {
} }
} }
file_reputation_reputation_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_reputation_reputation_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationUpgradeResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_reputation_reputation_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationTalentReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_reputation_reputation_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReputationTalentResp); i { switch v := v.(*ReputationTalentResp); i {
case 0: case 0:
return &v.state return &v.state
@ -315,7 +443,7 @@ func file_reputation_reputation_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_reputation_reputation_msg_proto_rawDesc, RawDescriptor: file_reputation_reputation_msg_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 4, NumMessages: 6,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },