This commit is contained in:
liwei1dao 2022-10-31 18:56:25 +08:00
commit bb5a8ca643
16 changed files with 742 additions and 306 deletions

View File

@ -304,5 +304,11 @@
"open": true, "open": true,
"routrules": "~/worker", "routrules": "~/worker",
"describe": "公会任务列表" "describe": "公会任务列表"
},
{
"msgid": "sociaty.log",
"open": true,
"routrules": "~/worker",
"describe": "公会日志列表"
} }
] ]

View File

@ -47,9 +47,6 @@ func (this *SociatyListView) CreateView(t *model.TestCase) fyne.CanvasObject {
// 申请 // 申请
applyBtn := widget.NewButton("申请", func() { applyBtn := widget.NewButton("申请", func() {
defer func() {
common.ShowTip("已申请")
}()
selId := this.itemList.SelItemId selId := this.itemList.SelItemId
if selId == "" { if selId == "" {
common.ShowTip("请选择项目") common.ShowTip("请选择项目")

View File

@ -25,16 +25,18 @@ import (
type SociatyMineView struct { type SociatyMineView struct {
BaseformView BaseformView
loadSociaty func() loadSociaty func()
flag bool flag_mine bool
itemList *common.ItemList //申请列表 itemList *common.ItemList //申请列表
memberList *common.ItemList //成员列表 memberList *common.ItemList //成员列表
flag2 bool logList *common.ItemList //日志列表
flag_apply bool
applyListFun func() applyListFun func()
memberListFun func() memberListFun func()
sociaty *pb.DBSociaty // 公会 sociaty *pb.DBSociaty // 公会
job pb.SociatyJob // 职位 job pb.SociatyJob // 职位
uid string uid string
flag3 bool flag_memeber bool
flag_log bool
} }
type entryItem struct { type entryItem struct {
@ -126,19 +128,20 @@ func (this *SociatyMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
}, this.w) }, this.w)
}) })
// 转让
zhuanrangBtn := widget.NewButton("转让", nil)
//申请列表 //申请列表
applyListBtn := widget.NewButton("申请审批", this.showSociatyApplyListWin) applyListBtn := widget.NewButton("申请审批", this.showSociatyApplyListWin)
// 任务列表 // 任务列表
taskListBtn := widget.NewButton("任务列表", this.showTaskListWin) taskListBtn := widget.NewButton("任务列表", this.showTaskListWin)
// 日志
logBtn := widget.NewButton("日志", this.showLogWin)
defer func() { defer func() {
this.loadSociaty() this.loadSociaty()
time.Sleep(time.Millisecond * 30) //必须要延迟,否则职位获取不到 time.Sleep(time.Millisecond * 30) //必须要延迟,否则职位获取不到
if this.sociaty == nil { if this.sociaty == nil {
dialog.ShowInformation("提示", "还没有加入任何公会", this.w) // dialog.ShowInformation("提示", "还没有加入任何公会", this.w)
return return
} }
if this.job == pb.SociatyJob_ADMIN || if this.job == pb.SociatyJob_ADMIN ||
@ -149,13 +152,12 @@ func (this *SociatyMineView) CreateView(t *model.TestCase) fyne.CanvasObject {
//会长 //会长
if this.job == pb.SociatyJob_PRESIDENT { if this.job == pb.SociatyJob_PRESIDENT {
btns.Add(applyListBtn) btns.Add(applyListBtn)
btns.Add(zhuanrangBtn)
btns.Add(jiesanBtn) btns.Add(jiesanBtn)
} else { } else {
btns.Add(quitBtn) btns.Add(quitBtn)
} }
btns.Add(taskListBtn) btns.Add(taskListBtn)
btns.Add(logBtn)
this.sociatyRender(item) this.sociatyRender(item)
this.form.Refresh() this.form.Refresh()
}() }()
@ -208,7 +210,7 @@ func (this *SociatyMineView) sociatyRender(item *entryItem) {
} }
func (this *SociatyMineView) dataListener(item *entryItem) { func (this *SociatyMineView) dataListener(item *entryItem) {
if this.flag { if this.flag_mine {
return return
} }
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{ this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
@ -227,6 +229,8 @@ func (this *SociatyMineView) dataListener(item *entryItem) {
if rsp.Sociaty == nil { if rsp.Sociaty == nil {
logrus.Debug("公会信息 nil") logrus.Debug("公会信息 nil")
// item = &entryItem{}
dialog.ShowInformation("提示", "未加入公会", this.w)
return return
} }
@ -251,7 +255,7 @@ func (this *SociatyMineView) dataListener(item *entryItem) {
this.form.Refresh() this.form.Refresh()
}, },
}) })
this.flag = true this.flag_mine = true
} }
// 申请列表windows // 申请列表windows
@ -339,7 +343,7 @@ func (this *SociatyMineView) showSociatyApplyListWin() {
} }
func (this *SociatyMineView) applyListen() { func (this *SociatyMineView) applyListen() {
if this.flag2 { if this.flag_apply {
return return
} }
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{ this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
@ -364,7 +368,7 @@ func (this *SociatyMineView) applyListen() {
} }
}, },
}) })
this.flag2 = true this.flag_apply = true
} }
// 成员列表windows // 成员列表windows
@ -395,22 +399,68 @@ func (this *SociatyMineView) showSociatyMemberWin() {
//弹劾 //弹劾
tanheBtn := widget.NewButton("弹劾", nil) tanheBtn := widget.NewButton("弹劾", nil)
// 日志
logBtn := widget.NewButton("日志", nil)
// 退出 // 退出
quitBtn := widget.NewButton("退出", nil) quitBtn := widget.NewButton("退出", nil)
// 转让
zhuanrangBtn := widget.NewButton("转让", func() {
selId := this.memberList.SelItemId
if selId == "" {
common.ShowTip("请选择项目")
return
}
dialog.ShowConfirm("提示", "确定转让公会?", func(b bool) {
if !b {
return
}
if err := service.GetPttService().SendToClient(
string(comm.ModuleSociaty),
sociaty.SociatySubTypeAssign,
&pb.SociatyAssignReq{
TargetId: selId,
},
); err != nil {
logrus.Error(err)
return
}
dialog.ShowInformation("提示", "转让后请重新登录", this.w)
}, this.w)
})
// 踢人
tirenBtn := widget.NewButton("踢人", func() {
selId := this.memberList.SelItemId
if selId == "" {
common.ShowTip("请选择一个成员")
return
}
if err := service.GetPttService().SendToClient(
string(comm.ModuleSociaty),
sociaty.SociatySubTypeDischarge,
&pb.SociatyDischargeReq{
TargetId: selId,
}); err != nil {
logrus.Error(err)
return
}
// this.memberList.DeleteItem(selId)
})
btns := container.NewHBox(refreshBtn) btns := container.NewHBox(refreshBtn)
// 会长 // 会长
if this.job == pb.SociatyJob_PRESIDENT { if this.job == pb.SociatyJob_PRESIDENT {
btns.Add(tirenBtn)
btns.Add(zhuanrangBtn)
} }
// 副会长或管理员 // 副会长或管理员
if this.job == pb.SociatyJob_VICEPRESIDENT || if this.job == pb.SociatyJob_VICEPRESIDENT ||
this.job == pb.SociatyJob_ADMIN { this.job == pb.SociatyJob_ADMIN {
btns.Add(tirenBtn)
btns.Add(tanheBtn) btns.Add(tanheBtn)
btns.Add(logBtn)
btns.Add(quitBtn) btns.Add(quitBtn)
} }
// 成员 // 成员
@ -426,7 +476,7 @@ func (this *SociatyMineView) showSociatyMemberWin() {
} }
func (this *SociatyMineView) memberListen() { func (this *SociatyMineView) memberListen() {
if this.flag3 { if this.flag_memeber {
return return
} }
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{ this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
@ -452,7 +502,7 @@ func (this *SociatyMineView) memberListen() {
} }
}, },
}) })
this.flag3 = true this.flag_memeber = true
} }
// 签到 // 签到
@ -516,3 +566,62 @@ func (this *SociatyMineView) taskList() {
}, },
}) })
} }
// 日志列表
func (this *SociatyMineView) showLogWin() {
this.logList = common.NewItemList()
this.logList.ItemList = this.logList.CreateList()
logList := func() {
if err := service.GetPttService().SendToClient(
string(comm.ModuleSociaty),
sociaty.SociatySubTypeLog,
&pb.SociatyLogReq{}); err != nil {
logrus.Error(err)
}
}
refreshBtn := widget.NewButtonWithIcon("", theme.ViewRefreshIcon(), func() {
this.logList.Reset()
logList()
})
defer logList()
btns := container.NewHBox(refreshBtn)
c := container.NewBorder(btns, nil, nil, nil, this.logList.ItemList)
dconf := dialog.NewCustom("日志", "关闭", c, this.w)
dconf.Resize(fyne.NewSize(800, 500))
dconf.Show()
this.logListListen()
}
func (this *SociatyMineView) logListListen() {
if this.flag_log {
return
}
this.obs.AddListener(observer.EVENT_REQ_RSP, observer.Listener{
OnNotify: func(d interface{}, args ...interface{}) {
data := d.(*pb.UserMessage)
if !(data.MainType == string(comm.ModuleSociaty) &&
data.SubType == sociaty.SociatySubTypeLog) {
return
}
rsp := &pb.SociatyLogResp{}
if !comm.ProtoUnmarshal(data, rsp) {
logrus.Error("unmarshal err")
return
}
for i, v := range rsp.Log.List {
t := time.Unix(v.Ctime, 10)
ft := t.Format(time.RFC3339)
item := common.Item{
Id: "",
Text: fmt.Sprintf("%d - %-50s %v", i+1, v.Content, ft),
}
this.logList.AddItem(item)
}
},
})
this.flag_log = true
}

View File

@ -174,6 +174,8 @@ const (
TableSociaty = "sociaty" TableSociaty = "sociaty"
// 公会任务 // 公会任务
TableSociatyTask = "sociatytask" TableSociatyTask = "sociatytask"
// 公会日志
TableSociatyLog = "sociatylog"
) )
//RPC服务接口定义处 //RPC服务接口定义处

View File

@ -29,6 +29,7 @@ const (
SociatySubTypeActivityReceive = "activityreceive" SociatySubTypeActivityReceive = "activityreceive"
SociatySubTypeRank = "rank" SociatySubTypeRank = "rank"
SociatySubTypeTasklist = "tasklist" SociatySubTypeTasklist = "tasklist"
SociatySubTypeLog = "log"
) )
type apiComp struct { type apiComp struct {

View File

@ -21,6 +21,12 @@ func (this *apiComp) Assign(session comm.IUserSession, req *pb.SociatyAssignReq)
} }
uid := session.GetUserId() uid := session.GetUserId()
if uid == req.TargetId {
code = pb.ErrorCode_ReqParameterError
this.module.Errorf("不能转让给自己 uid:%s", uid)
return
}
sociaty := this.module.modelSociaty.getUserSociaty(uid) sociaty := this.module.modelSociaty.getUserSociaty(uid)
if sociaty.Id == "" { if sociaty.Id == "" {
code = pb.ErrorCode_SociatyNoFound code = pb.ErrorCode_SociatyNoFound
@ -39,6 +45,11 @@ func (this *apiComp) Assign(session comm.IUserSession, req *pb.SociatyAssignReq)
return return
} }
if err := this.module.modelSociatyLog.addLog(Log_Job, sociaty.Id,
uid, req.TargetId, pb.SociatyJob_PRESIDENT.String()); err != nil {
this.module.Errorf("转让日志 err:%v", err)
}
rsp := &pb.SociatyAssignResp{ rsp := &pb.SociatyAssignResp{
TargetId: req.TargetId, TargetId: req.TargetId,
SociatyId: sociaty.Id, SociatyId: sociaty.Id,

View File

@ -35,12 +35,27 @@ func (this *apiComp) Discharge(session comm.IUserSession, req *pb.SociatyDischar
return return
} }
// 踢人
if err := this.module.modelSociaty.discharge(req.TargetId, sociaty); err != nil { if err := this.module.modelSociaty.discharge(req.TargetId, sociaty); err != nil {
code = pb.ErrorCode_SociatyDischarge code = pb.ErrorCode_SociatyDischarge
this.module.Errorf("踢出公会失败:%v", err) this.module.Errorf("踢出公会失败:%v", err)
return return
} }
//清除玩家sociatyId
update := map[string]interface{}{
"sociatyId": "", //公会ID置空
}
if err := this.module.ModuleUser.ChangeRemoteUserExpand(req.TargetId, update); err != nil {
code = pb.ErrorCode_DBError
this.module.Errorf("更新玩家公会ID err:%v", err)
return
}
if err := this.module.modelSociatyLog.addLog(Log_Discharge, sociaty.Id, uid, req.TargetId); err != nil {
this.module.Errorf("踢出公会日志 err:%v", err)
}
rsp := &pb.SociatyDischargeResp{ rsp := &pb.SociatyDischargeResp{
TargetId: req.TargetId, TargetId: req.TargetId,
SociatyId: sociaty.Id, SociatyId: sociaty.Id,

View File

@ -30,7 +30,9 @@ func (this *apiComp) Dismiss(session comm.IUserSession, req *pb.SociatyDismissRe
for _, m := range sociaty.Members { for _, m := range sociaty.Members {
//清除成员任务 //清除成员任务
this.module.modelSociatyTask.deleTask(sociaty.Id, m.Uid) if err := this.module.modelSociatyTask.deleTask(sociaty.Id, m.Uid); err != nil {
this.module.Errorf("删除玩家 uid:%s 公会 sociatyId:%s err:%v", m.Uid, sociaty.Id, err)
}
//清除玩家sociatyId //清除玩家sociatyId
update := map[string]interface{}{ update := map[string]interface{}{
@ -41,6 +43,11 @@ func (this *apiComp) Dismiss(session comm.IUserSession, req *pb.SociatyDismissRe
this.module.Errorf("更新玩家公会ID err:%v", err) this.module.Errorf("更新玩家公会ID err:%v", err)
return return
} }
//清除公会日志
if err := this.module.modelSociatyLog.logDelete(sociaty.Id); err != nil {
this.module.Errorf("删除公会日志 sociatyId:%s err:%v", sociaty.Id, err)
}
} }
// 删除公会 // 删除公会

View File

@ -0,0 +1,38 @@
package sociaty
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"google.golang.org/protobuf/proto"
)
// 公会日志
func (this *apiComp) LogCheck(session comm.IUserSession, req *pb.SociatyLogReq) (code pb.ErrorCode) {
return
}
func (this *apiComp) Log(session comm.IUserSession, req *pb.SociatyLogReq) (code pb.ErrorCode, data proto.Message) {
uid := session.GetUserId()
sociaty := this.module.modelSociaty.getUserSociaty(uid)
if sociaty.Id == "" {
code = pb.ErrorCode_SociatyNoFound
this.module.Errorf("uid:%s not in sociaty", uid)
return
}
sl := this.module.modelSociatyLog.logList(sociaty.Id)
rsp := &pb.SociatyLogResp{
Log: &pb.DBSociatyLog{
SociatyId: sociaty.Id,
List: sl,
},
}
if err := session.SendMsg(string(this.module.GetType()), SociatySubTypeLog, rsp); err != nil {
code = pb.ErrorCode_SystemError
}
return
}

View File

@ -30,7 +30,7 @@ func (this *apiComp) Quit(session comm.IUserSession, req *pb.SociatyQuitReq) (co
//更新玩家sociatyId //更新玩家sociatyId
update := map[string]interface{}{ update := map[string]interface{}{
"sociatyId": "", "sociatyId": "", //玩家公会ID置空
} }
if err := this.module.ModuleUser.ChangeRemoteUserExpand(uid, update); err != nil { if err := this.module.ModuleUser.ChangeRemoteUserExpand(uid, update); err != nil {
@ -39,6 +39,10 @@ func (this *apiComp) Quit(session comm.IUserSession, req *pb.SociatyQuitReq) (co
return return
} }
if err := this.module.modelSociatyLog.addLog(Log_Quit, sociaty.Id, uid); err != nil {
this.module.Errorf("退出公会日志 err:%v", err)
}
rsp := &pb.SociatyQuitResp{ rsp := &pb.SociatyQuitResp{
Uid: uid, Uid: uid,
SociatyId: sociaty.Id, SociatyId: sociaty.Id,

View File

@ -13,7 +13,6 @@ import (
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"go_dreamfactory/utils" "go_dreamfactory/utils"
"sort" "sort"
"strings"
"time" "time"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
@ -24,11 +23,11 @@ import (
type Tag string type Tag string
const ( const (
Log_Job Tag = `%s玩家已将%s玩家设为了%s` //职位变动 Log_Job Tag = `%s玩家已将%s玩家设为了%s` //职位变动
Log_Quit Tag = "log_quit" //退出 Log_Quit Tag = "%s玩家已经退出了公会" //退出
Log_Add Tag = `%s玩家加入了公会` //加入 Log_Add Tag = `%s玩家加入了公会` //加入
Log_Upgrade Tag = "log_upgrade" //升级 Log_Upgrade Tag = "公会已经升为%s级" //升级
Log_Discharge Tag = "log_discharge" //踢出 Log_Discharge Tag = "%s玩家已经将%s玩家逐出了公会" //踢出
) )
type ModelSociaty struct { type ModelSociaty struct {
@ -312,7 +311,7 @@ func (this *ModelSociaty) delFromApplyRecord(uid string, sociaty *pb.DBSociaty)
//添加成员 //添加成员
func (this *ModelSociaty) addMember(uid string, sociaty *pb.DBSociaty) error { func (this *ModelSociaty) addMember(uid string, sociaty *pb.DBSociaty) error {
defer this.addLog(Log_Add, sociaty.Id, uid) defer this.moduleSociaty.modelSociatyLog.addLog(Log_Add, sociaty.Id, uid)
sociaty.Members = append(sociaty.Members, &pb.SociatyMember{ sociaty.Members = append(sociaty.Members, &pb.SociatyMember{
Uid: uid, Uid: uid,
Job: pb.SociatyJob_MEMBER, Job: pb.SociatyJob_MEMBER,
@ -379,110 +378,6 @@ func (this *ModelSociaty) refuse(uid string, sociaty *pb.DBSociaty) error {
return this.delFromApplyRecord(uid, sociaty) return this.delFromApplyRecord(uid, sociaty)
} }
// 记录日志
// tag 日志模板 sociatyId公会ID params 占位参数
func (this *ModelSociaty) addLog(tag Tag, sociatyId string, params ...string) error {
var content string
//日志 template
switch tag {
case Log_Add:
content = string(Log_Add)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
case Log_Quit:
content = string(Log_Quit)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
case Log_Job:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
if i == 2 {
var job string
switch params[i] {
case pb.SociatyJob_PRESIDENT.String():
job = "会长"
case pb.SociatyJob_VICEPRESIDENT.String():
job = "副会长"
case pb.SociatyJob_ADMIN.String():
job = "管理员"
case pb.SociatyJob_MEMBER.String():
job = "成员"
}
content = strings.Replace(content, "%s", job, 1)
} else {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
}
case Log_Discharge:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", params[i], 1)
}
}
case Log_Upgrade:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
content = strings.Replace(content, "%s", params[i], 1)
}
}
if content != "" {
update := map[string]interface{}{
"content": content,
"ctime": time.Now().Unix(),
}
return this.updateSociaty(sociatyId, update)
}
return nil
}
// 查询日志
func (this *ModelSociaty) logList(sociaty *pb.DBSociaty) (slist []*pb.SociatyLog) {
for _, l := range sociaty.Logs {
slist = append(slist, &pb.SociatyLog{
Content: l.Content,
Ctime: l.Ctime,
})
}
sort.SliceStable(slist, func(i, j int) bool {
return slist[i].Ctime > slist[j].Ctime
})
return
}
// 转让公会 // 转让公会
// targetId 目标玩家ID // targetId 目标玩家ID
// srcId 玩家ID 会长 // srcId 玩家ID 会长
@ -494,8 +389,7 @@ func (this *ModelSociaty) assign(srcId, targetId string, sociaty *pb.DBSociaty)
for _, m := range sociaty.Members { for _, m := range sociaty.Members {
if m.Uid == srcId { if m.Uid == srcId {
m.Uid = targetId m.Uid = targetId
} } else if m.Uid == targetId {
if m.Uid == targetId {
m.Uid = srcId m.Uid = srcId
} }
} }

View File

@ -0,0 +1,169 @@
package sociaty
import (
"fmt"
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
"sort"
"strings"
"time"
"go.mongodb.org/mongo-driver/mongo"
)
type ModelSociatyLog struct {
modules.MCompModel
moduleSociaty *Sociaty
service core.IService
}
func (this *ModelSociatyLog) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
this.TableName = comm.TableSociatyLog
err = this.MCompModel.Init(service, module, comp, options)
this.moduleSociaty = module.(*Sociaty)
this.service = service
return
}
// 记录日志
// tag 日志模板 sociatyId公会ID params 占位参数
func (this *ModelSociatyLog) addLog(tag Tag, sociatyId string, params ...string) error {
var content string
//日志 template
switch tag {
case Log_Add:
content = string(Log_Add)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
case Log_Quit:
content = string(Log_Quit)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
case Log_Job:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
if i == 2 {
var job string
switch params[i] {
case pb.SociatyJob_PRESIDENT.String():
job = "会长"
case pb.SociatyJob_VICEPRESIDENT.String():
job = "副会长"
case pb.SociatyJob_ADMIN.String():
job = "管理员"
case pb.SociatyJob_MEMBER.String():
job = "成员"
}
content = strings.Replace(content, "%s", job, 1)
} else {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", user.Name, 1)
}
}
}
case Log_Discharge:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
user, err := this.moduleSociaty.ModuleUser.GetRemoteUser(params[i])
if err == nil && user.Uid != "" {
content = strings.Replace(content, "%s", params[i], 1)
}
}
case Log_Upgrade:
content = string(Log_Job)
count := strings.Count(content, "%s")
if count != len(params) {
return fmt.Errorf("参数和模板参数不匹配 期望:%d 实际%d", count, len(params))
}
for i := 0; i < len(params); i++ {
content = strings.Replace(content, "%s", params[i], 1)
}
}
if content != "" {
log := &pb.DBSociatyLog{}
if err := this.Get(sociatyId, log); err != nil {
if err == mongo.ErrNoDocuments {
var list []*pb.SociatyLog
list = append(list, &pb.SociatyLog{
Content: content,
Ctime: time.Now().Unix(),
})
err = this.Add(sociatyId, &pb.DBSociatyLog{
SociatyId: sociatyId,
List: list,
})
if err != nil {
return err
}
return nil
}
return err
}
//update
if log.List == nil {
log.List = []*pb.SociatyLog{}
}
log.List = append(log.List, &pb.SociatyLog{
Content: content,
Ctime: time.Now().Unix(),
})
update := map[string]interface{}{
"sociatyId": sociatyId,
"list": log.List,
}
return this.Change(sociatyId, update)
}
return nil
}
// 查询日志
func (this *ModelSociatyLog) logList(sociatyId string) (slist []*pb.SociatyLog) {
log := &pb.DBSociatyLog{}
if err := this.Get(sociatyId, log); err != nil {
return nil
}
for _, l := range log.List {
slist = append(slist, &pb.SociatyLog{
Content: l.Content,
Ctime: l.Ctime,
})
}
sort.SliceStable(slist, func(i, j int) bool {
return slist[i].Ctime > slist[j].Ctime
})
return
}
// 删除日志
func (this *ModelSociatyLog) logDelete(sociatyId string) error {
return this.Del(sociatyId)
}

View File

@ -16,7 +16,7 @@ type ModelSociatyTask struct {
} }
func (this *ModelSociatyTask) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { func (this *ModelSociatyTask) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
this.TableName = comm.TableSociaty this.TableName = comm.TableSociatyTask
err = this.MCompModel.Init(service, module, comp, options) err = this.MCompModel.Init(service, module, comp, options)
this.moduleSociaty = module.(*Sociaty) this.moduleSociaty = module.(*Sociaty)
this.service = service this.service = service

View File

@ -17,6 +17,7 @@ type Sociaty struct {
service base.IRPCXService service base.IRPCXService
modelSociaty *ModelSociaty modelSociaty *ModelSociaty
modelSociatyTask *ModelSociatyTask modelSociatyTask *ModelSociatyTask
modelSociatyLog *ModelSociatyLog
configure *configureComp configure *configureComp
} }
@ -38,6 +39,7 @@ func (this *Sociaty) OnInstallComp() {
this.api = this.RegisterComp(new(apiComp)).(*apiComp) this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.modelSociaty = this.RegisterComp(new(ModelSociaty)).(*ModelSociaty) this.modelSociaty = this.RegisterComp(new(ModelSociaty)).(*ModelSociaty)
this.modelSociatyTask = this.RegisterComp(new(ModelSociatyTask)).(*ModelSociatyTask) this.modelSociatyTask = this.RegisterComp(new(ModelSociatyTask)).(*ModelSociatyTask)
this.modelSociatyLog = this.RegisterComp(new(ModelSociatyLog)).(*ModelSociatyLog)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp) this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
} }

View File

@ -94,10 +94,9 @@ type DBSociaty struct {
ApplyRecord []*ApplyRecord `protobuf:"bytes,11,rep,name=applyRecord,proto3" json:"applyRecord" bson:"applyRecord"` //收到的玩家入会申请 ApplyRecord []*ApplyRecord `protobuf:"bytes,11,rep,name=applyRecord,proto3" json:"applyRecord" bson:"applyRecord"` //收到的玩家入会申请
Members []*SociatyMember `protobuf:"bytes,12,rep,name=members,proto3" json:"members"` //@go_tags(`bson:"members"` 公会成员 Members []*SociatyMember `protobuf:"bytes,12,rep,name=members,proto3" json:"members"` //@go_tags(`bson:"members"` 公会成员
Activity int32 `protobuf:"varint,13,opt,name=activity,proto3" json:"activity" bson:"activity"` //活跃度 Activity int32 `protobuf:"varint,13,opt,name=activity,proto3" json:"activity" bson:"activity"` //活跃度
Logs []*SociatyLog `protobuf:"bytes,14,rep,name=logs,proto3" json:"logs" bson:"logs"` //日志 AccuseTime int64 `protobuf:"varint,14,opt,name=accuseTime,proto3" json:"accuseTime" bson:"accuseTime"` //会长弹劾时间
AccuseTime int64 `protobuf:"varint,15,opt,name=accuseTime,proto3" json:"accuseTime" bson:"accuseTime"` //会长弹劾时间 LastSignCount int32 `protobuf:"varint,15,opt,name=lastSignCount,proto3" json:"lastSignCount" bson:"lastSignCount"` //昨日签到的人数
LastSignCount int32 `protobuf:"varint,16,opt,name=lastSignCount,proto3" json:"lastSignCount" bson:"lastSignCount"` //昨日签到的人数 SignIds []string `protobuf:"bytes,16,rep,name=signIds,proto3" json:"signIds" bson:"signIds"` // 今日签到的玩家IDs
SignIds []string `protobuf:"bytes,17,rep,name=signIds,proto3" json:"signIds" bson:"signIds"` // 今日签到的玩家IDs
} }
func (x *DBSociaty) Reset() { func (x *DBSociaty) Reset() {
@ -223,13 +222,6 @@ func (x *DBSociaty) GetActivity() int32 {
return 0 return 0
} }
func (x *DBSociaty) GetLogs() []*SociatyLog {
if x != nil {
return x.Logs
}
return nil
}
func (x *DBSociaty) GetAccuseTime() int64 { func (x *DBSociaty) GetAccuseTime() int64 {
if x != nil { if x != nil {
return x.AccuseTime return x.AccuseTime
@ -435,6 +427,61 @@ func (x *SociatyLog) GetCtime() int64 {
return 0 return 0
} }
type DBSociatyLog struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SociatyId string `protobuf:"bytes,1,opt,name=sociatyId,proto3" json:"sociatyId"` //@go_tags(`bson:"sociatyId") 公会ID
List []*SociatyLog `protobuf:"bytes,2,rep,name=list,proto3" json:"list" bson:"list"` //日志
}
func (x *DBSociatyLog) Reset() {
*x = DBSociatyLog{}
if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_db_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBSociatyLog) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBSociatyLog) ProtoMessage() {}
func (x *DBSociatyLog) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_db_proto_msgTypes[4]
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 DBSociatyLog.ProtoReflect.Descriptor instead.
func (*DBSociatyLog) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{4}
}
func (x *DBSociatyLog) GetSociatyId() string {
if x != nil {
return x.SociatyId
}
return ""
}
func (x *DBSociatyLog) GetList() []*SociatyLog {
if x != nil {
return x.List
}
return nil
}
// 公会成员任务 // 公会成员任务
type DBSociatyTask struct { type DBSociatyTask struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -449,7 +496,7 @@ type DBSociatyTask struct {
func (x *DBSociatyTask) Reset() { func (x *DBSociatyTask) Reset() {
*x = DBSociatyTask{} *x = DBSociatyTask{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_db_proto_msgTypes[4] mi := &file_sociaty_sociaty_db_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -462,7 +509,7 @@ func (x *DBSociatyTask) String() string {
func (*DBSociatyTask) ProtoMessage() {} func (*DBSociatyTask) ProtoMessage() {}
func (x *DBSociatyTask) ProtoReflect() protoreflect.Message { func (x *DBSociatyTask) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_db_proto_msgTypes[4] mi := &file_sociaty_sociaty_db_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -475,7 +522,7 @@ func (x *DBSociatyTask) ProtoReflect() protoreflect.Message {
// Deprecated: Use DBSociatyTask.ProtoReflect.Descriptor instead. // Deprecated: Use DBSociatyTask.ProtoReflect.Descriptor instead.
func (*DBSociatyTask) Descriptor() ([]byte, []int) { func (*DBSociatyTask) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{4} return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{5}
} }
func (x *DBSociatyTask) GetSociatyId() string { func (x *DBSociatyTask) GetSociatyId() string {
@ -511,7 +558,7 @@ type SociatyTask struct {
func (x *SociatyTask) Reset() { func (x *SociatyTask) Reset() {
*x = SociatyTask{} *x = SociatyTask{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_db_proto_msgTypes[5] mi := &file_sociaty_sociaty_db_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -524,7 +571,7 @@ func (x *SociatyTask) String() string {
func (*SociatyTask) ProtoMessage() {} func (*SociatyTask) ProtoMessage() {}
func (x *SociatyTask) ProtoReflect() protoreflect.Message { func (x *SociatyTask) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_db_proto_msgTypes[5] mi := &file_sociaty_sociaty_db_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -537,7 +584,7 @@ func (x *SociatyTask) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyTask.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyTask.ProtoReflect.Descriptor instead.
func (*SociatyTask) Descriptor() ([]byte, []int) { func (*SociatyTask) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{5} return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{6}
} }
func (x *SociatyTask) GetTaskId() int32 { func (x *SociatyTask) GetTaskId() int32 {
@ -570,7 +617,7 @@ type DBSociatyRank struct {
func (x *DBSociatyRank) Reset() { func (x *DBSociatyRank) Reset() {
*x = DBSociatyRank{} *x = DBSociatyRank{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_db_proto_msgTypes[6] mi := &file_sociaty_sociaty_db_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -583,7 +630,7 @@ func (x *DBSociatyRank) String() string {
func (*DBSociatyRank) ProtoMessage() {} func (*DBSociatyRank) ProtoMessage() {}
func (x *DBSociatyRank) ProtoReflect() protoreflect.Message { func (x *DBSociatyRank) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_db_proto_msgTypes[6] mi := &file_sociaty_sociaty_db_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -596,7 +643,7 @@ func (x *DBSociatyRank) ProtoReflect() protoreflect.Message {
// Deprecated: Use DBSociatyRank.ProtoReflect.Descriptor instead. // Deprecated: Use DBSociatyRank.ProtoReflect.Descriptor instead.
func (*DBSociatyRank) Descriptor() ([]byte, []int) { func (*DBSociatyRank) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{6} return file_sociaty_sociaty_db_proto_rawDescGZIP(), []int{7}
} }
func (x *DBSociatyRank) GetSociatyId() string { func (x *DBSociatyRank) GetSociatyId() string {
@ -638,7 +685,7 @@ var File_sociaty_sociaty_db_proto protoreflect.FileDescriptor
var file_sociaty_sociaty_db_proto_rawDesc = []byte{ var file_sociaty_sociaty_db_proto_rawDesc = []byte{
0x0a, 0x18, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x0a, 0x18, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74,
0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe2, 0x03, 0x0a, 0x09, 0x44, 0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x03, 0x0a, 0x09, 0x44,
0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61,
0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x74, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74,
@ -660,55 +707,58 @@ var file_sociaty_sociaty_db_proto_rawDesc = []byte{
0x65, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x65, 0x72, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x53, 0x6f, 0x63, 0x69,
0x61, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x61, 0x74, 0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65,
0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x0d, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x18, 0x0d,
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x12, 0x1e,
0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x53, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x75, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0e, 0x20, 0x01,
0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x12, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x75, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x24,
0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x63, 0x75, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0f, 0x20, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18,
0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x63, 0x75, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x43,
0x24, 0x0a, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x73, 0x18,
0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x69, 0x67, 0x6e, 0x10, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x35,
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x73, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x0a,
0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12,
0x35, 0x0a, 0x0b, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x10, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x7a, 0x0a, 0x0d, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79,
0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x7a, 0x0a, 0x0d, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18,
0x79, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4a,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a,
0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20,
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f,
0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x6e, 0x22, 0x3c, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x12,
0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x69, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x6f, 0x6e, 0x22, 0x3c, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69,
0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x22,
0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x4d, 0x0a, 0x0c, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x12,
0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x22, 0x61, 0x0a, 0x0d, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x12, 0x1f, 0x0a,
0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x53, 0x6f,
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x12, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x61,
0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x0a, 0x0d, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x12,
0x64, 0x12, 0x20, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
0x0c, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x6c, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x12, 0x10, 0x0a,
0x69, 0x73, 0x74, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12,
0x73, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x20, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e,
0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x6c, 0x69, 0x73,
0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x74, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b,
0x75, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x0d, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x52, 0x61, 0x6e, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x22, 0x83, 0x01, 0x0a, 0x0d, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x6e, 0x6b, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18,
0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64,
0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x2a, 0x50, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x69, 0x52, 0x02, 0x6c, 0x76, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
0x61, 0x74, 0x79, 0x4a, 0x6f, 0x62, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x4f, 0x4a, 0x4f, 0x42, 0x10, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52,
0x05, 0x41, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x49, 0x43, 0x45, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x2a, 0x50, 0x0a, 0x0a, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74,
0x50, 0x52, 0x45, 0x53, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x79, 0x4a, 0x6f, 0x62, 0x12, 0x09, 0x0a, 0x05, 0x4e, 0x4f, 0x4a, 0x4f, 0x42, 0x10, 0x00, 0x12,
0x52, 0x45, 0x53, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x0a, 0x0a, 0x06, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x41,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x44, 0x4d, 0x49, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x56, 0x49, 0x43, 0x45, 0x50, 0x52,
0x45, 0x53, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x50, 0x52, 0x45,
0x53, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x10, 0x04, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -724,23 +774,24 @@ func file_sociaty_sociaty_db_proto_rawDescGZIP() []byte {
} }
var file_sociaty_sociaty_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_sociaty_sociaty_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_sociaty_sociaty_db_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_sociaty_sociaty_db_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_sociaty_sociaty_db_proto_goTypes = []interface{}{ var file_sociaty_sociaty_db_proto_goTypes = []interface{}{
(SociatyJob)(0), // 0: SociatyJob (SociatyJob)(0), // 0: SociatyJob
(*DBSociaty)(nil), // 1: DBSociaty (*DBSociaty)(nil), // 1: DBSociaty
(*ApplyRecord)(nil), // 2: ApplyRecord (*ApplyRecord)(nil), // 2: ApplyRecord
(*SociatyMember)(nil), // 3: SociatyMember (*SociatyMember)(nil), // 3: SociatyMember
(*SociatyLog)(nil), // 4: SociatyLog (*SociatyLog)(nil), // 4: SociatyLog
(*DBSociatyTask)(nil), // 5: DBSociatyTask (*DBSociatyLog)(nil), // 5: DBSociatyLog
(*SociatyTask)(nil), // 6: SociatyTask (*DBSociatyTask)(nil), // 6: DBSociatyTask
(*DBSociatyRank)(nil), // 7: DBSociatyRank (*SociatyTask)(nil), // 7: SociatyTask
(*DBSociatyRank)(nil), // 8: DBSociatyRank
} }
var file_sociaty_sociaty_db_proto_depIdxs = []int32{ var file_sociaty_sociaty_db_proto_depIdxs = []int32{
2, // 0: DBSociaty.applyRecord:type_name -> ApplyRecord 2, // 0: DBSociaty.applyRecord:type_name -> ApplyRecord
3, // 1: DBSociaty.members:type_name -> SociatyMember 3, // 1: DBSociaty.members:type_name -> SociatyMember
4, // 2: DBSociaty.logs:type_name -> SociatyLog 0, // 2: SociatyMember.job:type_name -> SociatyJob
0, // 3: SociatyMember.job:type_name -> SociatyJob 4, // 3: DBSociatyLog.list:type_name -> SociatyLog
6, // 4: DBSociatyTask.list:type_name -> SociatyTask 7, // 4: DBSociatyTask.list:type_name -> SociatyTask
5, // [5:5] is the sub-list for method output_type 5, // [5:5] is the sub-list for method output_type
5, // [5:5] is the sub-list for method input_type 5, // [5:5] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension type_name
@ -803,7 +854,7 @@ func file_sociaty_sociaty_db_proto_init() {
} }
} }
file_sociaty_sociaty_db_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_db_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBSociatyTask); i { switch v := v.(*DBSociatyLog); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -815,7 +866,7 @@ func file_sociaty_sociaty_db_proto_init() {
} }
} }
file_sociaty_sociaty_db_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_db_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyTask); i { switch v := v.(*DBSociatyTask); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -827,6 +878,18 @@ func file_sociaty_sociaty_db_proto_init() {
} }
} }
file_sociaty_sociaty_db_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_db_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyTask); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_sociaty_sociaty_db_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBSociatyRank); i { switch v := v.(*DBSociatyRank); i {
case 0: case 0:
return &v.state return &v.state
@ -845,7 +908,7 @@ func file_sociaty_sociaty_db_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_sociaty_sociaty_db_proto_rawDesc, RawDescriptor: file_sociaty_sociaty_db_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 7, NumMessages: 8,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

@ -2070,6 +2070,92 @@ func (x *SociatySignResp) GetSociatyId() string {
return "" return ""
} }
//日志列表
type SociatyLogReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *SociatyLogReq) Reset() {
*x = SociatyLogReq{}
if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[39]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SociatyLogReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SociatyLogReq) ProtoMessage() {}
func (x *SociatyLogReq) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[39]
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 SociatyLogReq.ProtoReflect.Descriptor instead.
func (*SociatyLogReq) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{39}
}
type SociatyLogResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Log *DBSociatyLog `protobuf:"bytes,1,opt,name=log,proto3" json:"log"`
}
func (x *SociatyLogResp) Reset() {
*x = SociatyLogResp{}
if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[40]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SociatyLogResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SociatyLogResp) ProtoMessage() {}
func (x *SociatyLogResp) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[40]
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 SociatyLogResp.ProtoReflect.Descriptor instead.
func (*SociatyLogResp) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{40}
}
func (x *SociatyLogResp) GetLog() *DBSociatyLog {
if x != nil {
return x.Log
}
return nil
}
// 任务列表 // 任务列表
type SociatyTaskListReq struct { type SociatyTaskListReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -2080,7 +2166,7 @@ type SociatyTaskListReq struct {
func (x *SociatyTaskListReq) Reset() { func (x *SociatyTaskListReq) Reset() {
*x = SociatyTaskListReq{} *x = SociatyTaskListReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[39] mi := &file_sociaty_sociaty_msg_proto_msgTypes[41]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2093,7 +2179,7 @@ func (x *SociatyTaskListReq) String() string {
func (*SociatyTaskListReq) ProtoMessage() {} func (*SociatyTaskListReq) ProtoMessage() {}
func (x *SociatyTaskListReq) ProtoReflect() protoreflect.Message { func (x *SociatyTaskListReq) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[39] mi := &file_sociaty_sociaty_msg_proto_msgTypes[41]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2106,7 +2192,7 @@ func (x *SociatyTaskListReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyTaskListReq.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyTaskListReq.ProtoReflect.Descriptor instead.
func (*SociatyTaskListReq) Descriptor() ([]byte, []int) { func (*SociatyTaskListReq) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{39} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{41}
} }
type SociatyTaskListResp struct { type SociatyTaskListResp struct {
@ -2120,7 +2206,7 @@ type SociatyTaskListResp struct {
func (x *SociatyTaskListResp) Reset() { func (x *SociatyTaskListResp) Reset() {
*x = SociatyTaskListResp{} *x = SociatyTaskListResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[40] mi := &file_sociaty_sociaty_msg_proto_msgTypes[42]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2133,7 +2219,7 @@ func (x *SociatyTaskListResp) String() string {
func (*SociatyTaskListResp) ProtoMessage() {} func (*SociatyTaskListResp) ProtoMessage() {}
func (x *SociatyTaskListResp) ProtoReflect() protoreflect.Message { func (x *SociatyTaskListResp) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[40] mi := &file_sociaty_sociaty_msg_proto_msgTypes[42]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2146,7 +2232,7 @@ func (x *SociatyTaskListResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyTaskListResp.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyTaskListResp.ProtoReflect.Descriptor instead.
func (*SociatyTaskListResp) Descriptor() ([]byte, []int) { func (*SociatyTaskListResp) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{40} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{42}
} }
func (x *SociatyTaskListResp) GetList() []*SociatyTask { func (x *SociatyTaskListResp) GetList() []*SociatyTask {
@ -2168,7 +2254,7 @@ type SociatyReceiveReq struct {
func (x *SociatyReceiveReq) Reset() { func (x *SociatyReceiveReq) Reset() {
*x = SociatyReceiveReq{} *x = SociatyReceiveReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[41] mi := &file_sociaty_sociaty_msg_proto_msgTypes[43]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2181,7 +2267,7 @@ func (x *SociatyReceiveReq) String() string {
func (*SociatyReceiveReq) ProtoMessage() {} func (*SociatyReceiveReq) ProtoMessage() {}
func (x *SociatyReceiveReq) ProtoReflect() protoreflect.Message { func (x *SociatyReceiveReq) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[41] mi := &file_sociaty_sociaty_msg_proto_msgTypes[43]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2194,7 +2280,7 @@ func (x *SociatyReceiveReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyReceiveReq.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyReceiveReq.ProtoReflect.Descriptor instead.
func (*SociatyReceiveReq) Descriptor() ([]byte, []int) { func (*SociatyReceiveReq) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{41} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{43}
} }
func (x *SociatyReceiveReq) GetTaskId() int32 { func (x *SociatyReceiveReq) GetTaskId() int32 {
@ -2216,7 +2302,7 @@ type SociatyReceiveResp struct {
func (x *SociatyReceiveResp) Reset() { func (x *SociatyReceiveResp) Reset() {
*x = SociatyReceiveResp{} *x = SociatyReceiveResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[42] mi := &file_sociaty_sociaty_msg_proto_msgTypes[44]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2229,7 +2315,7 @@ func (x *SociatyReceiveResp) String() string {
func (*SociatyReceiveResp) ProtoMessage() {} func (*SociatyReceiveResp) ProtoMessage() {}
func (x *SociatyReceiveResp) ProtoReflect() protoreflect.Message { func (x *SociatyReceiveResp) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[42] mi := &file_sociaty_sociaty_msg_proto_msgTypes[44]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2242,7 +2328,7 @@ func (x *SociatyReceiveResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyReceiveResp.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyReceiveResp.ProtoReflect.Descriptor instead.
func (*SociatyReceiveResp) Descriptor() ([]byte, []int) { func (*SociatyReceiveResp) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{42} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{44}
} }
func (x *SociatyReceiveResp) GetTaskId() int32 { func (x *SociatyReceiveResp) GetTaskId() int32 {
@ -2271,7 +2357,7 @@ type SociatyActivityReceiveReq struct {
func (x *SociatyActivityReceiveReq) Reset() { func (x *SociatyActivityReceiveReq) Reset() {
*x = SociatyActivityReceiveReq{} *x = SociatyActivityReceiveReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[43] mi := &file_sociaty_sociaty_msg_proto_msgTypes[45]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2284,7 +2370,7 @@ func (x *SociatyActivityReceiveReq) String() string {
func (*SociatyActivityReceiveReq) ProtoMessage() {} func (*SociatyActivityReceiveReq) ProtoMessage() {}
func (x *SociatyActivityReceiveReq) ProtoReflect() protoreflect.Message { func (x *SociatyActivityReceiveReq) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[43] mi := &file_sociaty_sociaty_msg_proto_msgTypes[45]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2297,7 +2383,7 @@ func (x *SociatyActivityReceiveReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyActivityReceiveReq.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyActivityReceiveReq.ProtoReflect.Descriptor instead.
func (*SociatyActivityReceiveReq) Descriptor() ([]byte, []int) { func (*SociatyActivityReceiveReq) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{43} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{45}
} }
func (x *SociatyActivityReceiveReq) GetId() int32 { func (x *SociatyActivityReceiveReq) GetId() int32 {
@ -2319,7 +2405,7 @@ type SociatyActivityReceiveResp struct {
func (x *SociatyActivityReceiveResp) Reset() { func (x *SociatyActivityReceiveResp) Reset() {
*x = SociatyActivityReceiveResp{} *x = SociatyActivityReceiveResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[44] mi := &file_sociaty_sociaty_msg_proto_msgTypes[46]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2332,7 +2418,7 @@ func (x *SociatyActivityReceiveResp) String() string {
func (*SociatyActivityReceiveResp) ProtoMessage() {} func (*SociatyActivityReceiveResp) ProtoMessage() {}
func (x *SociatyActivityReceiveResp) ProtoReflect() protoreflect.Message { func (x *SociatyActivityReceiveResp) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[44] mi := &file_sociaty_sociaty_msg_proto_msgTypes[46]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2345,7 +2431,7 @@ func (x *SociatyActivityReceiveResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyActivityReceiveResp.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyActivityReceiveResp.ProtoReflect.Descriptor instead.
func (*SociatyActivityReceiveResp) Descriptor() ([]byte, []int) { func (*SociatyActivityReceiveResp) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{44} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{46}
} }
func (x *SociatyActivityReceiveResp) GetId() int32 { func (x *SociatyActivityReceiveResp) GetId() int32 {
@ -2372,7 +2458,7 @@ type SociatyRankReq struct {
func (x *SociatyRankReq) Reset() { func (x *SociatyRankReq) Reset() {
*x = SociatyRankReq{} *x = SociatyRankReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[45] mi := &file_sociaty_sociaty_msg_proto_msgTypes[47]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2385,7 +2471,7 @@ func (x *SociatyRankReq) String() string {
func (*SociatyRankReq) ProtoMessage() {} func (*SociatyRankReq) ProtoMessage() {}
func (x *SociatyRankReq) ProtoReflect() protoreflect.Message { func (x *SociatyRankReq) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[45] mi := &file_sociaty_sociaty_msg_proto_msgTypes[47]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2398,7 +2484,7 @@ func (x *SociatyRankReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyRankReq.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyRankReq.ProtoReflect.Descriptor instead.
func (*SociatyRankReq) Descriptor() ([]byte, []int) { func (*SociatyRankReq) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{45} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{47}
} }
type SociatyRankResp struct { type SociatyRankResp struct {
@ -2412,7 +2498,7 @@ type SociatyRankResp struct {
func (x *SociatyRankResp) Reset() { func (x *SociatyRankResp) Reset() {
*x = SociatyRankResp{} *x = SociatyRankResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[46] mi := &file_sociaty_sociaty_msg_proto_msgTypes[48]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -2425,7 +2511,7 @@ func (x *SociatyRankResp) String() string {
func (*SociatyRankResp) ProtoMessage() {} func (*SociatyRankResp) ProtoMessage() {}
func (x *SociatyRankResp) ProtoReflect() protoreflect.Message { func (x *SociatyRankResp) ProtoReflect() protoreflect.Message {
mi := &file_sociaty_sociaty_msg_proto_msgTypes[46] mi := &file_sociaty_sociaty_msg_proto_msgTypes[48]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -2438,7 +2524,7 @@ func (x *SociatyRankResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use SociatyRankResp.ProtoReflect.Descriptor instead. // Deprecated: Use SociatyRankResp.ProtoReflect.Descriptor instead.
func (*SociatyRankResp) Descriptor() ([]byte, []int) { func (*SociatyRankResp) Descriptor() ([]byte, []int) {
return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{46} return file_sociaty_sociaty_msg_proto_rawDescGZIP(), []int{48}
} }
func (x *SociatyRankResp) GetRank() []*DBSociatyRank { func (x *SociatyRankResp) GetRank() []*DBSociatyRank {
@ -2603,37 +2689,41 @@ var file_sociaty_sociaty_msg_proto_rawDesc = []byte{
0x61, 0x74, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x61, 0x74, 0x79, 0x53, 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, 0x12, 0x1c, 0x0a, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1c, 0x0a,
0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x22, 0x14, 0x0a, 0x12, 0x53, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x22, 0x0f, 0x0a, 0x0d, 0x53,
0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x22, 0x31, 0x0a, 0x0e,
0x71, 0x22, 0x37, 0x0a, 0x13, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x44, 0x42,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x6f, 0x67, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x22,
0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x2b, 0x0a, 0x11, 0x53, 0x6f, 0x14, 0x0a, 0x12, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69,
0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x12, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x37, 0x0a, 0x13, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79,
0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x54, 0x61, 0x73, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x20, 0x0a, 0x04,
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x53, 0x6f, 0x63,
0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x69, 0x61, 0x74, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x2b,
0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x0a, 0x11, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20,
0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x53,
0x79, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x19, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x41, 0x63, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73,
0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x05, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63,
0x22, 0x4a, 0x0a, 0x1a, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f,
0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x0e, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x22, 0x2b, 0x0a, 0x19, 0x53, 0x6f, 0x63, 0x69, 0x61,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x74, 0x79, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76,
0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x65, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4a, 0x0a, 0x1a, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x41,
0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x71, 0x22, 0x35, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x52, 0x65,
0x0a, 0x0f, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x65, 0x73, 0x73, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02,
0x70, 0x12, 0x22, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64, 0x18,
0x0e, 0x2e, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x49, 0x64,
0x04, 0x72, 0x61, 0x6e, 0x6b, 0x2a, 0x42, 0x0a, 0x11, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x22, 0x10, 0x0a, 0x0e, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e, 0x6b, 0x52,
0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4c, 0x65, 0x71, 0x22, 0x35, 0x0a, 0x0f, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52, 0x61, 0x6e,
0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x10, 0x01, 0x12, 0x0b, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x22, 0x0a, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x18, 0x01, 0x20,
0x0a, 0x07, 0x4e, 0x4f, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44, 0x42, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x52,
0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x61, 0x6e, 0x6b, 0x52, 0x04, 0x72, 0x61, 0x6e, 0x6b, 0x2a, 0x42, 0x0a, 0x11, 0x53, 0x6f, 0x63,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x69, 0x61, 0x74, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x07,
0x0a, 0x03, 0x41, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x43, 0x4f, 0x4e, 0x44, 0x49,
0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x10, 0x02, 0x12,
0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x4c, 0x59, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x42, 0x06, 0x5a,
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -2649,7 +2739,7 @@ func file_sociaty_sociaty_msg_proto_rawDescGZIP() []byte {
} }
var file_sociaty_sociaty_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_sociaty_sociaty_msg_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_sociaty_sociaty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 47) var file_sociaty_sociaty_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 49)
var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{ var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{
(SociatyListFilter)(0), // 0: SociatyListFilter (SociatyListFilter)(0), // 0: SociatyListFilter
(*SociatyCreateReq)(nil), // 1: SociatyCreateReq (*SociatyCreateReq)(nil), // 1: SociatyCreateReq
@ -2691,37 +2781,41 @@ var file_sociaty_sociaty_msg_proto_goTypes = []interface{}{
(*SociatyAccuseResp)(nil), // 37: SociatyAccuseResp (*SociatyAccuseResp)(nil), // 37: SociatyAccuseResp
(*SociatySignReq)(nil), // 38: SociatySignReq (*SociatySignReq)(nil), // 38: SociatySignReq
(*SociatySignResp)(nil), // 39: SociatySignResp (*SociatySignResp)(nil), // 39: SociatySignResp
(*SociatyTaskListReq)(nil), // 40: SociatyTaskListReq (*SociatyLogReq)(nil), // 40: SociatyLogReq
(*SociatyTaskListResp)(nil), // 41: SociatyTaskListResp (*SociatyLogResp)(nil), // 41: SociatyLogResp
(*SociatyReceiveReq)(nil), // 42: SociatyReceiveReq (*SociatyTaskListReq)(nil), // 42: SociatyTaskListReq
(*SociatyReceiveResp)(nil), // 43: SociatyReceiveResp (*SociatyTaskListResp)(nil), // 43: SociatyTaskListResp
(*SociatyActivityReceiveReq)(nil), // 44: SociatyActivityReceiveReq (*SociatyReceiveReq)(nil), // 44: SociatyReceiveReq
(*SociatyActivityReceiveResp)(nil), // 45: SociatyActivityReceiveResp (*SociatyReceiveResp)(nil), // 45: SociatyReceiveResp
(*SociatyRankReq)(nil), // 46: SociatyRankReq (*SociatyActivityReceiveReq)(nil), // 46: SociatyActivityReceiveReq
(*SociatyRankResp)(nil), // 47: SociatyRankResp (*SociatyActivityReceiveResp)(nil), // 47: SociatyActivityReceiveResp
(*DBSociaty)(nil), // 48: DBSociaty (*SociatyRankReq)(nil), // 48: SociatyRankReq
(SociatyJob)(0), // 49: SociatyJob (*SociatyRankResp)(nil), // 49: SociatyRankResp
(*SociatyTask)(nil), // 50: SociatyTask (*DBSociaty)(nil), // 50: DBSociaty
(*DBSociatyRank)(nil), // 51: DBSociatyRank (SociatyJob)(0), // 51: SociatyJob
(*DBSociatyLog)(nil), // 52: DBSociatyLog
(*SociatyTask)(nil), // 53: SociatyTask
(*DBSociatyRank)(nil), // 54: DBSociatyRank
} }
var file_sociaty_sociaty_msg_proto_depIdxs = []int32{ var file_sociaty_sociaty_msg_proto_depIdxs = []int32{
0, // 0: SociatyListReq.filter:type_name -> SociatyListFilter 0, // 0: SociatyListReq.filter:type_name -> SociatyListFilter
48, // 1: SociatyListResp.list:type_name -> DBSociaty 50, // 1: SociatyListResp.list:type_name -> DBSociaty
48, // 2: SociatySearchResp.list:type_name -> DBSociaty 50, // 2: SociatySearchResp.list:type_name -> DBSociaty
48, // 3: SociatyMineResp.sociaty:type_name -> DBSociaty 50, // 3: SociatyMineResp.sociaty:type_name -> DBSociaty
11, // 4: SociatyMineResp.master:type_name -> SociatyMemberInfo 11, // 4: SociatyMineResp.master:type_name -> SociatyMemberInfo
49, // 5: SociatyMemberInfo.job:type_name -> SociatyJob 51, // 5: SociatyMemberInfo.job:type_name -> SociatyJob
11, // 6: SociatyApplyListResp.list:type_name -> SociatyMemberInfo 11, // 6: SociatyApplyListResp.list:type_name -> SociatyMemberInfo
11, // 7: SociatyMembersResp.list:type_name -> SociatyMemberInfo 11, // 7: SociatyMembersResp.list:type_name -> SociatyMemberInfo
49, // 8: SociatySettingJobReq.job:type_name -> SociatyJob 51, // 8: SociatySettingJobReq.job:type_name -> SociatyJob
49, // 9: SociatySettingJobResp.job:type_name -> SociatyJob 51, // 9: SociatySettingJobResp.job:type_name -> SociatyJob
50, // 10: SociatyTaskListResp.list:type_name -> SociatyTask 52, // 10: SociatyLogResp.log:type_name -> DBSociatyLog
51, // 11: SociatyRankResp.rank:type_name -> DBSociatyRank 53, // 11: SociatyTaskListResp.list:type_name -> SociatyTask
12, // [12:12] is the sub-list for method output_type 54, // 12: SociatyRankResp.rank:type_name -> DBSociatyRank
12, // [12:12] is the sub-list for method input_type 13, // [13:13] is the sub-list for method output_type
12, // [12:12] is the sub-list for extension type_name 13, // [13:13] is the sub-list for method input_type
12, // [12:12] is the sub-list for extension extendee 13, // [13:13] is the sub-list for extension type_name
0, // [0:12] is the sub-list for field type_name 13, // [13:13] is the sub-list for extension extendee
0, // [0:13] is the sub-list for field type_name
} }
func init() { file_sociaty_sociaty_msg_proto_init() } func init() { file_sociaty_sociaty_msg_proto_init() }
@ -3200,7 +3294,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyTaskListReq); i { switch v := v.(*SociatyLogReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3212,7 +3306,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyTaskListResp); i { switch v := v.(*SociatyLogResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3224,7 +3318,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyReceiveReq); i { switch v := v.(*SociatyTaskListReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3236,7 +3330,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyReceiveResp); i { switch v := v.(*SociatyTaskListResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3248,7 +3342,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyActivityReceiveReq); i { switch v := v.(*SociatyReceiveReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3260,7 +3354,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyActivityReceiveResp); i { switch v := v.(*SociatyReceiveResp); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3272,7 +3366,7 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyRankReq); i { switch v := v.(*SociatyActivityReceiveReq); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@ -3284,6 +3378,30 @@ func file_sociaty_sociaty_msg_proto_init() {
} }
} }
file_sociaty_sociaty_msg_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { file_sociaty_sociaty_msg_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyActivityReceiveResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_sociaty_sociaty_msg_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyRankReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_sociaty_sociaty_msg_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SociatyRankResp); i { switch v := v.(*SociatyRankResp); i {
case 0: case 0:
return &v.state return &v.state
@ -3302,7 +3420,7 @@ func file_sociaty_sociaty_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_sociaty_sociaty_msg_proto_rawDesc, RawDescriptor: file_sociaty_sociaty_msg_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 47, NumMessages: 49,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },