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.

64 lines
1.6 KiB
C#

12 months ago
using DS.Module.Core;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Entity;
12 months ago
namespace DS.WMS.Core.Sys.Interface;
12 months ago
/// <summary>
///
/// </summary>
public interface ISysRoleService
{
/// <summary>
/// 列表查询
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<SysRole>> GetListByPage(PageRequest request);
/// <summary>
/// 添加角色
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult EditRole(RoleInput model);
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<SysRole> GetRoleInfo(string id);
/// <summary>
/// 获取角色权限树
/// </summary>
/// <returns></returns>
DataResult<RolePermissionTreeViewModel> GetRolePermissionTree();
/// <summary>
/// 获取角色权限树-客户端
/// </summary>
/// <returns></returns>
public DataResult<RolePermissionTreeViewModel> GetClientRolePermissionTree();
12 months ago
/// <summary>
/// 获取角色权限
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
11 months ago
DataResult<long?[]> GetRolePermission(string id);
12 months ago
/// <summary>
/// 更新角色权限
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
DataResult UpdateRolePermission(RolePermissionInput model);
/// <summary>
/// 更新角色权限-客户端
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public DataResult UpdateClientRolePermission(RolePermissionInput model);
12 months ago
}