From 206fa0f9bbdcbe10682b9a03948d0b5358ef349c Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Thu, 11 Aug 2022 18:06:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/v2/lib/common/lang.go | 30 +- cmd/v2/model/testcase.go | 1 + cmd/v2/service/observer/event.go | 7 +- cmd/v2/ui/app_testcase.go | 18 +- cmd/v2/ui/formview/common.go | 24 + cmd/v2/ui/formview/friend_zan.go | 2 +- cmd/v2/ui/formview/items_list.go | 24 + cmd/v2/ui/formview/items_sell.go | 15 + cmd/v2/ui/formview/mail_attachment.go | 31 ++ cmd/v2/ui/formview/mail_attachmentall.go | 24 + cmd/v2/ui/formview/mail_del.go | 31 ++ cmd/v2/ui/formview/mail_list.go | 23 + cmd/v2/ui/formview/mail_readmail.go | 31 ++ cmd/v2/ui/formview/user_modifysign.go | 35 ++ cmd/v2/ui/mainwindow.go | 24 +- cmd/v2/ui/protocol.go | 121 ++++- cmd/v2/ui/toy_userinfo.go | 150 +++++- comm/imodule.go | 6 + modules/friend/api_zan.go | 21 + modules/friend/api_zanreceive.go | 22 + modules/friend/module.go | 37 ++ modules/modulebase.go | 6 + modules/user/api.go | 1 + modules/user/api_info.go | 35 ++ modules/user/api_login.go | 2 + modules/user/api_modifyname.go | 1 + pb/errorcode.pb.go | 158 +++--- pb/user_db.pb.go | 114 ++-- pb/user_msg.pb.go | 654 ++++++++++++++--------- pb/userexpand.pb.go | 53 +- utils/strings.go | 7 +- 31 files changed, 1227 insertions(+), 481 deletions(-) create mode 100644 cmd/v2/ui/formview/items_list.go create mode 100644 cmd/v2/ui/formview/items_sell.go create mode 100644 cmd/v2/ui/formview/mail_attachment.go create mode 100644 cmd/v2/ui/formview/mail_attachmentall.go create mode 100644 cmd/v2/ui/formview/mail_del.go create mode 100644 cmd/v2/ui/formview/mail_list.go create mode 100644 cmd/v2/ui/formview/mail_readmail.go create mode 100644 cmd/v2/ui/formview/user_modifysign.go create mode 100644 modules/user/api_info.go diff --git a/cmd/v2/lib/common/lang.go b/cmd/v2/lib/common/lang.go index e2115e889..f934a3a20 100644 --- a/cmd/v2/lib/common/lang.go +++ b/cmd/v2/lib/common/lang.go @@ -104,6 +104,7 @@ const ( APP_TESTCASE_FORM_TASKTAG = "任务类型" APP_TESTCASE_FORM_TASK_OID = "任务OID" APP_TESTCASE_FORM_NICKNAME = "昵称" + APP_TESTCASE_FORM_SIGN = "签名" APP_TESTCASE_OPTIONS = "选填" AAP_TESTCASE_FORM_TASK_DAY = "日常任务" APP_TESTCASE_FORM_TASK_WEEK = "周常任务" @@ -111,6 +112,8 @@ const ( APP_TESTCASE_FORM_BINGO = "命令" APP_TESTCASE_BTN_PUSH = "推送" APP_TESTCASE_FORM_LABEL_FID = "好友ID" + APP_TESTCASE_FORM_MAILID = "邮件ID" + APP_TESTCASE_FORM_ITEMTYPE = "道具类型" //button BUTTON_LOGIN = "登录" @@ -140,14 +143,21 @@ const ( DATETIME = "时钟" // userinfo - USERINFO_BTN_COPY = "复制UID" - USERINFO_TITLE = "用户信息" - USERINFO_UID = "UID" - USERINFO_ACC = "账号" - USERINFO_NAME = "昵称" - USERINFO_LV = "等级" - USERINFO_GOLD = "金币" - USERINFO_EXP = "经验" - USERINFO_VIP = "贵宾" - USERINFO_AVATAR = "头像" + USERINFO_BTN_COPY = "复制UID" + USERINFO_BTN_REFRESH = "刷新" + USERINFO_PANEL_TITLE = "用户信息" + USERINFO_UID = "UID" + USERINFO_ACC = "账号" + USERINFO_NAME = "昵称" + USERINFO_TITLE = "头衔" + USERINFO_LV = "等级" + USERINFO_GOLD = "金币" + USERINFO_EXP = "经验" + USERINFO_VIP = "贵宾" + USERINFO_AVATAR = "头像" + USERINFO_FRIENDPOINT = "友情点" + USERINFO_SIGN = "签名" + USERINFO_MODINAME = "免费改名次数" + USERINFO_ACTIVE_DAY = "日活" + USERINFO_ACTIVE_WEEK = "周活" ) diff --git a/cmd/v2/model/testcase.go b/cmd/v2/model/testcase.go index 25d4e956a..194bc3b91 100644 --- a/cmd/v2/model/testcase.go +++ b/cmd/v2/model/testcase.go @@ -4,6 +4,7 @@ import "google.golang.org/protobuf/proto" type TestCase struct { Id string //用例ID 如果没有指定,会自动赋值uuid + NavLabel string //菜单名称 Desc string //用例描述 MainType string //协议类型 L1 SubType string //协议类型 L2 diff --git a/cmd/v2/service/observer/event.go b/cmd/v2/service/observer/event.go index 5a6129629..f3fabe3ce 100644 --- a/cmd/v2/service/observer/event.go +++ b/cmd/v2/service/observer/event.go @@ -5,10 +5,11 @@ const ( //用户详情 EVENT_USERINFO Event = "userinfo" //协议推送 - EVENT_APP_MONI Event = "push" - EVENT_USER_CHANGE = "chanage" + EVENT_APP_MONI Event = "push" + // 用户数据变化 + EVENT_USER_CHANGE Event = "chanage" //测试用例响应事件 EVENT_REQ_RSP Event = "response" // 清空 ui数据事件 - EVENT_UI_CLEAN = "uiclean" + EVENT_UI_CLEAN Event = "uiclean" ) diff --git a/cmd/v2/ui/app_testcase.go b/cmd/v2/ui/app_testcase.go index 317d94872..c62a1c97f 100644 --- a/cmd/v2/ui/app_testcase.go +++ b/cmd/v2/ui/app_testcase.go @@ -104,17 +104,25 @@ func (a *appTester) makeNav(setNav func(testCase *model.TestCase)) fyne.CanvasOb } if a.disEnabled(t) { obj.(*widget.Label).TextStyle = fyne.TextStyle{Italic: true} - if branch { + if branch { //parent obj.(*widget.Label).SetText(fmt.Sprintf("%s(dis)", t.MainType)) } else { obj.(*widget.Label).SetText(fmt.Sprintf("%s(dis)", t.SubType)) } } else { - obj.(*widget.Label).TextStyle = fyne.TextStyle{} - if branch { - obj.(*widget.Label).SetText(t.MainType) + if branch { //parent + obj.(*widget.Label).TextStyle = fyne.TextStyle{Bold: true} + if t.NavLabel != "" { + obj.(*widget.Label).SetText(t.NavLabel) + } else { + obj.(*widget.Label).SetText(t.MainType) + } } else { - obj.(*widget.Label).SetText(t.SubType) + if t.NavLabel != "" { + obj.(*widget.Label).SetText(t.NavLabel) + } else { + obj.(*widget.Label).SetText(t.SubType) + } } } diff --git a/cmd/v2/ui/formview/common.go b/cmd/v2/ui/formview/common.go index 278d11058..47327ac79 100644 --- a/cmd/v2/ui/formview/common.go +++ b/cmd/v2/ui/formview/common.go @@ -6,6 +6,7 @@ import ( "fyne.io/fyne/v2/widget" ) +// 获取任务标签 func getTaskTagSelect() *widget.Select { var tagSelect *widget.Select tagSelect = widget.NewSelect([]string{ @@ -27,3 +28,26 @@ func getTaskTagSelect() *widget.Select { tagSelect.SetSelectedIndex(0) return tagSelect } + +// 获取道具类型 +func getItemTypeSelect() *widget.Select { + var tagSelect *widget.Select + tagSelect = widget.NewSelect([]string{ + common.AAP_TESTCASE_FORM_TASK_DAY, + common.APP_TESTCASE_FORM_TASK_WEEK, + common.APP_TESTCASE_FORM_TASK_ACHIEVE}, func(s string) { + switch s { + case common.AAP_TESTCASE_FORM_TASK_DAY: + tagSelect.Selected = "1" + case common.APP_TESTCASE_FORM_TASK_WEEK: + tagSelect.Selected = "2" + case common.APP_TESTCASE_FORM_TASK_ACHIEVE: + tagSelect.Selected = "3" + default: + tagSelect.Selected = "0" + } + + }) + tagSelect.SetSelectedIndex(0) + return tagSelect +} diff --git a/cmd/v2/ui/formview/friend_zan.go b/cmd/v2/ui/formview/friend_zan.go index 0f98f18e2..d463e768b 100644 --- a/cmd/v2/ui/formview/friend_zan.go +++ b/cmd/v2/ui/formview/friend_zan.go @@ -27,7 +27,7 @@ func (this *FriendZanView) CreateView(t *model.TestCase) fyne.CanvasObject { if err := service.GetPttService().SendToClient( t.MainType, - t.SubType, + "zanreceive", &pb.FriendZanreceiveReq{ FriendId: this.selFriendIds[0], }, diff --git a/cmd/v2/ui/formview/items_list.go b/cmd/v2/ui/formview/items_list.go new file mode 100644 index 000000000..b8c3cc3d3 --- /dev/null +++ b/cmd/v2/ui/formview/items_list.go @@ -0,0 +1,24 @@ +package formview + +import ( + "go_dreamfactory/cmd/v2/model" + "go_dreamfactory/cmd/v2/service" + "go_dreamfactory/pb" + + "fyne.io/fyne/v2" + "github.com/sirupsen/logrus" +) + +type ItemListView struct { + BaseformView +} + +func (this *ItemListView) CreateView(t *model.TestCase) fyne.CanvasObject { + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.ItemsGetlistReq{}); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/items_sell.go b/cmd/v2/ui/formview/items_sell.go new file mode 100644 index 000000000..ec55c6756 --- /dev/null +++ b/cmd/v2/ui/formview/items_sell.go @@ -0,0 +1,15 @@ +package formview + +import ( + "go_dreamfactory/cmd/v2/model" + + "fyne.io/fyne/v2" +) + +type ItemsSellView struct { + BaseformView +} + +func (this *ItemsSellView) CreateView(t *model.TestCase) fyne.CanvasObject { + return this.form +} diff --git a/cmd/v2/ui/formview/mail_attachment.go b/cmd/v2/ui/formview/mail_attachment.go new file mode 100644 index 000000000..d4184d1be --- /dev/null +++ b/cmd/v2/ui/formview/mail_attachment.go @@ -0,0 +1,31 @@ +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/widget" + "github.com/sirupsen/logrus" +) + +type MailAttachmentView struct { + BaseformView +} + +func (this *MailAttachmentView) CreateView(t *model.TestCase) fyne.CanvasObject { + mailId := widget.NewEntry() + mailId.PlaceHolder = "邮件ID" + this.form.AppendItem(widget.NewFormItem(common.APP_TESTCASE_FORM_MAILID, mailId)) + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MailGetUserMailAttachmentReq{ + ObjID: mailId.Text, + }); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/mail_attachmentall.go b/cmd/v2/ui/formview/mail_attachmentall.go new file mode 100644 index 000000000..a5062fa9d --- /dev/null +++ b/cmd/v2/ui/formview/mail_attachmentall.go @@ -0,0 +1,24 @@ +package formview + +import ( + "go_dreamfactory/cmd/v2/model" + "go_dreamfactory/cmd/v2/service" + "go_dreamfactory/pb" + + "fyne.io/fyne/v2" + "github.com/sirupsen/logrus" +) + +type MailAttachmentAllView struct { + BaseformView +} + +func (this *MailAttachmentAllView) CreateView(t *model.TestCase) fyne.CanvasObject { + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MailGetAllMailAttachmentReq{}); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/mail_del.go b/cmd/v2/ui/formview/mail_del.go new file mode 100644 index 000000000..93dfd44b2 --- /dev/null +++ b/cmd/v2/ui/formview/mail_del.go @@ -0,0 +1,31 @@ +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/widget" + "github.com/sirupsen/logrus" +) + +type MailDelView struct { + BaseformView +} + +func (this *MailDelView) CreateView(t *model.TestCase) fyne.CanvasObject { + mailId := widget.NewEntry() + mailId.PlaceHolder = "邮件ID" + this.form.AppendItem(widget.NewFormItem(common.APP_TESTCASE_FORM_MAILID, mailId)) + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MailDelMailReq{ + ObjID: mailId.Text, + }); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/mail_list.go b/cmd/v2/ui/formview/mail_list.go new file mode 100644 index 000000000..3539a94ac --- /dev/null +++ b/cmd/v2/ui/formview/mail_list.go @@ -0,0 +1,23 @@ +package formview + +import ( + "go_dreamfactory/cmd/v2/model" + "go_dreamfactory/cmd/v2/service" + "go_dreamfactory/pb" + + "fyne.io/fyne/v2" + "github.com/sirupsen/logrus" +) + +type MailListView struct { + BaseformView +} + +func (this *MailListView) CreateView(t *model.TestCase) fyne.CanvasObject { + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MailGetListReq{}); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/mail_readmail.go b/cmd/v2/ui/formview/mail_readmail.go new file mode 100644 index 000000000..6f2441ee7 --- /dev/null +++ b/cmd/v2/ui/formview/mail_readmail.go @@ -0,0 +1,31 @@ +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/widget" + "github.com/sirupsen/logrus" +) + +type MailReadMailView struct { + BaseformView +} + +func (this *MailReadMailView) CreateView(t *model.TestCase) fyne.CanvasObject { + mailId := widget.NewEntry() + mailId.PlaceHolder = "邮件ID" + this.form.AppendItem(widget.NewFormItem(common.APP_TESTCASE_FORM_MAILID, mailId)) + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient(t.MainType, t.SubType, &pb.MailReadMailReq{ + ObjID: mailId.Text, + }); err != nil { + logrus.Error(err) + } + } + return this.form +} diff --git a/cmd/v2/ui/formview/user_modifysign.go b/cmd/v2/ui/formview/user_modifysign.go new file mode 100644 index 000000000..c1a1e6329 --- /dev/null +++ b/cmd/v2/ui/formview/user_modifysign.go @@ -0,0 +1,35 @@ +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/widget" + "github.com/sirupsen/logrus" +) + +type UserSignView struct { + BaseformView +} + +func (this *UserSignView) CreateView(t *model.TestCase) fyne.CanvasObject { + sign := widget.NewMultiLineEntry() + sign.PlaceHolder = "这个家伙很懒,什么都没有留下" + this.form.AppendItem(widget.NewFormItem(common.APP_TESTCASE_FORM_SIGN, sign)) + + this.form.OnSubmit = func() { + if err := service.GetPttService().SendToClient( + t.MainType, + t.SubType, + &pb.UserModifysignReq{Sign: sign.Text}, + ); err != nil { + logrus.Error(err) + return + } + + } + return this.form +} diff --git a/cmd/v2/ui/mainwindow.go b/cmd/v2/ui/mainwindow.go index 12418cb8a..8fc98e34e 100644 --- a/cmd/v2/ui/mainwindow.go +++ b/cmd/v2/ui/mainwindow.go @@ -215,13 +215,14 @@ func (ui *MainWindowImpl) createLoginWin(sid, sname string) { if err != nil { logrus.WithField("appName", appName).Error(err) } + // hide toolbar + ui.tb.toolbar.Hide() // 必须在创建窗口之后调用 ui.connService.ListenerPush() if code := ui.pttService.Login(sid, account.Text); code != pb.ErrorCode_Success { err := fmt.Errorf("login err: %v[%d]", code, int32(code)) dialog.ShowError(err, ui.w) } else { - // ui.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{ OnNotify: func(data interface{}, args ...interface{}) { if data == nil { @@ -237,27 +238,24 @@ func (ui *MainWindowImpl) createLoginWin(sid, sname string) { } ui.w.SetTitle(fmt.Sprintf("%s[%s]", sname, sid)) - - //show mainwindow - // logrus.Debug(rsp) ui.pttService.SetUser(rsp.Data, rsp.Ex) // isCreateRole if rsp.Data.Created { - // ui.renderUserContainer() - + // set statusbar message ui.sb.setMessage(common.LABEL_WELCOME + rsp.Data.Binduid) - + // update userinfo ui.obs.Notify(observer.EVENT_USERINFO, ui.pttService.GetUser()) + // show toolbar + ui.tb.toolbar.Show() } else { + // create role ui.createRoleWindowPopUp() } } }, }) } - } - } }, ui.w) } @@ -298,16 +296,10 @@ func (ui *MainWindowImpl) createRoleWindowPopUp() { err := fmt.Errorf("login err: %v[%d]", code, int32(code)) dialog.ShowError(err, ui.w) } else { - // if rsp.IsSucc { user := ui.pttService.GetUser() logrus.WithField("uid", user.DbUser.Uid).Debug("create role succ") - ui.createWindowContainer() - appName, err := ui.at.openDefaultApp() - if err != nil { - logrus.WithField("appName", appName).Error(err) - } ui.obs.Notify(observer.EVENT_USERINFO, ui.pttService.GetUser()) - // } + ui.tb.toolbar.Show() } } } diff --git a/cmd/v2/ui/protocol.go b/cmd/v2/ui/protocol.go index 927aec6c3..96c129576 100644 --- a/cmd/v2/ui/protocol.go +++ b/cmd/v2/ui/protocol.go @@ -30,6 +30,15 @@ var ( ff(comm.ModuleGM, "cmd"): &formview.BingoView{}, //user ff(comm.ModuleUser, user.UserSubTypeModifyName): &formview.UserModifynameView{}, + ff(comm.ModuleUser, user.UserSubTypeModifySign): &formview.UserSignView{}, + // items + ff(comm.ModuleItems, "getlist"): &formview.ItemListView{}, + //mail + ff(comm.ModuleMail, "getlist"): &formview.MailListView{}, + ff(comm.ModuleMail, "readmail"): &formview.MailReadMailView{}, + ff(comm.ModuleMail, "delmail"): &formview.MailDelView{}, + ff(comm.ModuleMail, "getusermailattachment"): &formview.MailAttachmentView{}, + ff(comm.ModuleMail, "getallmailattachment"): &formview.MailAttachmentAllView{}, //task ff(comm.ModuleTask, task.TaskSubTypeList): &formview.TaskListView{}, ff(comm.ModuleTask, task.TaskSubTypeReceive): &formview.TaskReceiveView{}, @@ -40,11 +49,9 @@ var ( ff(comm.ModuleHero, hero.StrengthenUplv): &formview.HeroStrengthenUplvView{}, ff(comm.ModuleHero, hero.StrengthenUpStar): &formview.HeroStrengthenUpStarView{}, //friend - ff(comm.ModuleFriend, friend.FriendSubTypeList): &formview.FriendListView{}, - ff(comm.ModuleFriend, friend.FriendSubTypeApply): &formview.FriendApplyView{}, - // ff(comm.ModuleFriend, friend.FriendSubTypeApplyList): &formview.FriendApplyListView{}, - ff(comm.ModuleFriend, friend.FriendSubTypeAgree): &formview.FriendAgreeView{}, - // ff(comm.ModuleFriend, friend.FriendSubTypeRefuse): &formview.FriendRefuseView{}, + ff(comm.ModuleFriend, friend.FriendSubTypeList): &formview.FriendListView{}, + ff(comm.ModuleFriend, friend.FriendSubTypeApply): &formview.FriendApplyView{}, + ff(comm.ModuleFriend, friend.FriendSubTypeAgree): &formview.FriendAgreeView{}, ff(comm.ModuleFriend, friend.FriendSubTypeBlacklist): &formview.FriendBlacklistView{}, ff(comm.ModuleFriend, friend.FriendSubTypeAddBlack): &formview.FriendAddBlackView{}, ff(comm.ModuleFriend, friend.FriendSubTypeDelBlack): &formview.FriendDelblackView{}, @@ -62,10 +69,23 @@ var ( string(comm.ModuleHero), string(comm.ModuleTask), string(comm.ModuleFriend), + string(comm.ModuleMail), + string(comm.ModuleItems), }, "gm": {ff(comm.ModuleGM, "cmd")}, "user": { ff(comm.ModuleUser, user.UserSubTypeModifyName), + ff(comm.ModuleUser, user.UserSubTypeModifySign), + }, + "items": { + ff(comm.ModuleItems, "getlist"), + }, + "mail": { + ff(comm.ModuleMail, "getlist"), + ff(comm.ModuleMail, "readmail"), + ff(comm.ModuleMail, "delmail"), + ff(comm.ModuleMail, "getusermailattachment"), + ff(comm.ModuleMail, "getallmailattachment"), }, "hero": { ff(comm.ModuleHero, hero.HeroSubTypeList), @@ -98,6 +118,7 @@ var ( CaseNav = map[string]*model.TestCase{ // gm "gm": { + NavLabel: "GM", MainType: string(comm.ModuleGM), Enabled: true, }, @@ -111,11 +132,13 @@ var ( }, // user "user": { + NavLabel: "用户", MainType: "user", Enabled: true, }, "user.modifyname": { Desc: "用户昵称修改", + NavLabel: "修改昵称", MainType: "user", SubType: "modifyname", Req: &pb.UserModifynameReq{}, @@ -126,12 +149,76 @@ var ( }, Enabled: true, }, + ff(comm.ModuleUser, user.UserSubTypeModifySign): { + NavLabel: "修改签名", + Desc: "用户签名修改", + MainType: string(comm.ModuleUser), + SubType: user.UserSubTypeModifySign, + Enabled: true, + }, + //items + string(comm.ModuleItems): { + NavLabel: "道具", + MainType: string(comm.ModuleItems), + Enabled: true, + }, + ff(comm.ModuleItems, "getlist"): { + NavLabel: "道具列表", + Desc: "道具列表", + MainType: string(comm.ModuleItems), + SubType: "getlist", + Enabled: true, + }, + + //mail + string(comm.ModuleMail): { + NavLabel: "邮箱", + MainType: string(comm.ModuleMail), + Enabled: true, + }, + ff(comm.ModuleMail, "getlist"): { + NavLabel: "邮件列表", + Desc: "邮件列表", + MainType: string(comm.ModuleMail), + SubType: "getlist", + Enabled: true, + }, + ff(comm.ModuleMail, "readmail"): { + NavLabel: "读邮件", + Desc: "读取邮件", + MainType: string(comm.ModuleMail), + SubType: "readmail", + Enabled: true, + }, + ff(comm.ModuleMail, "delmail"): { + NavLabel: "删除邮件", + Desc: "删除邮件", + MainType: string(comm.ModuleMail), + SubType: "delmail", + Enabled: true, + }, + ff(comm.ModuleMail, "getusermailattachment"): { + NavLabel: "领取附件", + Desc: "领取附件", + MainType: string(comm.ModuleMail), + SubType: "getusermailattachment", + Enabled: true, + }, + ff(comm.ModuleMail, "getallmailattachment"): { + NavLabel: "一键领取", + Desc: "领取所有附件", + MainType: string(comm.ModuleMail), + SubType: "getallmailattachment", + Enabled: true, + }, // task "task": { + NavLabel: "任务", MainType: "task", Enabled: true, }, "task.list": { + NavLabel: "任务列表", Desc: "用户任务列表", MainType: "task", SubType: "list", @@ -140,12 +227,14 @@ var ( Enabled: true, }, "task.receive": { + NavLabel: "任务领取", Desc: "用户任务领取", MainType: "task", SubType: "receive", Enabled: true, }, ff(comm.ModuleTask, task.TaskSubTypeActiveList): { + NavLabel: "活跃度", Desc: "用户活跃度列表", MainType: string(comm.ModuleTask), SubType: task.TaskSubTypeActiveList, @@ -154,6 +243,7 @@ var ( Enabled: true, }, ff(comm.ModuleTask, task.TaskSubTypeActiveReceive): { + NavLabel: "活跃度领取", Desc: "用户活跃度领取", MainType: string(comm.ModuleTask), SubType: task.TaskSubTypeActiveReceive, @@ -163,10 +253,12 @@ var ( }, // hero string(comm.ModuleHero): { + NavLabel: "英雄", MainType: string(comm.ModuleHero), Enabled: true, }, ff(comm.ModuleHero, hero.HeroSubTypeList): { + NavLabel: "英雄列表", Desc: "英雄列表", MainType: string(comm.ModuleHero), SubType: hero.HeroSubTypeList, @@ -181,6 +273,7 @@ var ( Enabled: true, }, ff(comm.ModuleHero, hero.StrengthenUplv): { + NavLabel: "英雄升级", Desc: "英雄等级升级", MainType: string(comm.ModuleHero), SubType: hero.StrengthenUplv, @@ -189,6 +282,7 @@ var ( Enabled: true, }, ff(comm.ModuleHero, hero.StrengthenUpStar): { + NavLabel: "英雄升星", Desc: "英雄星级升级", MainType: string(comm.ModuleHero), SubType: hero.StrengthenUpStar, @@ -198,10 +292,12 @@ var ( }, //friend string(comm.ModuleFriend): { + NavLabel: "好友", MainType: string(comm.ModuleFriend), Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeList): { + NavLabel: "好友列表", Desc: "好友列表", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeList, @@ -210,6 +306,7 @@ var ( Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeApply): { + NavLabel: "好友申请", Desc: "好友申请", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeApply, @@ -226,6 +323,7 @@ var ( // Enabled: true, // }, ff(comm.ModuleFriend, friend.FriendSubTypeBlacklist): { + NavLabel: "黑名单", Desc: "黑名单列表", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeBlacklist, @@ -234,6 +332,7 @@ var ( Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeAddBlack): { + NavLabel: "加黑名单", Desc: "添加黑名单", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeAddBlack, @@ -242,6 +341,7 @@ var ( Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeDelBlack): { + NavLabel: "删黑名单", Desc: "删除黑名单", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeDelBlack, @@ -250,6 +350,7 @@ var ( Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeAgree): { + NavLabel: "好友审批", Desc: "好友申请审批", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeAgree, @@ -257,15 +358,8 @@ var ( Rsp: &pb.FriendAgreeResp{}, Enabled: true, }, - // ff(comm.ModuleFriend, friend.FriendSubTypeRefuse): { - // Desc: "拒绝", - // MainType: string(comm.ModuleFriend), - // SubType: friend.FriendSubTypeRefuse, - // Req: &pb.FriendRefuseReq{}, - // Rsp: &pb.FriendRefuseResp{}, - // Enabled: true, - // }, ff(comm.ModuleFriend, friend.FriendSubTypeSearch): { + NavLabel: "好友搜索", Desc: "搜索好友", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeSearch, @@ -274,6 +368,7 @@ var ( Enabled: true, }, ff(comm.ModuleFriend, friend.FriendSubTypeZanList): { + NavLabel: "好友点赞", Desc: "点赞好友", MainType: string(comm.ModuleFriend), SubType: friend.FriendSubTypeZanList, diff --git a/cmd/v2/ui/toy_userinfo.go b/cmd/v2/ui/toy_userinfo.go index 4f0d4a6e8..390f6ca2b 100644 --- a/cmd/v2/ui/toy_userinfo.go +++ b/cmd/v2/ui/toy_userinfo.go @@ -29,15 +29,18 @@ type toyUserInfo struct { userInfo *service.UserInfo - data binding.ExternalStringList - obs observer.Observer - copyBtn *widget.Button + data binding.ExternalStringList + obs observer.Observer + copyBtn *widget.Button + refreshBtn *widget.Button } func (this *toyUserInfo) Init(obs observer.Observer) error { this.obs = obs - this.titleLabel = widget.NewLabel(common.USERINFO_TITLE) + this.titleLabel = widget.NewLabel(common.USERINFO_PANEL_TITLE) this.data = binding.BindStringList(&[]string{}) + + // 复制UID button this.copyBtn = widget.NewButton(common.USERINFO_BTN_COPY, func() { if this.userInfo != nil && this.userInfo.DbUser != nil { _ = clipboard.WriteAll(this.userInfo.DbUser.Uid) @@ -45,6 +48,18 @@ func (this *toyUserInfo) Init(obs observer.Observer) error { }) this.copyBtn.Disable() + // 刷新 + this.refreshBtn = widget.NewButton(common.USERINFO_BTN_REFRESH, func() { + if err := service.GetPttService().SendToClient( + string(comm.ModuleUser), + user.UserSubTypeInfo, + &pb.UserInfoReq{}); err != nil { + logrus.Error(err) + return + } + }) + this.refreshBtn.Disable() + this.dataList = widget.NewListWithData(this.data, func() fyne.CanvasObject { return widget.NewLabel("template") @@ -55,7 +70,7 @@ func (this *toyUserInfo) Init(obs observer.Observer) error { ) this.widget = widget.NewCard("", "", - container.NewBorder(container.NewHBox(this.titleLabel, layout.NewSpacer(), this.copyBtn), + container.NewBorder(container.NewHBox(this.titleLabel, layout.NewSpacer(), this.refreshBtn, this.copyBtn), nil, nil, nil, container.NewVScroll(this.dataList))) this.widget.Resize(fyne.NewSize(ToyWidth, 600)) @@ -71,19 +86,28 @@ func (this *toyUserInfo) dataListener() { if this.copyBtn.Disabled() { this.copyBtn.Enable() } + if this.refreshBtn.Disabled() { + this.refreshBtn.Enable() + } this.userInfo = d.(*service.UserInfo) if this.userInfo == nil { return } // _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_UID, this.userInfo.DbUser.Uid)) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACC, this.userInfo.DbUser.Binduid)) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_NAME, this.userInfo.DbUser.Name)) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_AVATAR, cast.ToString(this.userInfo.DbUser.Avatar))) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_VIP, cast.ToString(this.userInfo.DbUser.Vip))) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_LV, cast.ToString(this.userInfo.DbUser.Lv))) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_GOLD, cast.ToString(this.userInfo.DbUser.Gold))) - _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_EXP, cast.ToString(this.userInfo.DbUser.Exp))) + _ = this.data.Append(this.getAcc()) //0 + _ = this.data.Append(this.getName()) //1 + _ = this.data.Append(this.getAvatar()) //2 + _ = this.data.Append(this.getVip()) //3 + _ = this.data.Append(this.getLv()) //4 + _ = this.data.Append(this.getGold()) //5 + _ = this.data.Append(this.getExp()) //6 + _ = this.data.Append(this.getTitle()) //7 + _ = this.data.Append(this.getActiveDay()) //8 + _ = this.data.Append(this.getActiveWeek()) //9 + _ = this.data.Append(this.getFriendPoint()) //10 + _ = this.data.Append(this.getModiNameCount()) //11 + _ = this.data.Append(this.getSign()) //12 }, }) @@ -97,8 +121,29 @@ func (this *toyUserInfo) dataListener() { if !comm.ProtoUnmarshal(data, rsp) { logrus.Error("unmarshal err") } - //TODO 改此协议 返回昵称 - // _=this.data.SetValue(1, fmt.Sprintf("%-3s\t: %s", common.USERINFO_NAME, rsp.Uid)) + // updatename + this.setProp(1, common.USERINFO_NAME, rsp.Name) + } + + //update info + if data.MainType == string(comm.ModuleUser) && + data.SubType == user.UserSubTypeInfo { + rsp := &pb.UserInfoResp{} + if !comm.ProtoUnmarshal(data, rsp) { + logrus.Error("unmarshal err") + return + } + this.setProp(2, common.USERINFO_AVATAR, rsp.Data.Avatar) + this.setProp(3, common.USERINFO_VIP, rsp.Data.Vip) + this.setProp(4, common.USERINFO_LV, rsp.Data.Lv) + this.setProp(5, common.USERINFO_GOLD, rsp.Data.Gold) + this.setProp(6, common.USERINFO_EXP, rsp.Data.Exp) + this.setProp(7, common.USERINFO_TITLE, rsp.Data.Title) + this.setProp(8, common.USERINFO_ACTIVE_DAY, rsp.Ex.Activeday) + this.setProp(9, common.USERINFO_ACTIVE_WEEK, rsp.Ex.Activeweek) + this.setProp(10, common.USERINFO_FRIENDPOINT, rsp.Ex.FriendPoint) + this.setProp(11, common.USERINFO_MODINAME, rsp.Ex.ModifynameCount) + this.setProp(12, common.USERINFO_SIGN, rsp.Ex.Sign) } }, }) @@ -113,16 +158,87 @@ func (this *toyUserInfo) dataListener() { if !comm.ProtoUnmarshal(data.Msg, rsp) { logrus.Error("unmarshal err") } - _ = this.data.SetValue(5, fmt.Sprintf("%-3s\t: %s", common.USERINFO_GOLD, cast.ToString(rsp.Gold))) + this.setProp(5, common.USERINFO_GOLD, rsp.Gold) } // listener exp if data.Msg.MainType == string(comm.ModuleUser) && data.Msg.SubType == "" { //TODO change exp } - // - logrus.WithField("key", "a").Debug(data.Msg.SubType) }, }) } + +func (this *toyUserInfo) setProp(idx int, label string, val interface{}) { + if err := this.data.SetValue(idx, fmt.Sprintf("%-3s\t: %v", label, val)); err != nil { + logrus.WithFields(logrus.Fields{"idx": idx, "val": val}).Error(err) + } +} + +func (this *toyUserInfo) getAcc() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACC, this.userInfo.DbUser.Binduid) +} + +func (this *toyUserInfo) getName() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_NAME, this.userInfo.DbUser.Name) +} + +func (this *toyUserInfo) getAvatar() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_AVATAR, this.userInfo.DbUser.Avatar) +} + +func (this *toyUserInfo) getVip() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_VIP, cast.ToString(this.userInfo.DbUser.Vip)) +} + +func (this *toyUserInfo) getLv() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_LV, cast.ToString(this.userInfo.DbUser.Lv)) +} + +func (this *toyUserInfo) getGold() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_GOLD, cast.ToString(this.userInfo.DbUser.Gold)) +} + +func (this *toyUserInfo) getExp() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_EXP, cast.ToString(this.userInfo.DbUser.Exp)) +} + +func (this *toyUserInfo) getTitle() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_TITLE, cast.ToString(this.userInfo.DbUser.Exp)) +} + +func (this *toyUserInfo) getActiveDay() string { + if this.userInfo.DbUserExpand == nil { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACTIVE_DAY, cast.ToString(0)) + } + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACTIVE_DAY, cast.ToString(this.userInfo.DbUserExpand.Activeday)) +} + +func (this *toyUserInfo) getActiveWeek() string { + if this.userInfo.DbUserExpand == nil { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACTIVE_WEEK, cast.ToString(0)) + } + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACTIVE_WEEK, cast.ToString(this.userInfo.DbUserExpand.Activeweek)) +} + +func (this *toyUserInfo) getFriendPoint() string { + if this.userInfo.DbUserExpand == nil { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_FRIENDPOINT, cast.ToString(0)) + } + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_FRIENDPOINT, cast.ToString(this.userInfo.DbUserExpand.FriendPoint)) +} + +func (this *toyUserInfo) getModiNameCount() string { + if this.userInfo.DbUserExpand == nil { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_MODINAME, "") + } + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_MODINAME, cast.ToString(this.userInfo.DbUserExpand.ModifynameCount)) +} + +func (this *toyUserInfo) getSign() string { + if this.userInfo.DbUserExpand == nil { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_SIGN, "") + } + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_SIGN, cast.ToString(this.userInfo.DbUserExpand.Sign)) +} diff --git a/comm/imodule.go b/comm/imodule.go index 82a12b171..839ad1623 100644 --- a/comm/imodule.go +++ b/comm/imodule.go @@ -99,4 +99,10 @@ type ( // 清理玩家任务数据 CleanData(uid string) } + + //好友 + IFriend interface { + // 重置点赞列表和每日友情点 + ResetFriend(uid string) + } ) diff --git a/modules/friend/api_zan.go b/modules/friend/api_zan.go index 98ff6c01b..f99295839 100644 --- a/modules/friend/api_zan.go +++ b/modules/friend/api_zan.go @@ -48,6 +48,27 @@ func (this *apiComp) Zan(session comm.IUserSession, req *pb.FriendZanReq) (code return } + //设置友情值 + ue, err := this.moduleFriend.ModuleUser.GetUserExpand(session.GetUserId()) + if err != nil { + code = pb.ErrorCode_DBError + return + } + + // 今日送出的友情点是否达到上限 + if ue.FriendPointOD >= int32(this.moduleFriend.getOutFriendPointMax()) { + code = pb.ErrorCode_FriendPointLimit + return + } + + update := map[string]interface{}{ + "friendPointOD": ue.FriendPointOD + 10, + } + if err := this.moduleFriend.ModuleUser.ChangeUserExpand(session.GetUserId(), update); err != nil { + code = pb.ErrorCode_DBError + return + } + //设置被点赞玩家 target.ZanIds = append(target.ZanIds, selfId) diff --git a/modules/friend/api_zanreceive.go b/modules/friend/api_zanreceive.go index 054d72070..3caf4de1a 100644 --- a/modules/friend/api_zanreceive.go +++ b/modules/friend/api_zanreceive.go @@ -48,6 +48,28 @@ func (this *apiComp) Zanreceive(session comm.IUserSession, req *pb.FriendZanrece return } + //设置友情值 + ue, err := this.moduleFriend.ModuleUser.GetUserExpand(session.GetUserId()) + if err != nil { + code = pb.ErrorCode_DBError + return + } + + // 今日获赠的友情点是否达到上限 + if ue.FriendPointID >= int32(this.moduleFriend.getInFriendPointMax()) { + code = pb.ErrorCode_FriendPointLimit + return + } + + update := map[string]interface{}{ + "friendPoint": ue.FriendPoint + 10, + "friendPointID": ue.FriendPointID + 10, + } + if err := this.moduleFriend.ModuleUser.ChangeUserExpand(session.GetUserId(), update); err != nil { + code = pb.ErrorCode_DBError + return + } + if err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSubTypeZanreceive, &pb.FriendZanreceiveResp{Flag: true}); err != nil { code = pb.ErrorCode_SystemError diff --git a/modules/friend/module.go b/modules/friend/module.go index aa311aa90..230c757ad 100644 --- a/modules/friend/module.go +++ b/modules/friend/module.go @@ -5,6 +5,7 @@ import ( "go_dreamfactory/modules" "go_dreamfactory/lego/core" + "go_dreamfactory/lego/sys/log" "github.com/spf13/cast" ) @@ -52,3 +53,39 @@ func (this *Friend) getBlackMax() int { } return 0 } + +// 每日最大送出友情点 +func (this *Friend) getOutFriendPointMax() int { + if max := this.configure.GetGlobalConf("friend_maxsendnum"); max != "" { + return cast.ToInt(max) + } + return 0 +} + +// 每日最大获赠友情点 +func (this *Friend) getInFriendPointMax() int { + if max := this.configure.GetGlobalConf("friend_maxsendnum"); max != "" { + return cast.ToInt(max) + } + return 0 +} + +func (this *Friend) ResetFriend(uid string) { + // 重置点赞列表 + zanUpdate := map[string]interface{}{ + "zanIds": []string{}, + } + if err := this.modelFriend.Change(uid, zanUpdate); err != nil { + log.Error("resetZanFriend err", log.Field{Key: "err", Value: err}) + } + + // 重置今日友情点 + update := map[string]interface{}{ + "friendPointID": 0, + "friendPointOD": 0, + } + if err := this.ModuleUser.ChangeUserExpand(uid, update); err != nil { + log.Error("resetFriend err", log.Field{Key: "err", Value: err}) + } + +} diff --git a/modules/modulebase.go b/modules/modulebase.go index 47b41fc58..c6f8d7f4f 100644 --- a/modules/modulebase.go +++ b/modules/modulebase.go @@ -30,6 +30,7 @@ type ModuleBase struct { ModuleHero comm.IHero //英雄模块 ModuleEquipment comm.IEquipment //装备模块 ModuleTask comm.ITask //任务 + ModuleFriend comm.IFriend //好友 } //重构模块配置对象 @@ -78,6 +79,11 @@ func (this *ModuleBase) Start() (err error) { return } this.ModuleTask = module.(comm.ITask) + + if module, err = this.service.GetModule(comm.ModuleFriend); err != nil { + return + } + this.ModuleFriend = module.(comm.IFriend) return } diff --git a/modules/user/api.go b/modules/user/api.go index 83a995d17..25881c94f 100644 --- a/modules/user/api.go +++ b/modules/user/api.go @@ -22,6 +22,7 @@ const ( UserSubTypeModifyName = "modifyname" //修改名称 UserSubTypeFigure = "figure" //形象 UserSubTypeModifySign = "modifysign" // 修改签名 + UserSubTypeInfo = "info" //用户信息 ) type apiComp struct { diff --git a/modules/user/api_info.go b/modules/user/api_info.go new file mode 100644 index 000000000..38f4e7d91 --- /dev/null +++ b/modules/user/api_info.go @@ -0,0 +1,35 @@ +package user + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" + + "google.golang.org/protobuf/proto" +) + +func (this *apiComp) InfoCheck(session comm.IUserSession, req *pb.UserInfoReq) (code pb.ErrorCode) { + return +} + +func (this *apiComp) Info(session comm.IUserSession, req *pb.UserInfoReq) (code pb.ErrorCode, data proto.Message) { + if code = this.InfoCheck(session, req); code != pb.ErrorCode_Success { + return + } + + dbUser := this.module.GetUser(session.GetUserId()) + + ue, err := this.module.GetUserExpand(session.GetUserId()) + if err != nil { + code = pb.ErrorCode_DBError + } + + rsp := &pb.UserInfoResp{ + Data: dbUser, + Ex: ue, + } + + if err := session.SendMsg(string(this.module.GetType()), UserSubTypeInfo, rsp); err != nil { + code = pb.ErrorCode_SystemError + } + return +} diff --git a/modules/user/api_login.go b/modules/user/api_login.go index f1259647c..dcbacee7b 100644 --- a/modules/user/api_login.go +++ b/modules/user/api_login.go @@ -111,6 +111,8 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod if utils.IsAfterWeek(user.Logintime) { this.module.ModuleTask.ResetTask(user.Uid, comm.TASK_WEEKLY) } + // 清理点赞 + this.module.ModuleFriend.ResetFriend(user.Uid) } rsp.Data = user diff --git a/modules/user/api_modifyname.go b/modules/user/api_modifyname.go index d9e28ae43..5318108ad 100644 --- a/modules/user/api_modifyname.go +++ b/modules/user/api_modifyname.go @@ -69,6 +69,7 @@ func (this *apiComp) Modifyname(session comm.IUserSession, req *pb.UserModifynam if err = session.SendMsg(string(this.module.GetType()), UserSubTypeModifyName, &pb.UserModifynameResp{ Uid: session.GetUserId(), Count: uint32(left), + Name: req.Name, }); err != nil { code = pb.ErrorCode_SystemError } diff --git a/pb/errorcode.pb.go b/pb/errorcode.pb.go index a03e77cbc..3854e5c90 100644 --- a/pb/errorcode.pb.go +++ b/pb/errorcode.pb.go @@ -76,6 +76,7 @@ const ( ErrorCode_FriendZaned ErrorCode = 1112 //已点赞 ErrorCode_FriendZanreceived ErrorCode = 1113 //已领取点赞 ErrorCode_FriendZanSelf ErrorCode = 1114 //不能给自己点赞 + ErrorCode_FriendPointLimit ErrorCode = 1115 //友情点上线 // item ErrorCode_ItemsNoEnough ErrorCode = 1200 //背包物品不足 ErrorCode_ItemsNoFoundGird ErrorCode = 1201 //背包未找到物品格子 @@ -195,6 +196,7 @@ var ( 1112: "FriendZaned", 1113: "FriendZanreceived", 1114: "FriendZanSelf", + 1115: "FriendPointLimit", 1200: "ItemsNoEnough", 1201: "ItemsNoFoundGird", 1202: "ItemsGridNumUpper", @@ -303,6 +305,7 @@ var ( "FriendZaned": 1112, "FriendZanreceived": 1113, "FriendZanSelf": 1114, + "FriendPointLimit": 1115, "ItemsNoEnough": 1200, "ItemsNoFoundGird": 1201, "ItemsGridNumUpper": 1202, @@ -392,7 +395,7 @@ var File_errorcode_proto protoreflect.FileDescriptor var file_errorcode_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2a, 0xc3, 0x11, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x6f, 0x2a, 0xda, 0x11, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, @@ -458,82 +461,83 @@ var file_errorcode_proto_rawDesc = []byte{ 0x6e, 0x65, 0x64, 0x10, 0xd8, 0x08, 0x12, 0x16, 0x0a, 0x11, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5a, 0x61, 0x6e, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0xd9, 0x08, 0x12, 0x12, 0x0a, 0x0d, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5a, 0x61, 0x6e, 0x53, 0x65, 0x6c, 0x66, 0x10, - 0xda, 0x08, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x4e, 0x6f, 0x45, 0x6e, 0x6f, - 0x75, 0x67, 0x68, 0x10, 0xb0, 0x09, 0x12, 0x15, 0x0a, 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x4e, - 0x6f, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x69, 0x72, 0x64, 0x10, 0xb1, 0x09, 0x12, 0x16, 0x0a, - 0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x72, 0x69, 0x64, 0x4e, 0x75, 0x6d, 0x55, 0x70, 0x70, - 0x65, 0x72, 0x10, 0xb2, 0x09, 0x12, 0x19, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x69, - 0x72, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, 0x70, 0x70, 0x65, 0x72, 0x10, 0xb3, 0x09, - 0x12, 0x19, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x55, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x53, - 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x10, 0xb4, 0x09, 0x12, 0x10, 0x0a, 0x0b, 0x48, - 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x45, 0x78, 0x69, 0x73, 0x74, 0x10, 0x94, 0x0a, 0x12, 0x11, 0x0a, - 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0x95, 0x0a, - 0x12, 0x0e, 0x0a, 0x09, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x4c, 0x76, 0x10, 0x96, 0x0a, - 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x6e, 0x69, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x10, 0x97, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x6c, 0x6f, - 0x72, 0x45, 0x72, 0x72, 0x10, 0x98, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x53, - 0x6b, 0x69, 0x6c, 0x6c, 0x55, 0x70, 0x45, 0x72, 0x72, 0x10, 0x99, 0x0a, 0x12, 0x14, 0x0a, 0x0f, - 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x10, - 0x9a, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x52, 0x65, 0x73, 0x6f, - 0x6e, 0x61, 0x74, 0x65, 0x10, 0x9b, 0x0a, 0x12, 0x18, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f, 0x4e, - 0x6f, 0x74, 0x4e, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x10, 0x9c, - 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x45, 0x6e, 0x65, 0x72, 0x67, - 0x79, 0x10, 0x9d, 0x0a, 0x12, 0x0f, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x10, 0x9e, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x71, 0x75, - 0x69, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x10, 0x9f, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, - 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x41, 0x77, 0x61, 0x6b, 0x65, 0x6e, 0x10, 0xa0, 0x0a, 0x12, - 0x0f, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x73, 0x4c, 0x6f, 0x63, 0x6b, 0x10, 0xa1, 0x0a, - 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, - 0x10, 0xa2, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x73, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x10, 0xa3, 0x0a, 0x12, 0x10, 0x0a, 0x0b, 0x48, 0x65, 0x72, - 0x6f, 0x53, 0x74, 0x61, 0x72, 0x45, 0x72, 0x72, 0x10, 0xa4, 0x0a, 0x12, 0x10, 0x0a, 0x0b, 0x48, - 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x10, 0xa5, 0x0a, 0x12, 0x13, 0x0a, - 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x78, 0x70, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x10, - 0xa6, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x41, 0x64, 0x64, 0x4d, 0x61, 0x78, - 0x45, 0x78, 0x70, 0x10, 0xa7, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, - 0x61, 0x72, 0x4c, 0x76, 0x45, 0x72, 0x72, 0x10, 0xa8, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, - 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x72, 0x4c, 0x76, 0x10, 0xa9, 0x0a, 0x12, 0x19, - 0x0a, 0x14, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, - 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xaa, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, - 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1e, - 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x4f, 0x6e, 0x46, 0x6f, 0x75, - 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x10, 0xf8, 0x0a, 0x12, 0x1c, - 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x4c, 0x76, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, 0x10, 0xf9, 0x0a, 0x12, 0x14, 0x0a, 0x0f, - 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6e, 0x10, - 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, - 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x10, 0xdc, 0x0b, 0x12, - 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x44, 0x46, 0x61, 0x69, - 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, - 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xde, 0x0b, 0x12, 0x18, 0x0a, - 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, 0x65, 0x4e, 0x6f, 0x74, 0x46, - 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, - 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, - 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe1, 0x0b, 0x12, - 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc0, 0x0c, 0x12, 0x0e, - 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x65, 0x74, 0x10, 0xc1, 0x0c, 0x12, 0x0f, - 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x10, 0xc2, 0x0c, 0x12, - 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, - 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xc5, 0x0c, 0x12, - 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x65, - 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, - 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0xc7, 0x0c, 0x12, 0x11, 0x0a, - 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0xc8, 0x0c, - 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x61, 0x67, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x74, - 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x70, - 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, 0x6c, 0x64, 0x4f, 0x75, 0x74, 0x10, 0xa4, - 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, 0x4e, 0x6f, 0x53, 0x75, 0x72, 0x70, 0x6c, - 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, 0x6d, 0x10, 0xa5, 0x0d, 0x12, - 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, 0x72, 0x10, 0x88, 0x0e, 0x12, 0x13, 0x0a, - 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, - 0xec, 0x0e, 0x12, 0x13, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4c, 0x65, 0x76, 0x6c, - 0x45, 0x72, 0x72, 0x10, 0xb9, 0x94, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0xda, 0x08, 0x12, 0x15, 0x0a, 0x10, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x10, 0xdb, 0x08, 0x12, 0x12, 0x0a, 0x0d, 0x49, 0x74, 0x65, + 0x6d, 0x73, 0x4e, 0x6f, 0x45, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xb0, 0x09, 0x12, 0x15, 0x0a, + 0x10, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x4e, 0x6f, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x69, 0x72, + 0x64, 0x10, 0xb1, 0x09, 0x12, 0x16, 0x0a, 0x11, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x72, 0x69, + 0x64, 0x4e, 0x75, 0x6d, 0x55, 0x70, 0x70, 0x65, 0x72, 0x10, 0xb2, 0x09, 0x12, 0x19, 0x0a, 0x14, + 0x49, 0x74, 0x65, 0x6d, 0x73, 0x47, 0x69, 0x72, 0x64, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x55, + 0x70, 0x70, 0x65, 0x72, 0x10, 0xb3, 0x09, 0x12, 0x19, 0x0a, 0x14, 0x49, 0x74, 0x65, 0x6d, 0x73, + 0x55, 0x73, 0x65, 0x4e, 0x6f, 0x74, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x10, + 0xb4, 0x09, 0x12, 0x10, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x45, 0x78, 0x69, 0x73, + 0x74, 0x10, 0x94, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x45, 0x6e, + 0x6f, 0x75, 0x67, 0x68, 0x10, 0x95, 0x0a, 0x12, 0x0e, 0x0a, 0x09, 0x48, 0x65, 0x72, 0x6f, 0x4d, + 0x61, 0x78, 0x4c, 0x76, 0x10, 0x96, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x49, + 0x6e, 0x69, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x10, 0x97, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, + 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x45, 0x72, 0x72, 0x10, 0x98, 0x0a, 0x12, 0x13, + 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x55, 0x70, 0x45, 0x72, 0x72, + 0x10, 0x99, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x52, 0x65, + 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x10, 0x9a, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, + 0x6f, 0x4e, 0x6f, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x10, 0x9b, 0x0a, 0x12, 0x18, + 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f, 0x4e, 0x6f, 0x74, 0x4e, 0x65, 0x65, 0x64, 0x52, 0x65, 0x73, + 0x6f, 0x6e, 0x61, 0x74, 0x65, 0x10, 0x9c, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, + 0x4e, 0x6f, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x10, 0x9d, 0x0a, 0x12, 0x0f, 0x0a, 0x0a, 0x48, + 0x65, 0x72, 0x6f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x9e, 0x0a, 0x12, 0x14, 0x0a, 0x0f, + 0x48, 0x65, 0x72, 0x6f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x10, + 0x9f, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x41, 0x77, 0x61, + 0x6b, 0x65, 0x6e, 0x10, 0xa0, 0x0a, 0x12, 0x0f, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x49, 0x73, + 0x4c, 0x6f, 0x63, 0x6b, 0x10, 0xa1, 0x0a, 0x12, 0x11, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x4d, + 0x61, 0x78, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x10, 0xa2, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x48, 0x65, + 0x72, 0x6f, 0x43, 0x6f, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x10, 0xa3, 0x0a, + 0x12, 0x10, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x45, 0x72, 0x72, 0x10, + 0xa4, 0x0a, 0x12, 0x10, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x45, 0x72, + 0x72, 0x10, 0xa5, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x45, 0x78, 0x70, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x72, 0x72, 0x10, 0xa6, 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, + 0x6f, 0x41, 0x64, 0x64, 0x4d, 0x61, 0x78, 0x45, 0x78, 0x70, 0x10, 0xa7, 0x0a, 0x12, 0x12, 0x0a, + 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x53, 0x74, 0x61, 0x72, 0x4c, 0x76, 0x45, 0x72, 0x72, 0x10, 0xa8, + 0x0a, 0x12, 0x12, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x74, 0x61, 0x72, + 0x4c, 0x76, 0x10, 0xa9, 0x0a, 0x12, 0x19, 0x0a, 0x14, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xaa, 0x0a, + 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x6b, 0x69, 0x6c, 0x6c, + 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x4f, 0x6e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x10, 0xf8, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x4c, 0x76, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, + 0x10, 0xf9, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6e, 0x10, 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, + 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, + 0x74, 0x65, 0x72, 0x10, 0xdc, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, + 0x6e, 0x65, 0x49, 0x44, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, + 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, + 0x64, 0x10, 0xde, 0x0b, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, + 0x50, 0x72, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, + 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, + 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x10, 0xe1, 0x0b, 0x12, 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, + 0x69, 0x74, 0x10, 0xc0, 0x0c, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x10, 0xc1, 0x0c, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x10, 0xc2, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, + 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, + 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, + 0x75, 0x6e, 0x64, 0x10, 0xc5, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x65, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, + 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, + 0x64, 0x10, 0xc7, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x10, 0xc8, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x61, 0x67, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, + 0x73, 0x6b, 0x49, 0x64, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, + 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, + 0x17, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, + 0x6c, 0x64, 0x4f, 0x75, 0x74, 0x10, 0xa4, 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, + 0x4e, 0x6f, 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x4e, 0x75, 0x6d, 0x10, 0xa5, 0x0d, 0x12, 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, + 0x72, 0x10, 0x88, 0x0e, 0x12, 0x13, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, + 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xec, 0x0e, 0x12, 0x13, 0x0a, 0x0d, 0x50, 0x61, 0x67, + 0x6f, 0x64, 0x61, 0x4c, 0x65, 0x76, 0x6c, 0x45, 0x72, 0x72, 0x10, 0xb9, 0x94, 0x01, 0x42, 0x06, + 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pb/user_db.pb.go b/pb/user_db.pb.go index 4be60900e..b079d4f85 100644 --- a/pb/user_db.pb.go +++ b/pb/user_db.pb.go @@ -104,25 +104,24 @@ type DBUser struct { 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 - Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid" bson:"uuid"` //玩家唯一uuid - Binduid string `protobuf:"bytes,4,opt,name=binduid,proto3" json:"binduid" bson:"binduid"` //玩家账号 - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name" bson:"name"` //玩家名 - Sid string `protobuf:"bytes,6,opt,name=sid,proto3" json:"sid" bson:"sid"` //区服id - Createip string `protobuf:"bytes,7,opt,name=createip,proto3" json:"createip" bson:"createip"` //创建账号时的ip - Lastloginip string `protobuf:"bytes,8,opt,name=lastloginip,proto3" json:"lastloginip" bson:"lastloginip"` //最后一次登录时的ip - Ctime int64 `protobuf:"varint,9,opt,name=ctime,proto3" json:"ctime" bson:"ctime"` //玩家创号时间戳 - Logintime int64 `protobuf:"varint,10,opt,name=logintime,proto3" json:"logintime" bson:"logintime"` //最后一次登录时间 - FriendPoint int32 `protobuf:"varint,11,opt,name=friendPoint,proto3" json:"friendPoint" bson:"friendPoint"` //友情点 - Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar" bson:"avatar"` //头像 - Gold int32 `protobuf:"varint,13,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币 - Exp int32 `protobuf:"varint,14,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验 - Created bool `protobuf:"varint,15,opt,name=created,proto3" json:"created" bson:"created"` //创角 - Lv int32 `protobuf:"varint,16,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级 - Vip int32 `protobuf:"varint,17,opt,name=vip,proto3" json:"vip" bson:"vip"` // vip - Diamond int32 `protobuf:"varint,18,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石 - Title int32 `protobuf:"varint,19,opt,name=title,proto3" json:"title"` //@go_tags(`bson:"title"`)头衔 + 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 + Uuid string `protobuf:"bytes,3,opt,name=uuid,proto3" json:"uuid" bson:"uuid"` //玩家唯一uuid + Binduid string `protobuf:"bytes,4,opt,name=binduid,proto3" json:"binduid" bson:"binduid"` //玩家账号 + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name" bson:"name"` //玩家名 + Sid string `protobuf:"bytes,6,opt,name=sid,proto3" json:"sid" bson:"sid"` //区服id + Createip string `protobuf:"bytes,7,opt,name=createip,proto3" json:"createip" bson:"createip"` //创建账号时的ip + Lastloginip string `protobuf:"bytes,8,opt,name=lastloginip,proto3" json:"lastloginip" bson:"lastloginip"` //最后一次登录时的ip + Ctime int64 `protobuf:"varint,9,opt,name=ctime,proto3" json:"ctime" bson:"ctime"` //玩家创号时间戳 + Logintime int64 `protobuf:"varint,10,opt,name=logintime,proto3" json:"logintime" bson:"logintime"` //最后一次登录时间 + Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar" bson:"avatar"` //头像 + Gold int32 `protobuf:"varint,13,opt,name=gold,proto3" json:"gold" bson:"gold"` //金币 + Exp int32 `protobuf:"varint,14,opt,name=exp,proto3" json:"exp" bson:"exp"` //经验 + Created bool `protobuf:"varint,15,opt,name=created,proto3" json:"created" bson:"created"` //创角 + Lv int32 `protobuf:"varint,16,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级 + Vip int32 `protobuf:"varint,17,opt,name=vip,proto3" json:"vip" bson:"vip"` // vip + Diamond int32 `protobuf:"varint,18,opt,name=diamond,proto3" json:"diamond" bson:"diamond"` // 钻石 + Title int32 `protobuf:"varint,19,opt,name=title,proto3" json:"title"` //@go_tags(`bson:"title"`)头衔 } func (x *DBUser) Reset() { @@ -227,13 +226,6 @@ func (x *DBUser) GetLogintime() int64 { return 0 } -func (x *DBUser) GetFriendPoint() int32 { - if x != nil { - return x.FriendPoint - } - return 0 -} - func (x *DBUser) GetAvatar() string { if x != nil { return x.Avatar @@ -446,7 +438,7 @@ var file_user_user_db_proto_rawDesc = []byte{ 0x61, 0x67, 0x12, 0x2a, 0x0a, 0x10, 0x47, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x47, 0x61, 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, 0x22, 0xbc, + 0x0a, 0x02, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x22, 0x9a, 0x03, 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, @@ -462,41 +454,39 @@ var file_user_user_db_proto_rawDesc = []byte{ 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x74, 0x69, 0x6d, - 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, - 0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x0c, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x67, - 0x6f, 0x6c, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, - 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, - 0x70, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, - 0x76, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x76, - 0x69, 0x70, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x18, 0x0a, - 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, - 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, - 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6c, + 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, 0x10, 0x0a, + 0x03, 0x65, 0x78, 0x70, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, + 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, + 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x64, + 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x69, + 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x13, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 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, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pb/user_msg.pb.go b/pb/user_msg.pb.go index 2d507ca79..f8cf3d360 100644 --- a/pb/user_msg.pb.go +++ b/pb/user_msg.pb.go @@ -139,6 +139,100 @@ func (x *UserLoginResp) GetTimeNow() int64 { return 0 } +// 获取用户信息 +type UserInfoReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UserInfoReq) Reset() { + *x = UserInfoReq{} + if protoimpl.UnsafeEnabled { + mi := &file_user_user_msg_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfoReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfoReq) ProtoMessage() {} + +func (x *UserInfoReq) ProtoReflect() protoreflect.Message { + mi := &file_user_user_msg_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 UserInfoReq.ProtoReflect.Descriptor instead. +func (*UserInfoReq) Descriptor() ([]byte, []int) { + return file_user_user_msg_proto_rawDescGZIP(), []int{2} +} + +type UserInfoResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data *DBUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data"` + Ex *DBUserExpand `protobuf:"bytes,2,opt,name=ex,proto3" json:"ex"` //用户扩展 +} + +func (x *UserInfoResp) Reset() { + *x = UserInfoResp{} + if protoimpl.UnsafeEnabled { + mi := &file_user_user_msg_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UserInfoResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserInfoResp) ProtoMessage() {} + +func (x *UserInfoResp) ProtoReflect() protoreflect.Message { + mi := &file_user_user_msg_proto_msgTypes[3] + 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 UserInfoResp.ProtoReflect.Descriptor instead. +func (*UserInfoResp) Descriptor() ([]byte, []int) { + return file_user_user_msg_proto_rawDescGZIP(), []int{3} +} + +func (x *UserInfoResp) GetData() *DBUser { + if x != nil { + return x.Data + } + return nil +} + +func (x *UserInfoResp) GetEx() *DBUserExpand { + if x != nil { + return x.Ex + } + return nil +} + //登出 type UserLogoutReq struct { state protoimpl.MessageState @@ -149,7 +243,7 @@ type UserLogoutReq struct { func (x *UserLogoutReq) Reset() { *x = UserLogoutReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[2] + mi := &file_user_user_msg_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -162,7 +256,7 @@ func (x *UserLogoutReq) String() string { func (*UserLogoutReq) ProtoMessage() {} func (x *UserLogoutReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[2] + mi := &file_user_user_msg_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -175,7 +269,7 @@ func (x *UserLogoutReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserLogoutReq.ProtoReflect.Descriptor instead. func (*UserLogoutReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{2} + return file_user_user_msg_proto_rawDescGZIP(), []int{4} } type UserLogoutResp struct { @@ -187,7 +281,7 @@ type UserLogoutResp struct { func (x *UserLogoutResp) Reset() { *x = UserLogoutResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[3] + mi := &file_user_user_msg_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -200,7 +294,7 @@ func (x *UserLogoutResp) String() string { func (*UserLogoutResp) ProtoMessage() {} func (x *UserLogoutResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[3] + mi := &file_user_user_msg_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -213,7 +307,7 @@ func (x *UserLogoutResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserLogoutResp.ProtoReflect.Descriptor instead. func (*UserLogoutResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{3} + return file_user_user_msg_proto_rawDescGZIP(), []int{5} } //注册 @@ -229,7 +323,7 @@ type UserRegisterReq struct { func (x *UserRegisterReq) Reset() { *x = UserRegisterReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[4] + mi := &file_user_user_msg_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -242,7 +336,7 @@ func (x *UserRegisterReq) String() string { func (*UserRegisterReq) ProtoMessage() {} func (x *UserRegisterReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[4] + mi := &file_user_user_msg_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -255,7 +349,7 @@ func (x *UserRegisterReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserRegisterReq.ProtoReflect.Descriptor instead. func (*UserRegisterReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{4} + return file_user_user_msg_proto_rawDescGZIP(), []int{6} } func (x *UserRegisterReq) GetAccount() string { @@ -284,7 +378,7 @@ type UserRegisterResp struct { func (x *UserRegisterResp) Reset() { *x = UserRegisterResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[5] + mi := &file_user_user_msg_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -297,7 +391,7 @@ func (x *UserRegisterResp) String() string { func (*UserRegisterResp) ProtoMessage() {} func (x *UserRegisterResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[5] + mi := &file_user_user_msg_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -310,7 +404,7 @@ func (x *UserRegisterResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserRegisterResp.ProtoReflect.Descriptor instead. func (*UserRegisterResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{5} + return file_user_user_msg_proto_rawDescGZIP(), []int{7} } func (x *UserRegisterResp) GetCode() ErrorCode { @@ -338,7 +432,7 @@ type UserLoadResp struct { func (x *UserLoadResp) Reset() { *x = UserLoadResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[6] + mi := &file_user_user_msg_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -351,7 +445,7 @@ func (x *UserLoadResp) String() string { func (*UserLoadResp) ProtoMessage() {} func (x *UserLoadResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[6] + mi := &file_user_user_msg_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -364,7 +458,7 @@ func (x *UserLoadResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserLoadResp.ProtoReflect.Descriptor instead. func (*UserLoadResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{6} + return file_user_user_msg_proto_rawDescGZIP(), []int{8} } func (x *UserLoadResp) GetData() *CacheUser { @@ -386,7 +480,7 @@ type UserCreateReq struct { func (x *UserCreateReq) Reset() { *x = UserCreateReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[7] + mi := &file_user_user_msg_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -399,7 +493,7 @@ func (x *UserCreateReq) String() string { func (*UserCreateReq) ProtoMessage() {} func (x *UserCreateReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[7] + mi := &file_user_user_msg_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -412,7 +506,7 @@ func (x *UserCreateReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserCreateReq.ProtoReflect.Descriptor instead. func (*UserCreateReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{7} + return file_user_user_msg_proto_rawDescGZIP(), []int{9} } func (x *UserCreateReq) GetNickName() string { @@ -433,7 +527,7 @@ type UserCreateResp struct { func (x *UserCreateResp) Reset() { *x = UserCreateResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[8] + mi := &file_user_user_msg_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -446,7 +540,7 @@ func (x *UserCreateResp) String() string { func (*UserCreateResp) ProtoMessage() {} func (x *UserCreateResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[8] + mi := &file_user_user_msg_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -459,7 +553,7 @@ func (x *UserCreateResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserCreateResp.ProtoReflect.Descriptor instead. func (*UserCreateResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{8} + return file_user_user_msg_proto_rawDescGZIP(), []int{10} } func (x *UserCreateResp) GetIsSucc() bool { @@ -481,7 +575,7 @@ type UserAddResReq struct { func (x *UserAddResReq) Reset() { *x = UserAddResReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[9] + mi := &file_user_user_msg_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -494,7 +588,7 @@ func (x *UserAddResReq) String() string { func (*UserAddResReq) ProtoMessage() {} func (x *UserAddResReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[9] + mi := &file_user_user_msg_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -507,7 +601,7 @@ func (x *UserAddResReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserAddResReq.ProtoReflect.Descriptor instead. func (*UserAddResReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{9} + return file_user_user_msg_proto_rawDescGZIP(), []int{11} } func (x *UserAddResReq) GetRes() *UserAssets { @@ -528,7 +622,7 @@ type UserAddResResp struct { func (x *UserAddResResp) Reset() { *x = UserAddResResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[10] + mi := &file_user_user_msg_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -541,7 +635,7 @@ func (x *UserAddResResp) String() string { func (*UserAddResResp) ProtoMessage() {} func (x *UserAddResResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[10] + mi := &file_user_user_msg_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -554,7 +648,7 @@ func (x *UserAddResResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserAddResResp.ProtoReflect.Descriptor instead. func (*UserAddResResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{10} + return file_user_user_msg_proto_rawDescGZIP(), []int{12} } func (x *UserAddResResp) GetRes() *UserAssets { @@ -580,7 +674,7 @@ type UserResChangePush struct { func (x *UserResChangePush) Reset() { *x = UserResChangePush{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[11] + mi := &file_user_user_msg_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -593,7 +687,7 @@ func (x *UserResChangePush) String() string { func (*UserResChangePush) ProtoMessage() {} func (x *UserResChangePush) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[11] + mi := &file_user_user_msg_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -606,7 +700,7 @@ func (x *UserResChangePush) ProtoReflect() protoreflect.Message { // Deprecated: Use UserResChangePush.ProtoReflect.Descriptor instead. func (*UserResChangePush) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{11} + return file_user_user_msg_proto_rawDescGZIP(), []int{13} } func (x *UserResChangePush) GetGold() int32 { @@ -654,7 +748,7 @@ type UserGetSettingReq struct { func (x *UserGetSettingReq) Reset() { *x = UserGetSettingReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[12] + mi := &file_user_user_msg_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -667,7 +761,7 @@ func (x *UserGetSettingReq) String() string { func (*UserGetSettingReq) ProtoMessage() {} func (x *UserGetSettingReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[12] + mi := &file_user_user_msg_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -680,7 +774,7 @@ func (x *UserGetSettingReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserGetSettingReq.ProtoReflect.Descriptor instead. func (*UserGetSettingReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{12} + return file_user_user_msg_proto_rawDescGZIP(), []int{14} } type UserGetSettingResp struct { @@ -694,7 +788,7 @@ type UserGetSettingResp struct { func (x *UserGetSettingResp) Reset() { *x = UserGetSettingResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[13] + mi := &file_user_user_msg_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -707,7 +801,7 @@ func (x *UserGetSettingResp) String() string { func (*UserGetSettingResp) ProtoMessage() {} func (x *UserGetSettingResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[13] + mi := &file_user_user_msg_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -720,7 +814,7 @@ func (x *UserGetSettingResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserGetSettingResp.ProtoReflect.Descriptor instead. func (*UserGetSettingResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{13} + return file_user_user_msg_proto_rawDescGZIP(), []int{15} } func (x *UserGetSettingResp) GetSetting() *DBUserSetting { @@ -742,7 +836,7 @@ type UserUpdateSettingReq struct { func (x *UserUpdateSettingReq) Reset() { *x = UserUpdateSettingReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[14] + mi := &file_user_user_msg_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -755,7 +849,7 @@ func (x *UserUpdateSettingReq) String() string { func (*UserUpdateSettingReq) ProtoMessage() {} func (x *UserUpdateSettingReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[14] + mi := &file_user_user_msg_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -768,7 +862,7 @@ func (x *UserUpdateSettingReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserUpdateSettingReq.ProtoReflect.Descriptor instead. func (*UserUpdateSettingReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{14} + return file_user_user_msg_proto_rawDescGZIP(), []int{16} } func (x *UserUpdateSettingReq) GetSetting() *DBUserSetting { @@ -789,7 +883,7 @@ type UserUpdateSettingResp struct { func (x *UserUpdateSettingResp) Reset() { *x = UserUpdateSettingResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[15] + mi := &file_user_user_msg_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -802,7 +896,7 @@ func (x *UserUpdateSettingResp) String() string { func (*UserUpdateSettingResp) ProtoMessage() {} func (x *UserUpdateSettingResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[15] + mi := &file_user_user_msg_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -815,7 +909,7 @@ func (x *UserUpdateSettingResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserUpdateSettingResp.ProtoReflect.Descriptor instead. func (*UserUpdateSettingResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{15} + return file_user_user_msg_proto_rawDescGZIP(), []int{17} } func (x *UserUpdateSettingResp) GetUid() string { @@ -835,7 +929,7 @@ type UserVeriCodeReq struct { func (x *UserVeriCodeReq) Reset() { *x = UserVeriCodeReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[16] + mi := &file_user_user_msg_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -848,7 +942,7 @@ func (x *UserVeriCodeReq) String() string { func (*UserVeriCodeReq) ProtoMessage() {} func (x *UserVeriCodeReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[16] + mi := &file_user_user_msg_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -861,7 +955,7 @@ func (x *UserVeriCodeReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserVeriCodeReq.ProtoReflect.Descriptor instead. func (*UserVeriCodeReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{16} + return file_user_user_msg_proto_rawDescGZIP(), []int{18} } type UserVeriCodeResp struct { @@ -875,7 +969,7 @@ type UserVeriCodeResp struct { func (x *UserVeriCodeResp) Reset() { *x = UserVeriCodeResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[17] + mi := &file_user_user_msg_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -888,7 +982,7 @@ func (x *UserVeriCodeResp) String() string { func (*UserVeriCodeResp) ProtoMessage() {} func (x *UserVeriCodeResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[17] + mi := &file_user_user_msg_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -901,7 +995,7 @@ func (x *UserVeriCodeResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserVeriCodeResp.ProtoReflect.Descriptor instead. func (*UserVeriCodeResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{17} + return file_user_user_msg_proto_rawDescGZIP(), []int{19} } func (x *UserVeriCodeResp) GetCode() int32 { @@ -923,7 +1017,7 @@ type UserInitdataReq struct { func (x *UserInitdataReq) Reset() { *x = UserInitdataReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[18] + mi := &file_user_user_msg_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -936,7 +1030,7 @@ func (x *UserInitdataReq) String() string { func (*UserInitdataReq) ProtoMessage() {} func (x *UserInitdataReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[18] + mi := &file_user_user_msg_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -949,7 +1043,7 @@ func (x *UserInitdataReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserInitdataReq.ProtoReflect.Descriptor instead. func (*UserInitdataReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{18} + return file_user_user_msg_proto_rawDescGZIP(), []int{20} } func (x *UserInitdataReq) GetCode() int32 { @@ -970,7 +1064,7 @@ type UserInitdataResp struct { func (x *UserInitdataResp) Reset() { *x = UserInitdataResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[19] + mi := &file_user_user_msg_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -983,7 +1077,7 @@ func (x *UserInitdataResp) String() string { func (*UserInitdataResp) ProtoMessage() {} func (x *UserInitdataResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[19] + mi := &file_user_user_msg_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -996,7 +1090,7 @@ func (x *UserInitdataResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserInitdataResp.ProtoReflect.Descriptor instead. func (*UserInitdataResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{19} + return file_user_user_msg_proto_rawDescGZIP(), []int{21} } func (x *UserInitdataResp) GetUid() string { @@ -1018,7 +1112,7 @@ type UserModifynameReq struct { func (x *UserModifynameReq) Reset() { *x = UserModifynameReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[20] + mi := &file_user_user_msg_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1031,7 +1125,7 @@ func (x *UserModifynameReq) String() string { func (*UserModifynameReq) ProtoMessage() {} func (x *UserModifynameReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[20] + mi := &file_user_user_msg_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1044,7 +1138,7 @@ func (x *UserModifynameReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserModifynameReq.ProtoReflect.Descriptor instead. func (*UserModifynameReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{20} + return file_user_user_msg_proto_rawDescGZIP(), []int{22} } func (x *UserModifynameReq) GetName() string { @@ -1067,7 +1161,7 @@ type UserModifynameResp struct { func (x *UserModifynameResp) Reset() { *x = UserModifynameResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[21] + mi := &file_user_user_msg_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1080,7 +1174,7 @@ func (x *UserModifynameResp) String() string { func (*UserModifynameResp) ProtoMessage() {} func (x *UserModifynameResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[21] + mi := &file_user_user_msg_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1093,7 +1187,7 @@ func (x *UserModifynameResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserModifynameResp.ProtoReflect.Descriptor instead. func (*UserModifynameResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{21} + return file_user_user_msg_proto_rawDescGZIP(), []int{23} } func (x *UserModifynameResp) GetUid() string { @@ -1127,7 +1221,7 @@ type UserGetTujianReq struct { func (x *UserGetTujianReq) Reset() { *x = UserGetTujianReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[22] + mi := &file_user_user_msg_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1140,7 +1234,7 @@ func (x *UserGetTujianReq) String() string { func (*UserGetTujianReq) ProtoMessage() {} func (x *UserGetTujianReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[22] + mi := &file_user_user_msg_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1153,7 +1247,7 @@ func (x *UserGetTujianReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserGetTujianReq.ProtoReflect.Descriptor instead. func (*UserGetTujianReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{22} + return file_user_user_msg_proto_rawDescGZIP(), []int{24} } type UserGetTujianResp struct { @@ -1167,7 +1261,7 @@ type UserGetTujianResp struct { func (x *UserGetTujianResp) Reset() { *x = UserGetTujianResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[23] + mi := &file_user_user_msg_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1180,7 +1274,7 @@ func (x *UserGetTujianResp) String() string { func (*UserGetTujianResp) ProtoMessage() {} func (x *UserGetTujianResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[23] + mi := &file_user_user_msg_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1193,7 +1287,7 @@ func (x *UserGetTujianResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserGetTujianResp.ProtoReflect.Descriptor instead. func (*UserGetTujianResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{23} + return file_user_user_msg_proto_rawDescGZIP(), []int{25} } func (x *UserGetTujianResp) GetHeroids() []string { @@ -1217,7 +1311,7 @@ type UserChangedPush struct { func (x *UserChangedPush) Reset() { *x = UserChangedPush{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[24] + mi := &file_user_user_msg_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1230,7 +1324,7 @@ func (x *UserChangedPush) String() string { func (*UserChangedPush) ProtoMessage() {} func (x *UserChangedPush) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[24] + mi := &file_user_user_msg_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1243,7 +1337,7 @@ func (x *UserChangedPush) ProtoReflect() protoreflect.Message { // Deprecated: Use UserChangedPush.ProtoReflect.Descriptor instead. func (*UserChangedPush) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{24} + return file_user_user_msg_proto_rawDescGZIP(), []int{26} } func (x *UserChangedPush) GetUid() string { @@ -1285,7 +1379,7 @@ type UserFigureReq struct { func (x *UserFigureReq) Reset() { *x = UserFigureReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[25] + mi := &file_user_user_msg_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1298,7 +1392,7 @@ func (x *UserFigureReq) String() string { func (*UserFigureReq) ProtoMessage() {} func (x *UserFigureReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[25] + mi := &file_user_user_msg_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1311,7 +1405,7 @@ func (x *UserFigureReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserFigureReq.ProtoReflect.Descriptor instead. func (*UserFigureReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{25} + return file_user_user_msg_proto_rawDescGZIP(), []int{27} } func (x *UserFigureReq) GetPreinstall() int32 { @@ -1376,7 +1470,7 @@ type UserFigureResp struct { func (x *UserFigureResp) Reset() { *x = UserFigureResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[26] + mi := &file_user_user_msg_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1389,7 +1483,7 @@ func (x *UserFigureResp) String() string { func (*UserFigureResp) ProtoMessage() {} func (x *UserFigureResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[26] + mi := &file_user_user_msg_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1402,7 +1496,7 @@ func (x *UserFigureResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserFigureResp.ProtoReflect.Descriptor instead. func (*UserFigureResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{26} + return file_user_user_msg_proto_rawDescGZIP(), []int{28} } func (x *UserFigureResp) GetUid() string { @@ -1438,7 +1532,7 @@ type UserModifysignReq struct { func (x *UserModifysignReq) Reset() { *x = UserModifysignReq{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[27] + mi := &file_user_user_msg_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1451,7 +1545,7 @@ func (x *UserModifysignReq) String() string { func (*UserModifysignReq) ProtoMessage() {} func (x *UserModifysignReq) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[27] + mi := &file_user_user_msg_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1464,7 +1558,7 @@ func (x *UserModifysignReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UserModifysignReq.ProtoReflect.Descriptor instead. func (*UserModifysignReq) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{27} + return file_user_user_msg_proto_rawDescGZIP(), []int{29} } func (x *UserModifysignReq) GetSign() string { @@ -1485,7 +1579,7 @@ type UserModifysignResp struct { func (x *UserModifysignResp) Reset() { *x = UserModifysignResp{} if protoimpl.UnsafeEnabled { - mi := &file_user_user_msg_proto_msgTypes[28] + mi := &file_user_user_msg_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1498,7 +1592,7 @@ func (x *UserModifysignResp) String() string { func (*UserModifysignResp) ProtoMessage() {} func (x *UserModifysignResp) ProtoReflect() protoreflect.Message { - mi := &file_user_user_msg_proto_msgTypes[28] + mi := &file_user_user_msg_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1511,7 +1605,7 @@ func (x *UserModifysignResp) ProtoReflect() protoreflect.Message { // Deprecated: Use UserModifysignResp.ProtoReflect.Descriptor instead. func (*UserModifysignResp) Descriptor() ([]byte, []int) { - return file_user_user_msg_proto_rawDescGZIP(), []int{28} + return file_user_user_msg_proto_rawDescGZIP(), []int{30} } func (x *UserModifysignResp) GetUid() string { @@ -1539,103 +1633,109 @@ var file_user_user_msg_proto_rawDesc = []byte{ 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x02, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x52, 0x02, 0x65, 0x78, 0x12, 0x18, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x6f, 0x77, 0x22, 0x0f, 0x0a, 0x0d, 0x55, - 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x22, 0x10, 0x0a, 0x0e, - 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x3d, - 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x22, 0x4c, 0x0a, - 0x10, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x0a, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0c, 0x55, - 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x0d, 0x55, - 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, - 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, - 0x53, 0x75, 0x63, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49, 0x73, 0x53, 0x75, - 0x63, 0x63, 0x22, 0x2e, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, - 0x52, 0x65, 0x71, 0x12, 0x1d, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x03, 0x72, - 0x65, 0x73, 0x22, 0x2f, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x03, - 0x72, 0x65, 0x73, 0x22, 0x75, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6c, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, 0x10, 0x0a, 0x03, - 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x0e, - 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, - 0x0a, 0x03, 0x76, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, - 0x12, 0x18, 0x0a, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x07, 0x64, 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x55, 0x73, - 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x22, - 0x3e, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, - 0x40, 0x0a, 0x14, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, - 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, - 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, - 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, - 0x67, 0x22, 0x29, 0x0a, 0x15, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, - 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, - 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x22, - 0x26, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x24, - 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x69, 0x64, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, - 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x50, 0x0a, - 0x12, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, - 0x12, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, - 0x52, 0x65, 0x71, 0x22, 0x2d, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, - 0x6a, 0x69, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, - 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x69, - 0x64, 0x73, 0x22, 0x45, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, + 0x28, 0x03, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x6f, 0x77, 0x22, 0x0d, 0x0a, 0x0b, 0x55, + 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x22, 0x4a, 0x0a, 0x0c, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, + 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, 0x0a, 0x02, 0x65, 0x78, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, + 0x6e, 0x64, 0x52, 0x02, 0x65, 0x78, 0x22, 0x0f, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, + 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x22, 0x10, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x4c, + 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x22, 0x3d, 0x0a, 0x0f, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x69, 0x64, 0x22, 0x4c, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, + 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x45, 0x72, 0x72, + 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2e, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, + 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x28, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x49, 0x73, 0x53, 0x75, 0x63, 0x63, 0x22, 0x2e, 0x0a, + 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x1d, + 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, 0x73, + 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x2f, 0x0a, + 0x0e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, + 0x1d, 0x0a, 0x03, 0x72, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55, + 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x03, 0x72, 0x65, 0x73, 0x22, 0x75, + 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, + 0x75, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x04, 0x67, 0x6f, 0x6c, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x65, 0x78, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0xe3, 0x01, 0x0a, 0x0d, 0x55, 0x73, - 0x65, 0x72, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x70, - 0x72, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x70, 0x72, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x04, 0x68, 0x61, 0x69, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x05, 0x2e, 0x48, 0x61, 0x69, 0x72, 0x52, 0x04, 0x68, 0x61, 0x69, 0x72, 0x12, 0x19, - 0x0a, 0x04, 0x65, 0x79, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x45, - 0x79, 0x65, 0x73, 0x52, 0x04, 0x65, 0x79, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x05, 0x6d, 0x6f, 0x75, - 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4d, 0x6f, 0x75, 0x74, 0x68, - 0x52, 0x05, 0x6d, 0x6f, 0x75, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, - 0x64, 0x79, 0x12, 0x2b, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, - 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x22, - 0x5b, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x06, 0x66, - 0x69, 0x67, 0x75, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x46, 0x69, - 0x67, 0x75, 0x72, 0x65, 0x52, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x22, 0x27, 0x0a, 0x11, - 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, - 0x71, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x73, 0x69, 0x67, 0x6e, 0x22, 0x26, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, - 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x42, 0x06, 0x5a, - 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x69, 0x70, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x76, 0x69, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x64, + 0x69, 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x64, 0x69, + 0x61, 0x6d, 0x6f, 0x6e, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, + 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x22, 0x3e, 0x0a, 0x12, 0x55, 0x73, + 0x65, 0x72, 0x47, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x40, 0x0a, 0x14, 0x55, 0x73, + 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, + 0x65, 0x71, 0x12, 0x28, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x74, 0x74, + 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x29, 0x0a, 0x15, + 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, + 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x56, + 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x22, 0x26, 0x0a, 0x10, 0x55, 0x73, + 0x65, 0x72, 0x56, 0x65, 0x72, 0x69, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x12, + 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, + 0x64, 0x65, 0x22, 0x25, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x69, 0x74, 0x64, 0x61, + 0x74, 0x61, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x24, 0x0a, 0x10, 0x55, 0x73, 0x65, + 0x72, 0x49, 0x6e, 0x69, 0x74, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, + 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, + 0x27, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, + 0x65, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x50, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, + 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x12, 0x0a, 0x10, 0x55, 0x73, + 0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x22, 0x2d, + 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x47, 0x65, 0x74, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x52, + 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x73, 0x22, 0x45, 0x0a, + 0x0f, 0x55, 0x73, 0x65, 0x72, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x50, 0x75, 0x73, 0x68, + 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, + 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x03, 0x65, 0x78, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x02, 0x6c, 0x76, 0x22, 0xe3, 0x01, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x46, 0x69, 0x67, + 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x72, 0x65, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6c, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x70, 0x72, 0x65, 0x69, + 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19, + 0x0a, 0x04, 0x68, 0x61, 0x69, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x48, + 0x61, 0x69, 0x72, 0x52, 0x04, 0x68, 0x61, 0x69, 0x72, 0x12, 0x19, 0x0a, 0x04, 0x65, 0x79, 0x65, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x05, 0x2e, 0x45, 0x79, 0x65, 0x73, 0x52, 0x04, + 0x65, 0x79, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x05, 0x6d, 0x6f, 0x75, 0x74, 0x68, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x06, 0x2e, 0x4d, 0x6f, 0x75, 0x74, 0x68, 0x52, 0x05, 0x6d, 0x6f, 0x75, + 0x74, 0x68, 0x12, 0x19, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x05, 0x2e, 0x42, 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x2b, 0x0a, + 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x52, 0x0a, + 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x22, 0x5b, 0x0a, 0x0e, 0x55, 0x73, + 0x65, 0x72, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, + 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, + 0x06, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, + 0x6f, 0x64, 0x69, 0x66, 0x79, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x12, 0x0a, 0x04, + 0x73, 0x69, 0x67, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, + 0x22, 0x26, 0x0a, 0x12, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x73, 0x69, + 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1650,70 +1750,74 @@ func file_user_user_msg_proto_rawDescGZIP() []byte { return file_user_user_msg_proto_rawDescData } -var file_user_user_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_user_user_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_user_user_msg_proto_goTypes = []interface{}{ (*UserLoginReq)(nil), // 0: UserLoginReq (*UserLoginResp)(nil), // 1: UserLoginResp - (*UserLogoutReq)(nil), // 2: UserLogoutReq - (*UserLogoutResp)(nil), // 3: UserLogoutResp - (*UserRegisterReq)(nil), // 4: UserRegisterReq - (*UserRegisterResp)(nil), // 5: UserRegisterResp - (*UserLoadResp)(nil), // 6: UserLoadResp - (*UserCreateReq)(nil), // 7: UserCreateReq - (*UserCreateResp)(nil), // 8: UserCreateResp - (*UserAddResReq)(nil), // 9: UserAddResReq - (*UserAddResResp)(nil), // 10: UserAddResResp - (*UserResChangePush)(nil), // 11: UserResChangePush - (*UserGetSettingReq)(nil), // 12: UserGetSettingReq - (*UserGetSettingResp)(nil), // 13: UserGetSettingResp - (*UserUpdateSettingReq)(nil), // 14: UserUpdateSettingReq - (*UserUpdateSettingResp)(nil), // 15: UserUpdateSettingResp - (*UserVeriCodeReq)(nil), // 16: UserVeriCodeReq - (*UserVeriCodeResp)(nil), // 17: UserVeriCodeResp - (*UserInitdataReq)(nil), // 18: UserInitdataReq - (*UserInitdataResp)(nil), // 19: UserInitdataResp - (*UserModifynameReq)(nil), // 20: UserModifynameReq - (*UserModifynameResp)(nil), // 21: UserModifynameResp - (*UserGetTujianReq)(nil), // 22: UserGetTujianReq - (*UserGetTujianResp)(nil), // 23: UserGetTujianResp - (*UserChangedPush)(nil), // 24: UserChangedPush - (*UserFigureReq)(nil), // 25: UserFigureReq - (*UserFigureResp)(nil), // 26: UserFigureResp - (*UserModifysignReq)(nil), // 27: UserModifysignReq - (*UserModifysignResp)(nil), // 28: UserModifysignResp - (*DBUser)(nil), // 29: DBUser - (*DBUserExpand)(nil), // 30: DBUserExpand - (ErrorCode)(0), // 31: ErrorCode - (*CacheUser)(nil), // 32: CacheUser - (*UserAssets)(nil), // 33: UserAssets - (*DBUserSetting)(nil), // 34: DBUserSetting - (*Hair)(nil), // 35: Hair - (*Eyes)(nil), // 36: Eyes - (*Mouth)(nil), // 37: Mouth - (*Body)(nil), // 38: Body - (*Complexion)(nil), // 39: Complexion - (*Figure)(nil), // 40: Figure + (*UserInfoReq)(nil), // 2: UserInfoReq + (*UserInfoResp)(nil), // 3: UserInfoResp + (*UserLogoutReq)(nil), // 4: UserLogoutReq + (*UserLogoutResp)(nil), // 5: UserLogoutResp + (*UserRegisterReq)(nil), // 6: UserRegisterReq + (*UserRegisterResp)(nil), // 7: UserRegisterResp + (*UserLoadResp)(nil), // 8: UserLoadResp + (*UserCreateReq)(nil), // 9: UserCreateReq + (*UserCreateResp)(nil), // 10: UserCreateResp + (*UserAddResReq)(nil), // 11: UserAddResReq + (*UserAddResResp)(nil), // 12: UserAddResResp + (*UserResChangePush)(nil), // 13: UserResChangePush + (*UserGetSettingReq)(nil), // 14: UserGetSettingReq + (*UserGetSettingResp)(nil), // 15: UserGetSettingResp + (*UserUpdateSettingReq)(nil), // 16: UserUpdateSettingReq + (*UserUpdateSettingResp)(nil), // 17: UserUpdateSettingResp + (*UserVeriCodeReq)(nil), // 18: UserVeriCodeReq + (*UserVeriCodeResp)(nil), // 19: UserVeriCodeResp + (*UserInitdataReq)(nil), // 20: UserInitdataReq + (*UserInitdataResp)(nil), // 21: UserInitdataResp + (*UserModifynameReq)(nil), // 22: UserModifynameReq + (*UserModifynameResp)(nil), // 23: UserModifynameResp + (*UserGetTujianReq)(nil), // 24: UserGetTujianReq + (*UserGetTujianResp)(nil), // 25: UserGetTujianResp + (*UserChangedPush)(nil), // 26: UserChangedPush + (*UserFigureReq)(nil), // 27: UserFigureReq + (*UserFigureResp)(nil), // 28: UserFigureResp + (*UserModifysignReq)(nil), // 29: UserModifysignReq + (*UserModifysignResp)(nil), // 30: UserModifysignResp + (*DBUser)(nil), // 31: DBUser + (*DBUserExpand)(nil), // 32: DBUserExpand + (ErrorCode)(0), // 33: ErrorCode + (*CacheUser)(nil), // 34: CacheUser + (*UserAssets)(nil), // 35: UserAssets + (*DBUserSetting)(nil), // 36: DBUserSetting + (*Hair)(nil), // 37: Hair + (*Eyes)(nil), // 38: Eyes + (*Mouth)(nil), // 39: Mouth + (*Body)(nil), // 40: Body + (*Complexion)(nil), // 41: Complexion + (*Figure)(nil), // 42: Figure } var file_user_user_msg_proto_depIdxs = []int32{ - 29, // 0: UserLoginResp.data:type_name -> DBUser - 30, // 1: UserLoginResp.ex:type_name -> DBUserExpand - 31, // 2: UserRegisterResp.Code:type_name -> ErrorCode - 32, // 3: UserLoadResp.data:type_name -> CacheUser - 33, // 4: UserAddResReq.res:type_name -> UserAssets - 33, // 5: UserAddResResp.res:type_name -> UserAssets - 34, // 6: UserGetSettingResp.setting:type_name -> DBUserSetting - 34, // 7: UserUpdateSettingReq.setting:type_name -> DBUserSetting - 35, // 8: UserFigureReq.hair:type_name -> Hair - 36, // 9: UserFigureReq.eyes:type_name -> Eyes - 37, // 10: UserFigureReq.mouth:type_name -> Mouth - 38, // 11: UserFigureReq.body:type_name -> Body - 39, // 12: UserFigureReq.complexion:type_name -> Complexion - 40, // 13: UserFigureResp.figure:type_name -> Figure - 14, // [14:14] is the sub-list for method output_type - 14, // [14:14] is the sub-list for method input_type - 14, // [14:14] is the sub-list for extension type_name - 14, // [14:14] is the sub-list for extension extendee - 0, // [0:14] is the sub-list for field type_name + 31, // 0: UserLoginResp.data:type_name -> DBUser + 32, // 1: UserLoginResp.ex:type_name -> DBUserExpand + 31, // 2: UserInfoResp.data:type_name -> DBUser + 32, // 3: UserInfoResp.ex:type_name -> DBUserExpand + 33, // 4: UserRegisterResp.Code:type_name -> ErrorCode + 34, // 5: UserLoadResp.data:type_name -> CacheUser + 35, // 6: UserAddResReq.res:type_name -> UserAssets + 35, // 7: UserAddResResp.res:type_name -> UserAssets + 36, // 8: UserGetSettingResp.setting:type_name -> DBUserSetting + 36, // 9: UserUpdateSettingReq.setting:type_name -> DBUserSetting + 37, // 10: UserFigureReq.hair:type_name -> Hair + 38, // 11: UserFigureReq.eyes:type_name -> Eyes + 39, // 12: UserFigureReq.mouth:type_name -> Mouth + 40, // 13: UserFigureReq.body:type_name -> Body + 41, // 14: UserFigureReq.complexion:type_name -> Complexion + 42, // 15: UserFigureResp.figure:type_name -> Figure + 16, // [16:16] is the sub-list for method output_type + 16, // [16:16] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_user_user_msg_proto_init() } @@ -1751,7 +1855,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserLogoutReq); i { + switch v := v.(*UserInfoReq); i { case 0: return &v.state case 1: @@ -1763,7 +1867,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserLogoutResp); i { + switch v := v.(*UserInfoResp); i { case 0: return &v.state case 1: @@ -1775,7 +1879,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserRegisterReq); i { + switch v := v.(*UserLogoutReq); i { case 0: return &v.state case 1: @@ -1787,7 +1891,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserRegisterResp); i { + switch v := v.(*UserLogoutResp); i { case 0: return &v.state case 1: @@ -1799,7 +1903,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserLoadResp); i { + switch v := v.(*UserRegisterReq); i { case 0: return &v.state case 1: @@ -1811,7 +1915,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserCreateReq); i { + switch v := v.(*UserRegisterResp); i { case 0: return &v.state case 1: @@ -1823,7 +1927,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserCreateResp); i { + switch v := v.(*UserLoadResp); i { case 0: return &v.state case 1: @@ -1835,7 +1939,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAddResReq); i { + switch v := v.(*UserCreateReq); i { case 0: return &v.state case 1: @@ -1847,7 +1951,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAddResResp); i { + switch v := v.(*UserCreateResp); i { case 0: return &v.state case 1: @@ -1859,7 +1963,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserResChangePush); i { + switch v := v.(*UserAddResReq); i { case 0: return &v.state case 1: @@ -1871,7 +1975,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGetSettingReq); i { + switch v := v.(*UserAddResResp); i { case 0: return &v.state case 1: @@ -1883,7 +1987,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGetSettingResp); i { + switch v := v.(*UserResChangePush); i { case 0: return &v.state case 1: @@ -1895,7 +1999,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserUpdateSettingReq); i { + switch v := v.(*UserGetSettingReq); i { case 0: return &v.state case 1: @@ -1907,7 +2011,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserUpdateSettingResp); i { + switch v := v.(*UserGetSettingResp); i { case 0: return &v.state case 1: @@ -1919,7 +2023,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserVeriCodeReq); i { + switch v := v.(*UserUpdateSettingReq); i { case 0: return &v.state case 1: @@ -1931,7 +2035,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserVeriCodeResp); i { + switch v := v.(*UserUpdateSettingResp); i { case 0: return &v.state case 1: @@ -1943,7 +2047,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInitdataReq); i { + switch v := v.(*UserVeriCodeReq); i { case 0: return &v.state case 1: @@ -1955,7 +2059,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserInitdataResp); i { + switch v := v.(*UserVeriCodeResp); i { case 0: return &v.state case 1: @@ -1967,7 +2071,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserModifynameReq); i { + switch v := v.(*UserInitdataReq); i { case 0: return &v.state case 1: @@ -1979,7 +2083,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserModifynameResp); i { + switch v := v.(*UserInitdataResp); i { case 0: return &v.state case 1: @@ -1991,7 +2095,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGetTujianReq); i { + switch v := v.(*UserModifynameReq); i { case 0: return &v.state case 1: @@ -2003,7 +2107,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserGetTujianResp); i { + switch v := v.(*UserModifynameResp); i { case 0: return &v.state case 1: @@ -2015,7 +2119,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserChangedPush); i { + switch v := v.(*UserGetTujianReq); i { case 0: return &v.state case 1: @@ -2027,7 +2131,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserFigureReq); i { + switch v := v.(*UserGetTujianResp); i { case 0: return &v.state case 1: @@ -2039,7 +2143,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserFigureResp); i { + switch v := v.(*UserChangedPush); i { case 0: return &v.state case 1: @@ -2051,7 +2155,7 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserModifysignReq); i { + switch v := v.(*UserFigureReq); i { case 0: return &v.state case 1: @@ -2063,6 +2167,30 @@ func file_user_user_msg_proto_init() { } } file_user_user_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserFigureResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_user_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UserModifysignReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_user_user_msg_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UserModifysignResp); i { case 0: return &v.state @@ -2081,7 +2209,7 @@ func file_user_user_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_user_user_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 29, + NumMessages: 31, NumExtensions: 0, NumServices: 0, }, diff --git a/pb/userexpand.pb.go b/pb/userexpand.pb.go index c9734679f..a05254a86 100644 --- a/pb/userexpand.pb.go +++ b/pb/userexpand.pb.go @@ -383,6 +383,9 @@ type DBUserExpand struct { Activeday int32 `protobuf:"varint,11,opt,name=activeday,proto3" json:"activeday"` //日活跃度 Activeweek int32 `protobuf:"varint,12,opt,name=activeweek,proto3" json:"activeweek"` //周活跃度 Sign string `protobuf:"bytes,13,opt,name=sign,proto3" json:"sign"` //用户签名 + FriendPoint int32 `protobuf:"varint,14,opt,name=friendPoint,proto3" json:"friendPoint"` //友情点 + FriendPointID int32 `protobuf:"varint,15,opt,name=friendPointID,proto3" json:"friendPointID"` //每日获赠友情点 + FriendPointOD int32 `protobuf:"varint,16,opt,name=friendPointOD,proto3" json:"friendPointOD"` //每日送出友情点 } func (x *DBUserExpand) Reset() { @@ -508,6 +511,27 @@ func (x *DBUserExpand) GetSign() string { return "" } +func (x *DBUserExpand) GetFriendPoint() int32 { + if x != nil { + return x.FriendPoint + } + return 0 +} + +func (x *DBUserExpand) GetFriendPointID() int32 { + if x != nil { + return x.FriendPointID + } + return 0 +} + +func (x *DBUserExpand) GetFriendPointOD() int32 { + if x != nil { + return x.FriendPointOD + } + return 0 +} + var File_userexpand_proto protoreflect.FileDescriptor var file_userexpand_proto_rawDesc = []byte{ @@ -536,7 +560,7 @@ var file_userexpand_proto_rawDesc = []byte{ 0x6f, 0x64, 0x79, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x2b, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x70, - 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x22, 0xe1, 0x04, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, + 0x6c, 0x65, 0x78, 0x69, 0x6f, 0x6e, 0x22, 0xcf, 0x05, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 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, 0x2c, 0x0a, 0x11, 0x6c, 0x61, 0x73, @@ -566,16 +590,23 @@ var file_userexpand_proto_rawDesc = []byte{ 0x64, 0x61, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x77, 0x65, 0x65, 0x6b, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x77, 0x65, 0x65, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x1a, 0x39, 0x0a, 0x0b, 0x54, 0x75, 0x6a, 0x69, 0x61, - 0x6e, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x46, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x09, 0x52, 0x04, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x66, 0x72, 0x69, 0x65, 0x6e, + 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x66, 0x72, + 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x66, 0x72, 0x69, + 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x49, 0x44, 0x12, + 0x24, 0x0a, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x4f, 0x44, + 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x4f, 0x44, 0x1a, 0x39, 0x0a, 0x0b, 0x54, 0x75, 0x6a, 0x69, 0x61, 0x6e, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x46, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x46, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/utils/strings.go b/utils/strings.go index a3b27cae1..c533256e6 100644 --- a/utils/strings.go +++ b/utils/strings.go @@ -9,10 +9,11 @@ import ( "github.com/spf13/cast" ) -func ParseP(p string) (string, string, bool) { - s := strings.SplitN(p, ".", 2) +// 拆分Uid +func UIdSplit(uid string) (string, string, bool) { + s := strings.SplitN(uid, "_", 2) if len(s) < 2 { - log.Debugf("param P err: %s", p) + log.Debugf("split uid err: %s", uid) return "", "", false }