SysUserAppService.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application
  3. {
  4. /// <summary>
  5. /// 系统用户服务
  6. /// </summary>
  7. [ApiDescriptionSettings(Name = "sys-user")]
  8. [Route("sys/user")]
  9. [AppAuthorize]
  10. public class SysUserAppService : IDynamicApiController
  11. {
  12. private readonly ISysUserService _sysUserService;
  13. public SysUserAppService(ISysUserService sysUserService)
  14. {
  15. _sysUserService = sysUserService;
  16. }
  17. /// <summary>
  18. /// 修改密码
  19. /// </summary>
  20. /// <param name="input"></param>
  21. /// <returns></returns>
  22. public async Task ChangePassword(ChangeSysUserPasswordInput input)
  23. {
  24. await _sysUserService.ChangePassword(input);
  25. }
  26. /// <summary>
  27. /// 查询简要用户列表
  28. /// </summary>
  29. /// <param name="input"></param>
  30. /// <returns></returns>
  31. public async Task<PageResult<SysUserSimpleOutput>> QueryUserSimplePageList(SysUserPageInput input)
  32. {
  33. return await _sysUserService.QueryUserSimplePageList(input);
  34. }
  35. }
  36. }