CreateRole 创建角色
(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int)
| 32 | |
| 33 | // CreateRole 创建角色 |
| 34 | func (r *roleRepository) CreateRole(ctx context.Context, role *domain.Role, menuIds []int, apiIds []int) error { |
| 35 | return r.dao.CreateRole(ctx, r.roleToDAO(role), menuIds, apiIds) |
| 36 | } |
| 37 | |
| 38 | // GetRoleById 根据ID获取角色 |
| 39 | func (r *roleRepository) GetRoleById(ctx context.Context, id int) (*domain.Role, error) { |
nothing calls this directly
no test coverage detected