LFlow/LFlow.Role/Service/IRoleService.cs

22 lines
672 B
C#

using LFlow.Base.Interfaces;
using LFlow.Role.Model;
namespace LFlow.Role.Service
{
public interface IRoleService : IService//<VersionDto>
{
Task<List<RoleDto>> GetRoleListAsync(int pageIndex, int pageSize, ref int total);
Task<RoleDto> GetRoleAsync(string id);
Task<RoleDto> AddRoleAsync(RoleDto model);
Task<RoleDto> UpdateRoleAsync(RoleDto model);
Task<int> DeleteRoleAsync(string id);
/// <summary>
/// 获取角色权限列表
/// </summary>
/// <param name="progID"></param>
/// <returns></returns>
Task<RoleDto> GetRolePerminssionListAsync(string roleId);
}
}