ISysLoginService.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using Dto;
  2. using Model;
  3. using Model.Base;
  4. using Vo;
  5. namespace Services
  6. {
  7. public interface ISysLoginService : IBaseService<SysLogininfor>
  8. {
  9. /// <summary>
  10. /// 验证登录接口
  11. /// </summary>
  12. /// <param name="loginBody"></param>
  13. /// <param name="logininfor"></param>
  14. /// <returns></returns>
  15. public bool CheckLogin(string scope, string grantType, string token);
  16. /// <summary>
  17. /// 登录成功返回数据
  18. /// </summary>
  19. /// <param name="loginUser"></param>
  20. /// <returns></returns>
  21. public OAuthVo GetLoginInfo(TokenModel loginUser);
  22. /// <summary>
  23. /// 登录
  24. /// </summary>
  25. /// <param name="loginBody"></param>
  26. /// <param name="logininfor"></param>
  27. /// <returns></returns>
  28. public SysUser Login(LoginBodyDto loginBody, SysLogininfor logininfor);
  29. /// <summary>
  30. /// 手机号登录
  31. /// </summary>
  32. /// <param name="loginBody"></param>
  33. /// <param name="logininfor"></param>
  34. /// <param name="user"></param>
  35. /// <returns></returns>
  36. SysUser PhoneLogin(PhoneLoginDto loginBody, SysLogininfor logininfor, SysUser user);
  37. /// <summary>
  38. /// 查询操作日志
  39. /// </summary>
  40. /// <param name="logininfoDto"></param>
  41. /// <param name="pager">分页</param>
  42. /// <returns></returns>
  43. public PagedInfo<SysLogininfor> GetLoginLog(SysLogininfor logininfoDto, PagerInfo pager);
  44. /// <summary>
  45. /// 记录登录日志
  46. /// </summary>
  47. /// <param name="sysLogininfor"></param>
  48. /// <returns></returns>
  49. public void AddLoginInfo(SysLogininfor sysLogininfor);
  50. /// <summary>
  51. /// 清空登录日志
  52. /// </summary>
  53. public void TruncateLogininfo();
  54. /// <summary>
  55. /// 删除登录日志
  56. /// </summary>
  57. /// <param name="ids"></param>
  58. /// <returns></returns>
  59. public int DeleteLogininforByIds(long[] ids);
  60. void CheckLockUser(string userName);
  61. }
  62. }