123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- using Dto;
- using Feign;
- using Model;
- using Model.Base;
- using Vo;
- namespace Services
- {
- public interface ISysUserService : IBaseService<SysUser>
- {
- public PagedInfo<SysUser> SelectUserList(SysUserQueryDto user, PagerInfo pager);
- /// <summary>
- /// 通过用户ID查询用户
- /// </summary>
- /// <param name="userId"></param>
- /// <returns></returns>
- public SysUser SelectUserById(long userId);
- /// <summary>
- /// 校验用户名称是否唯一
- /// </summary>
- /// <param name="userName"></param>
- /// <returns></returns>
- public string CheckUserNameUnique(string userName);
- /// <summary>
- /// 新增保存用户信息
- /// </summary>
- /// <param name="sysUser"></param>
- /// <returns></returns>
- public SysUser InsertUser(SysUser sysUser);
- /// <summary>
- /// 修改用户信息
- /// </summary>
- /// <param name="user"></param>
- /// <returns></returns>
- public int UpdateUser(SysUser user);
- public int ChangeUser(SysUser user);
- /// <summary>
- /// 重置密码
- /// </summary>
- /// <param name="userid"></param>
- /// <param name="password"></param>
- /// <returns></returns>
- public int ResetPwd(long userid, string password);
- public int ChangeUserStatus(SysUser user);
- /// <summary>
- /// 删除用户
- /// </summary>
- /// <param name="userid"></param>
- /// <returns></returns>
- public int DeleteUser(long userid);
- /// <summary>
- /// 修改用户头像
- /// </summary>
- /// <param name="user"></param>
- /// <returns></returns>
- public int UpdatePhoto(SysUser user);
- /// <summary>
- /// 注册
- /// </summary>
- /// <param name="dto"></param>
- /// <returns></returns>
- SysUser Register(RegisterDto dto);
- void CheckUserAllowed(SysUser user);
- void CheckUserDataScope(long userid, long loginUserId);
- /// <summary>
- /// 导入
- /// </summary>
- /// <param name="users"></param>
- /// <returns></returns>
- (string, object, object) ImportUsers(List<SysUser> users);
- SysUser Login(LoginBodyDto user);
- void UpdateLoginInfo(string userIP, long userId);
- PagedInfo<SysUserVo> TestList(SysDeptFeign SysDept);
- }
- }
|