using System; using System.Threading.Tasks; using Admin.Core.Model.Output; using Admin.Core.Service.Admin.Permission.Input; namespace Admin.Core.Service.Admin.Permission { public partial interface IPermissionService { Task GetAsync(long id); Task GetGroupAsync(long id); Task GetMenuAsync(long id); Task GetApiAsync(long id); Task GetPermissionList(); Task GetRolePermissionList(long roleId = 0); Task ListAsync(string key, DateTime? start, DateTime? end); Task AddGroupAsync(PermissionAddGroupInput input); Task AddMenuAsync(PermissionAddMenuInput input); Task AddApiAsync(PermissionAddApiInput input); Task UpdateGroupAsync(PermissionUpdateGroupInput input); Task UpdateMenuAsync(PermissionUpdateMenuInput input); Task UpdateApiAsync(PermissionUpdateApiInput input); Task DeleteAsync(long id); Task SoftDeleteAsync(long id); Task AssignAsync(PermissionAssignInput input); } }