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.

69 lines
1.7 KiB
C#

1 year ago
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Sys.Dtos;
using Microsoft.AspNetCore.Http;
1 year ago
namespace DS.WMS.Core.Sys.Interface;
1 year ago
public interface IUserService
{
/// <summary>
/// 列表查询
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<UserViewModel>> GetListByPage(PageRequest request);
/// <summary>
/// 获取单个用户信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
DataResult<UserViewModel> GetUserInfo(string id);
/// <summary>
/// 编辑用户信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
11 months ago
DataResult EditUser(UserReq model);
/// <summary>
/// 用户唯一码检测
/// </summary>
/// <param name="code"></param>
/// <returns></returns>
public Task<DataResult> CheckUserCode(string code);
/// <summary>
/// 删除用户
/// </summary>
/// <param name="req"></param>
/// <returns></returns>
public Task<DataResult> BatchDelUser(IdModel req);
/// <summary>
/// 按Excel导入用户信息
/// </summary>
/// <param name="file"></param>
/// <returns></returns>
public Task<DataResult<string>> ImportUserByExcel(IFormFile file);
/// <summary>
/// 查询客户端 用户拥有的菜单权限
/// </summary>
/// <returns></returns>
public Task<DataResult<List<RouteItem>>> GetClientUserPermissions(string id);
/// <summary>
/// 根据权限模块获取数据范围列表
/// </summary>
/// <param name="permissionId"></param>
/// <returns></returns>
public Task<DataResult<List<DataRuleRes>>> GetDataRuleListByPermission(string permissionId);
1 year ago
}