From 93996e3c8057e9e61da2cf330c6db78085f4f1b1 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Thu, 20 Apr 2023 14:40:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A3=B0=E6=9C=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/v2/ui/protocol.go | 10 +- cmd/v2/ui/views/dispatch.go | 2 +- cmd/v2/ui/views/reputation.go | 57 ++++++- modules/reputation/api_talenttest.go | 20 +++ modules/reputation/api_upgrade.go | 47 +++--- modules/reputation/model_reputation.go | 7 + pb/reputation_msg.pb.go | 204 ++++++++++++++++++++----- 7 files changed, 278 insertions(+), 69 deletions(-) create mode 100644 modules/reputation/api_talenttest.go diff --git a/cmd/v2/ui/protocol.go b/cmd/v2/ui/protocol.go index 67b1fbb8f..8669d31e6 100644 --- a/cmd/v2/ui/protocol.go +++ b/cmd/v2/ui/protocol.go @@ -261,7 +261,7 @@ var ( ff(comm.ModuleDispatch, "dispatch"), }, "reputation": { - ff(comm.ModuleReputation, "upgrade"), + ff(comm.ModuleReputation, "reputation"), }, } ) @@ -927,11 +927,11 @@ var ( MainType: string(comm.ModuleReputation), Enabled: true, }, - ff(comm.ModuleReputation, "upgrade"): { - NavLabel: "天赋升级", - Desc: "天赋树升级", + ff(comm.ModuleReputation, "reputation"): { + NavLabel: "声望管理", + Desc: "声望管理", MainType: string(comm.ModuleReputation), - SubType: "upgrade", + SubType: "reputation", Enabled: true, }, } diff --git a/cmd/v2/ui/views/dispatch.go b/cmd/v2/ui/views/dispatch.go index a7860b0df..8e8545a5a 100644 --- a/cmd/v2/ui/views/dispatch.go +++ b/cmd/v2/ui/views/dispatch.go @@ -135,8 +135,8 @@ func (d *DispatchView) CreateView(t *model.TestCase) fyne.CanvasObject { paiWin := dialog.NewCustom("派遣", "关闭", form, d.w) paiWin.Resize(fyne.NewSize(600, 300)) paiWin.Show() - }) + //周奖励领取 weekReceiveBtn := widget.NewButton("周奖励", func() { if err := service.GetPttService().SendToClient( diff --git a/cmd/v2/ui/views/reputation.go b/cmd/v2/ui/views/reputation.go index 094b5f64a..704eece40 100644 --- a/cmd/v2/ui/views/reputation.go +++ b/cmd/v2/ui/views/reputation.go @@ -1,24 +1,75 @@ package formview import ( + "go_dreamfactory/cmd/v2/lib/common" "go_dreamfactory/cmd/v2/model" + "go_dreamfactory/cmd/v2/service" + "go_dreamfactory/pb" "fyne.io/fyne/v2" "fyne.io/fyne/v2/container" + "fyne.io/fyne/v2/dialog" "fyne.io/fyne/v2/widget" + "github.com/sirupsen/logrus" + "github.com/spf13/cast" ) type ReputationView struct { BaseformView + itemList *common.ItemList + flag bool } 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) - c := container.NewBorder(topBtns, nil, nil, nil) + form.OnSubmit = func() { + 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 } diff --git a/modules/reputation/api_talenttest.go b/modules/reputation/api_talenttest.go new file mode 100644 index 000000000..0ee964a23 --- /dev/null +++ b/modules/reputation/api_talenttest.go @@ -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 +} diff --git a/modules/reputation/api_upgrade.go b/modules/reputation/api_upgrade.go index 4255f1874..08842738e 100644 --- a/modules/reputation/api_upgrade.go +++ b/modules/reputation/api_upgrade.go @@ -2,7 +2,6 @@ package reputation import ( "go_dreamfactory/comm" - "go_dreamfactory/lego/sys/log" "go_dreamfactory/pb" ) @@ -30,35 +29,39 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.ReputationUpgrad camp, ok := reputation.Camps[talentCfg.Type] if !ok { - code = pb.ErrorCode_DataNotFound - this.module.Debug("未找到阵营数据", - log.Field{Key: "uid", Value: uid}, - log.Field{Key: "raceType", Value: talentCfg.Type}) + reputation.Camps[talentCfg.Type] = &pb.Camp{} + } + + if code = this.module.CheckRes(session, talentCfg.IconCos); code != pb.ErrorCode_Success { return } if camp != nil { - for _, v := range camp.Nodes { - //判断是否满级 - if req.NodeId == v.Nid && v.Status == 2 { - code = pb.ErrorCode_ReputationTalentFull - return - } else if req.NodeId == v.Nid { - //消耗 - if c := this.module.ConsumeRes(session, talentCfg.IconCos, true); c == pb.ErrorCode_Success { - v.Status = 1 - 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 + if len(camp.Nodes) == 0 { + camp.Nodes = append(camp.Nodes, &pb.TalentNode{ + Nid: req.NodeId, + }) + } else { + for _, v := range camp.Nodes { + //判断是否满级 + if req.NodeId == v.Nid && v.Status == 2 { + code = pb.ErrorCode_ReputationTalentFull return + } else if req.NodeId == v.Nid { + //消耗 + if c := this.module.ConsumeRes(session, talentCfg.IconCos, true); c == pb.ErrorCode_Success { + v.Status = 1 + camp.CampAttr = this.module.modelReputation.computeAttr(camp.CampAttr, talentCfg.Attribute) + + } + break } - break } } + update := map[string]interface{}{ + "camps": reputation.Camps, + } + this.module.modelReputation.updateDBReputation(uid, update) } session.SendMsg(string(this.module.GetType()), "upgrade", rsp) diff --git a/modules/reputation/model_reputation.go b/modules/reputation/model_reputation.go index f63ff3f32..14ddcf557 100644 --- a/modules/reputation/model_reputation.go +++ b/modules/reputation/model_reputation.go @@ -25,6 +25,13 @@ func (this *ModelReputation) Init(service core.IService, module core.IModule, co 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 { reputation := &pb.DBReputation{} diff --git a/pb/reputation_msg.pb.go b/pb/reputation_msg.pb.go index e8a1c3c4c..5bb87a135 100644 --- a/pb/reputation_msg.pb.go +++ b/pb/reputation_msg.pb.go @@ -20,6 +20,100 @@ const ( _ = 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 { state protoimpl.MessageState @@ -32,7 +126,7 @@ type ReputationUpgradeReq struct { func (x *ReputationUpgradeReq) Reset() { *x = ReputationUpgradeReq{} 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.StoreMessageInfo(mi) } @@ -45,7 +139,7 @@ func (x *ReputationUpgradeReq) String() string { func (*ReputationUpgradeReq) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -58,7 +152,7 @@ func (x *ReputationUpgradeReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ReputationUpgradeReq.ProtoReflect.Descriptor instead. 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 { @@ -77,7 +171,7 @@ type ReputationUpgradeResp struct { func (x *ReputationUpgradeResp) Reset() { *x = ReputationUpgradeResp{} 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.StoreMessageInfo(mi) } @@ -90,7 +184,7 @@ func (x *ReputationUpgradeResp) String() string { func (*ReputationUpgradeResp) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -103,7 +197,7 @@ func (x *ReputationUpgradeResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ReputationUpgradeResp.ProtoReflect.Descriptor instead. 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() { *x = ReputationTalentReq{} 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.StoreMessageInfo(mi) } @@ -129,7 +223,7 @@ func (x *ReputationTalentReq) String() string { func (*ReputationTalentReq) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -142,7 +236,7 @@ func (x *ReputationTalentReq) ProtoReflect() protoreflect.Message { // Deprecated: Use ReputationTalentReq.ProtoReflect.Descriptor instead. 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 { @@ -157,7 +251,7 @@ type ReputationTalentResp struct { func (x *ReputationTalentResp) Reset() { *x = ReputationTalentResp{} 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.StoreMessageInfo(mi) } @@ -170,7 +264,7 @@ func (x *ReputationTalentResp) String() string { func (*ReputationTalentResp) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -183,7 +277,7 @@ func (x *ReputationTalentResp) ProtoReflect() protoreflect.Message { // Deprecated: Use ReputationTalentResp.ProtoReflect.Descriptor instead. 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 { @@ -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, 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, - 0x6f, 0x22, 0x2e, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, - 0x64, 0x22, 0x17, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, - 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 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, + 0x6f, 0x22, 0x57, 0x0a, 0x17, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, + 0x72, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, + 0x72, 0x61, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x66, + 0x72, 0x69, 0x65, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1a, 0x0a, 0x18, 0x72, 0x65, + 0x70, 0x75, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c, 0x65, 0x6e, 0x74, 0x74, 0x65, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x2e, 0x0a, 0x14, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, + 0x0a, 0x06, 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x72, 0x65, 0x70, 0x75, 0x74, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x70, 0x67, 0x72, 0x61, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, + 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 ( @@ -234,18 +336,20 @@ func file_reputation_reputation_msg_proto_rawDescGZIP() []byte { 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{}{ - (*ReputationUpgradeReq)(nil), // 0: reputationUpgradeReq - (*ReputationUpgradeResp)(nil), // 1: reputationUpgradeResp - (*ReputationTalentReq)(nil), // 2: reputationTalentReq - (*ReputationTalentResp)(nil), // 3: reputationTalentResp - (*CampAttr)(nil), // 4: CampAttr - (*Camp)(nil), // 5: Camp + (*ReputationTalenttestReq)(nil), // 0: reputationTalenttestReq + (*ReputationTalenttestResp)(nil), // 1: reputationTalenttestResp + (*ReputationUpgradeReq)(nil), // 2: reputationUpgradeReq + (*ReputationUpgradeResp)(nil), // 3: reputationUpgradeResp + (*ReputationTalentReq)(nil), // 4: reputationTalentReq + (*ReputationTalentResp)(nil), // 5: reputationTalentResp + (*CampAttr)(nil), // 6: CampAttr + (*Camp)(nil), // 7: Camp } var file_reputation_reputation_msg_proto_depIdxs = []int32{ - 4, // 0: reputationTalentResp.attrGlobal:type_name -> CampAttr - 5, // 1: reputationTalentResp.camp:type_name -> Camp + 6, // 0: reputationTalentResp.attrGlobal:type_name -> CampAttr + 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 input_type 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() if !protoimpl.UnsafeEnabled { 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: return &v.state 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{} { - switch v := v.(*ReputationUpgradeResp); i { + switch v := v.(*ReputationTalenttestResp); i { case 0: return &v.state 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{} { - switch v := v.(*ReputationTalentReq); i { + switch v := v.(*ReputationUpgradeReq); i { case 0: return &v.state 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{} { + 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 { case 0: return &v.state @@ -315,7 +443,7 @@ func file_reputation_reputation_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_reputation_reputation_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 6, NumExtensions: 0, NumServices: 0, },