UpdateRole 更新角色信息
(ctx context.Context, role *domain.Role)
| 46 | |
| 47 | // UpdateRole 更新角色信息 |
| 48 | func (r *roleRepository) UpdateRole(ctx context.Context, role *domain.Role) error { |
| 49 | return r.dao.UpdateRole(ctx, r.roleToDAO(role)) |
| 50 | } |
| 51 | |
| 52 | // DeleteRole 删除角色 |
| 53 | func (r *roleRepository) DeleteRole(ctx context.Context, id int) error { |
nothing calls this directly
no test coverage detected