平安校园
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

IUserService.cs 3.5 KiB

4 mesi fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. 
  2. //
  3. namespace SafeCampus.Application;
  4. /// <summary>
  5. /// 人员管理服务
  6. /// </summary>
  7. public interface IUserService : ITransient
  8. {
  9. #region 查询
  10. /// <summary>
  11. /// 人员选择器
  12. /// </summary>
  13. /// <param name="input">查询参数</param>
  14. /// <returns>人员列表</returns>
  15. Task<SqlSugarPagedList<UserSelectorOutPut>> Selector(UserSelectorInput input);
  16. /// <summary>
  17. /// 用户分页查询
  18. /// </summary>
  19. /// <param name="input">查询参数</param>
  20. /// <returns>用户分页列表</returns>
  21. Task<SqlSugarPagedList<SysUser>> Page(UserPageInput input);
  22. /// <summary>
  23. /// 获取用户拥有角色
  24. /// </summary>
  25. /// <param name="input">用户ID</param>
  26. /// <returns></returns>
  27. Task<List<RoleSelectorOutPut>> OwnRole(BaseIdInput input);
  28. /// <summary>
  29. /// 角色选择器
  30. /// </summary>
  31. /// <param name="input"></param>
  32. /// <returns></returns>
  33. Task<SqlSugarPagedList<RoleSelectorOutPut>> RoleSelector(RoleSelectorInput input);
  34. /// <summary>
  35. /// 人员详情
  36. /// </summary>
  37. /// <param name="input"></param>
  38. /// <returns></returns>
  39. Task<SysUser> Detail(BaseIdInput input);
  40. #endregion 查询
  41. #region 添加
  42. /// <summary>
  43. /// 添加用户
  44. /// </summary>
  45. /// <param name="input">添加参数</param>
  46. /// <returns></returns>
  47. Task Add(UserAddInput input);
  48. #endregion 添加
  49. #region 编辑
  50. /// <summary>
  51. /// 编辑
  52. /// </summary>
  53. /// <param name="input">编辑参数</param>
  54. /// <returns></returns>
  55. Task Edit(UserEditInput input);
  56. /// <summary>
  57. /// 禁用用户
  58. /// </summary>
  59. /// <param name="input">用户Id</param>
  60. /// <returns></returns>
  61. Task DisableUser(BaseIdInput input);
  62. /// <summary>
  63. /// 启用用户
  64. /// </summary>
  65. /// <param name="input">用户Id</param>
  66. /// <returns></returns>
  67. Task EnableUser(BaseIdInput input);
  68. /// <summary>
  69. /// 重置密码
  70. /// </summary>
  71. /// <param name="input">用户Id</param>
  72. /// <returns></returns>
  73. Task ResetPassword(BaseIdInput input);
  74. /// <summary>
  75. /// 给用户授权角色
  76. /// </summary>
  77. /// <param name="input">授权参数</param>
  78. /// <returns></returns>
  79. Task GrantRole(UserGrantRoleInput input);
  80. #endregion 编辑
  81. #region 删除
  82. /// <summary>
  83. /// 删除用户
  84. /// </summary>
  85. /// <param name="input">Id列表</param>
  86. /// <returns></returns>
  87. Task Delete(BaseIdListInput input);
  88. #endregion 删除
  89. #region 导入导出
  90. /// <summary>
  91. /// 导入预览
  92. /// </summary>
  93. /// <param name="input">导入参数</param>
  94. /// <returns></returns>
  95. Task<dynamic> Preview(ImportPreviewInput input);
  96. /// <summary>
  97. /// 获取导入模板
  98. /// </summary>
  99. /// <returns></returns>
  100. Task<FileStreamResult> Template();
  101. /// <summary>
  102. /// 导出
  103. /// </summary>
  104. /// <param name="input">查询参数</param>
  105. /// <returns></returns>
  106. Task<dynamic> Export(UserPageInput input);
  107. /// <summary>
  108. /// 导入数据
  109. /// </summary>
  110. /// <param name="input">数据</param>
  111. /// <returns>导入结果</returns>
  112. Task<ImportResultOutPut<BizUserImportInput>> Import(ImportResultInput<BizUserImportInput> input);
  113. /// <summary>
  114. /// 批量编辑
  115. /// </summary>
  116. /// <param name="input">编辑字段信息</param>
  117. /// <returns></returns>
  118. Task Edits(BatchEditInput input);
  119. #endregion 导入导出
  120. }