You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Admin.Core/Admin.Core.Services/Admin/Permission/IPermissionService.cs

43 lines
1.3 KiB
C#

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<IResponseOutput> GetAsync(long id);
Task<IResponseOutput> GetGroupAsync(long id);
Task<IResponseOutput> GetMenuAsync(long id);
Task<IResponseOutput> GetApiAsync(long id);
Task<IResponseOutput> GetPermissionList();
Task<IResponseOutput> GetRolePermissionList(long roleId = 0);
Task<IResponseOutput> ListAsync(string key, DateTime? start, DateTime? end);
Task<IResponseOutput> AddGroupAsync(PermissionAddGroupInput input);
Task<IResponseOutput> AddMenuAsync(PermissionAddMenuInput input);
Task<IResponseOutput> AddApiAsync(PermissionAddApiInput input);
Task<IResponseOutput> UpdateGroupAsync(PermissionUpdateGroupInput input);
Task<IResponseOutput> UpdateMenuAsync(PermissionUpdateMenuInput input);
Task<IResponseOutput> UpdateApiAsync(PermissionUpdateApiInput input);
Task<IResponseOutput> DeleteAsync(long id);
Task<IResponseOutput> SoftDeleteAsync(long id);
Task<IResponseOutput> AssignAsync(PermissionAssignInput input);
}
}