基础服务api
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

58 lines
1.5 KiB

  1. using BPA.SAAS.Manage.Application.Auth.Dtos;
  2. using BPA.SAAS.Manage.Core.Base;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPA.SAAS.Manage.Application.Auth
  9. {
  10. public interface IAuthService
  11. {
  12. Task<LoginOutInfo> Login(LoginInput input);
  13. Task<LoginOutput> GetLoginUserAsync();
  14. Task LogoutAsync();
  15. #region 添加平台授权
  16. /// <summary>
  17. /// 分页
  18. /// </summary>
  19. /// <param name="input"></param>
  20. /// <returns></returns>
  21. Task<PageUtil> PageAuthorization(PageInputBase input);
  22. /// <summary>
  23. /// 添加授权码
  24. /// </summary>
  25. /// <returns></returns>
  26. Task<bool> AddAuthorization(CreateOrUpDatePlatformAuthorizationDto input);
  27. /// <summary>
  28. /// 修改授权码
  29. /// </summary>
  30. /// <param name="id"></param>
  31. /// <returns></returns>
  32. Task<bool> UpdateAuthorization(string id);
  33. /// <summary>
  34. /// 修改授权码授权时间
  35. /// </summary>
  36. /// <param name="input"></param>
  37. /// <returns></returns>
  38. Task<bool> UpdateAuthTime(CreateOrUpDatePlatformAuthorizationDto input);
  39. /// <summary>
  40. /// 删除授权
  41. /// </summary>
  42. /// <param name="id"></param>
  43. /// <returns></returns>
  44. Task<bool> DelAuthorization(string id);
  45. #endregion
  46. }
  47. }