12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using GxPress.Entity;
- using GxPress.Request.Role;
- using GxPress.Result.Role;
- using Datory;
- namespace GxPress.Repository.Interface
- {
- public interface IRoleRepository : IRepository
- {
- Task<int> InsertAsync(Role role);
- Task<bool> IsNameExistsAsync(string name);
- Task<Role> GetAsync(int id);
- Task<string> GetNameAsync(int id);
- Task<IEnumerable<Role>> GetListAsync(int groupId);
-
-
-
-
-
- Task<RoleDetailResult> AddAsync(RoleAddRequest request);
-
-
-
-
-
-
- Task<bool> UpdateAsync(int id, RoleAddRequest request);
-
-
-
-
-
- Task<bool> DeleteAsync(int id);
-
-
-
-
-
- Task<RoleDetailResult> GetDetailAsync(int id);
-
-
-
-
-
- Task<List<RoleDetailResult>> GetDetailListAsync(int groupId);
- }
- }
|