ISysUserService.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using Dto;
  2. using Feign;
  3. using Model;
  4. using Model.Base;
  5. using Vo;
  6. namespace Services
  7. {
  8. public interface ISysUserService : IBaseService<SysUser>
  9. {
  10. public PagedInfo<SysUser> SelectUserList(SysUserQueryDto user, PagerInfo pager);
  11. /// <summary>
  12. /// 通过用户ID查询用户
  13. /// </summary>
  14. /// <param name="userId"></param>
  15. /// <returns></returns>
  16. public SysUser SelectUserById(long userId);
  17. /// <summary>
  18. /// 校验用户名称是否唯一
  19. /// </summary>
  20. /// <param name="userName"></param>
  21. /// <returns></returns>
  22. public string CheckUserNameUnique(string userName);
  23. /// <summary>
  24. /// 新增保存用户信息
  25. /// </summary>
  26. /// <param name="sysUser"></param>
  27. /// <returns></returns>
  28. public SysUser InsertUser(SysUser sysUser);
  29. /// <summary>
  30. /// 修改用户信息
  31. /// </summary>
  32. /// <param name="user"></param>
  33. /// <returns></returns>
  34. public int UpdateUser(SysUser user);
  35. public int ChangeUser(SysUser user);
  36. /// <summary>
  37. /// 重置密码
  38. /// </summary>
  39. /// <param name="userid"></param>
  40. /// <param name="password"></param>
  41. /// <returns></returns>
  42. public int ResetPwd(long userid, string password);
  43. public int ChangeUserStatus(SysUser user);
  44. /// <summary>
  45. /// 删除用户
  46. /// </summary>
  47. /// <param name="userid"></param>
  48. /// <returns></returns>
  49. public int DeleteUser(long userid);
  50. /// <summary>
  51. /// 修改用户头像
  52. /// </summary>
  53. /// <param name="user"></param>
  54. /// <returns></returns>
  55. public int UpdatePhoto(SysUser user);
  56. /// <summary>
  57. /// 注册
  58. /// </summary>
  59. /// <param name="dto"></param>
  60. /// <returns></returns>
  61. SysUser Register(RegisterDto dto);
  62. void CheckUserAllowed(SysUser user);
  63. void CheckUserDataScope(long userid, long loginUserId);
  64. /// <summary>
  65. /// 导入
  66. /// </summary>
  67. /// <param name="users"></param>
  68. /// <returns></returns>
  69. (string, object, object) ImportUsers(List<SysUser> users);
  70. SysUser Login(LoginBodyDto user);
  71. void UpdateLoginInfo(string userIP, long userId);
  72. PagedInfo<SysUserVo> TestList(SysDeptFeign SysDept);
  73. }
  74. }