mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
修复动态模块上下线失败的问题
This commit is contained in:
@@ -64,6 +64,7 @@ type Member struct {
|
||||
User auto.Label `json:"user" aolabel:"user"`
|
||||
Roles []auto.Label `json:"roles" aolabel:"role"`
|
||||
AttachTime auto.TimeLabel `json:"attach_time"`
|
||||
IsDelete bool `json:"is_delete"`
|
||||
}
|
||||
|
||||
func ToMember(model *team_member.Member, roles ...string) *Member {
|
||||
|
||||
@@ -48,6 +48,7 @@ func (m *imlTeamModule) UpdateMemberRole(ctx context.Context, id string, input *
|
||||
if len(input.Roles) < 1 {
|
||||
return errors.New("at least one role")
|
||||
}
|
||||
|
||||
err = m.roleMemberService.RemoveUserRole(ctx, role.TeamTarget(id), input.Users...)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user