平安校园
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

156 satır
3.5 KiB

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