IAuthService.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.sckw.auth.service;
  2. import com.sckw.auth.model.vo.req.*;
  3. import com.sckw.auth.model.vo.res.LoginResVo1;
  4. import com.sckw.core.web.response.HttpResult;
  5. /**
  6. * @desc: 登录
  7. * @author: czh
  8. * @date: 2023/6/19
  9. */
  10. public interface IAuthService {
  11. /**
  12. * @param loginBase {}
  13. * @desc 登陆
  14. * @author zk
  15. * @date 2023/7/26
  16. **/
  17. HttpResult login(LoginBase loginBase);
  18. /**
  19. * @param reqVo 注册入参
  20. * @desc: 用户注册
  21. * @author: czh
  22. * @date: 2023/6/16
  23. */
  24. void register(RegisterReqVo reqVo);
  25. /**
  26. * @param reqDto 忘记密码入参
  27. * @desc: 忘记密码
  28. * @author: czh
  29. * @date: 2023/6/19
  30. */
  31. void forgetPassword(ForgetPasswordReqVo reqDto);
  32. /**
  33. * @param id 用户id
  34. * @desc: 重置密码
  35. * @author: czh
  36. * @date: 2023/7/3
  37. */
  38. void resetPassword(Long id);
  39. /**
  40. * @return LoginResVo1
  41. * @desc: 根据token获取登录信息
  42. * @author: czh
  43. * @date: 2023/9/27
  44. */
  45. LoginResVo1 getLoginResByToken(String clientType, String token);
  46. }