mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
tmp commit
This commit is contained in:
+2
-2
@@ -111,13 +111,13 @@ func (m *imlTeamModule) Create(ctx context.Context, input *team_dto.CreateTeam)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
supperRole, err := m.roleService.GetSupperRole(ctx, role.GroupTeam)
|
||||
superRole, err := m.roleService.GetSupperRole(ctx, role.GroupTeam)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return m.roleMemberService.Add(ctx, &role.AddMember{
|
||||
Role: supperRole.Id,
|
||||
Role: superRole.Id,
|
||||
User: input.Master,
|
||||
Target: role.TeamTarget(input.Id),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user