Merge pull request 'by Robin at 20240425' (#331) from dev-feat-IRONFANS-70-Robin into feat-IRONFANS-70
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/331
This commit is contained in:
commit
0d6b0bce10
|
@ -402,6 +402,11 @@ func (l *AuthBusinessValidator) EnsureAccountPunishmentHasNotTerminated(id int64
|
|||
|
||||
func (l *AuthBusinessValidator) EnsureAccountPunishmentMatchesRoleOfTarget(uid int64, typ int64, QueryFunc func(ctx *gin.Context, req *accountproto.OpListByMidReq) (*dbstruct.Account, error)) *AuthBusinessValidator {
|
||||
l.oplist = append(l.oplist, func() {
|
||||
|
||||
if len(consts.AccountPunishmentRoleMap[typ]) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
acct, err := QueryFunc(l.ctx, &accountproto.OpListByMidReq{
|
||||
Mid: goproto.Int64(uid),
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue