公会弹劾修复
This commit is contained in:
parent
6d6e99606d
commit
090422083a
@ -310,5 +310,11 @@
|
|||||||
"open": true,
|
"open": true,
|
||||||
"routrules": "~/worker",
|
"routrules": "~/worker",
|
||||||
"describe": "公会日志列表"
|
"describe": "公会日志列表"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"msgid": "sociaty.accuse",
|
||||||
|
"open": true,
|
||||||
|
"routrules": "~/worker",
|
||||||
|
"describe": "弹劾"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -430,10 +430,22 @@ func (this *SociatyMineView) showSociatyMemberWin() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
//弹劾
|
//弹劾
|
||||||
tanheBtn := widget.NewButton("弹劾", nil)
|
tanheBtn := widget.NewButton("弹劾", func() {
|
||||||
|
dialog.ShowConfirm("提示", "确定弹劾会长?", func(b bool) {
|
||||||
|
if !b {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if err := service.GetPttService().SendToClient(
|
||||||
|
string(comm.ModuleSociaty),
|
||||||
|
sociaty.SociatySubTypeAccuse,
|
||||||
|
&pb.SociatyAccuseReq{},
|
||||||
|
); err != nil {
|
||||||
|
logrus.Error(err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// 退出
|
}, this.w)
|
||||||
quitBtn := widget.NewButton("退出", nil)
|
})
|
||||||
|
|
||||||
// 转让
|
// 转让
|
||||||
zhuanrangBtn := widget.NewButton("转让", func() {
|
zhuanrangBtn := widget.NewButton("转让", func() {
|
||||||
@ -526,11 +538,10 @@ func (this *SociatyMineView) showSociatyMemberWin() {
|
|||||||
this.job == pb.SociatyJob_ADMIN {
|
this.job == pb.SociatyJob_ADMIN {
|
||||||
btns.Add(tirenBtn)
|
btns.Add(tirenBtn)
|
||||||
btns.Add(tanheBtn)
|
btns.Add(tanheBtn)
|
||||||
btns.Add(quitBtn)
|
|
||||||
}
|
}
|
||||||
// 成员
|
// 成员
|
||||||
if this.job == pb.SociatyJob_MEMBER {
|
if this.job == pb.SociatyJob_MEMBER {
|
||||||
btns.Add(quitBtn)
|
btns.Add(tanheBtn)
|
||||||
}
|
}
|
||||||
|
|
||||||
c := container.NewBorder(btns, nil, nil, nil, this.memberList.ItemList)
|
c := container.NewBorder(btns, nil, nil, nil, this.memberList.ItemList)
|
||||||
|
@ -17,6 +17,7 @@ const (
|
|||||||
SociatySubTypeCancel = "cancel"
|
SociatySubTypeCancel = "cancel"
|
||||||
SociatySubTypeDismiss = "dismiss"
|
SociatySubTypeDismiss = "dismiss"
|
||||||
SociatySubTypeQuit = "quit"
|
SociatySubTypeQuit = "quit"
|
||||||
|
SociatySubTypeAccuse = "accuse"
|
||||||
SociatySubTypeAgree = "agree"
|
SociatySubTypeAgree = "agree"
|
||||||
SociatySubTypeRefuse = "refuse"
|
SociatySubTypeRefuse = "refuse"
|
||||||
SociatySubTypeSetting = "setting"
|
SociatySubTypeSetting = "setting"
|
||||||
|
@ -9,12 +9,12 @@ import (
|
|||||||
|
|
||||||
// 弹劾会长
|
// 弹劾会长
|
||||||
|
|
||||||
func (this *apiComp) AsscuseCheck(session comm.IUserSession, req *pb.SociatyAccuseReq) (code pb.ErrorCode) {
|
func (this *apiComp) AccuseCheck(session comm.IUserSession, req *pb.SociatyAccuseReq) (code pb.ErrorCode) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *apiComp) Asscuse(session comm.IUserSession, req *pb.SociatyAccuseReq) (code pb.ErrorCode, data proto.Message) {
|
func (this *apiComp) Accuse(session comm.IUserSession, req *pb.SociatyAccuseReq) (code pb.ErrorCode, data proto.Message) {
|
||||||
if code = this.AsscuseCheck(session, req); code != pb.ErrorCode_Success {
|
if code = this.AccuseCheck(session, req); code != pb.ErrorCode_Success {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
uid := session.GetUserId()
|
uid := session.GetUserId()
|
||||||
@ -43,7 +43,7 @@ func (this *apiComp) Asscuse(session comm.IUserSession, req *pb.SociatyAccuseReq
|
|||||||
SociatyId: sociaty.Id,
|
SociatyId: sociaty.Id,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := session.SendMsg(string(this.module.GetType()), SociatySubTypeAgree, rsp); err != nil {
|
if err := session.SendMsg(string(this.module.GetType()), SociatySubTypeAccuse, rsp); err != nil {
|
||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user