SysUserAppService.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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(ISysUserService sysUserService) : IDynamicApiController
  11. {
  12. /// <summary>
  13. /// 修改密码
  14. /// </summary>
  15. /// <param name="input"></param>
  16. /// <returns></returns>
  17. public async Task ChangePassword(ChangeSysUserPasswordInput input)
  18. {
  19. await sysUserService.ChangePassword(input);
  20. }
  21. /// <summary>
  22. /// 查询简要用户列表
  23. /// </summary>
  24. /// <param name="input"></param>
  25. /// <returns></returns>
  26. public async Task<PageResult<SysUserSimpleOutput>> QueryUserSimplePageList(SysUserPageInput input)
  27. {
  28. return await sysUserService.QueryUserSimplePageList(input);
  29. }
  30. ///// <summary>
  31. ///// 更换密码加密方式
  32. ///// </summary>
  33. ///// <returns></returns>
  34. //[AllowAnonymous]
  35. //public async Task UpdatePassword()
  36. //{
  37. // await _sysUserService.UpdatePassword();
  38. //}
  39. }
  40. }