You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
823 B

3 years ago
using Identity.Api.Clean.Domain.Entites;
namespace Identity.Api.Clean.Shared.IServices;
public interface IOrganizationUnitManager
{
/// <summary>
/// 添加组织单位
/// </summary>
Task CreateAsync(OrganizationUnit organizationUnit);
/// <summary>
/// 验证组织单位
/// </summary>
Task ValidateOrganizationUnitAsync(OrganizationUnit organizationUnit);
/// <summary>
/// 删除组织单位 已经包含子组织单位 以及 角色信息
/// </summary>
Task DeleteAsync(Guid id);
/// <summary>
/// 向组织单位添加角色
/// </summary>
Task AddRoleToOrganizationUnitAsync(Guid roleId, Guid ouId);
/// <summary>
/// 向组织单位删除角色
/// </summary>
Task RemoveRoleFromOrganizationUnitAsync(Guid roleId, Guid ouId);
}