1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using System.Collections.Generic;
- using System.Threading.Tasks;
- using GxPress.Request.Role;
- namespace GxPress.Service.Interface.Role
- {
- public interface IRoleService : IService
- {
- /// <summary>
- /// 添加权限菜单关联
- /// </summary>
- /// <param name="models"></param>
- /// <returns></returns>
- Task<bool> InsertSystemRoleMenusAsync(SystemRoleMenusInRequest models);
- /// <summary>
- /// 添加权限
- /// </summary>
- /// <param name="models"></param>
- /// <returns></returns>
- Task<bool> InsertSystemRoleAsync(Entity.SystemRole.SystemRole model);
- /// <summary>
- /// 修改权限
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- Task<bool> UpdateSystemRoleAsync(Entity.SystemRole.SystemRole model);
- /// <summary>
- /// 删除权限
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- Task<bool> DeleteSystemRoleAsync(int id);
- /// <summary>
- /// 添加菜单
- /// </summary>
- /// <param name="models"></param>
- /// <returns></returns>
- Task<bool> InsertMenusAsync(Entity.Menus.Menus model);
- Task<bool> InsertMenusAsync(List<Entity.Menus.Menus> models);
- /// <summary>
- /// 修改菜单
- /// </summary>
- /// <param name="model"></param>
- /// <returns></returns>
- Task<bool> UpdateMenusAsync(Entity.Menus.Menus model);
- /// <summary>
- /// 删除菜单
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- Task<bool> DeleteMenusAsync(int id);
- /// <summary>
- /// 根据权限ID获取菜单
- /// </summary>
- /// <param name="roleId"></param>
- /// <returns></returns>
- Task<IEnumerable<Entity.Menus.Menus>> GetMenusAllAsync(int roleId);
- /// <summary>
- /// 获取所有菜单
- /// </summary>
- /// <param name="roleId"></param>
- /// <returns></returns>
- Task<IEnumerable<Entity.Menus.Menus>> GetMenusAllAsync();
- }
- }
|