LoginService.java 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. package com.caimei.service.wechat;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.vo.WxClubUserVo;
  4. import com.caimei.utils.HttpRequest;
  5. import javax.servlet.http.HttpServletRequest;
  6. /**
  7. * Description
  8. *
  9. * @author : Aslee
  10. * @date : 2021/7/15
  11. */
  12. public interface LoginService {
  13. /**
  14. * 微信授权登录
  15. *
  16. * @param code
  17. * @param appId
  18. * @return
  19. */
  20. ResponseJson<WxClubUserVo> loginByAuthorization(String code, String appId);
  21. /**
  22. * 发送登录验证码
  23. *
  24. * @param mobile
  25. * @param authUserId
  26. * @param type
  27. * @return
  28. */
  29. ResponseJson sendVerifyCode(String mobile, Integer authUserId, Integer type);
  30. /**
  31. * 服务号验证码登录
  32. */
  33. ResponseJson<WxClubUserVo> loginByVerifyCode(String mobile, String verifyCode, String accessToken, String openId, String appId) throws Exception;
  34. /**
  35. * 订阅号验证码登录
  36. *
  37. * @param mobile 手机号
  38. * @param verifyCode 验证码
  39. * @param authUserId 供应商用户id
  40. * @return
  41. */
  42. ResponseJson<WxClubUserVo> loginByVerifyCode(String mobile, String verifyCode, Integer authUserId);
  43. /**
  44. * 密码登录
  45. *
  46. * @param mobile
  47. * @param password
  48. * @param authUserId
  49. * @return
  50. */
  51. ResponseJson<WxClubUserVo> passwordLogin(String mobile, String password, Integer authUserId);
  52. //根据token获取用户信息
  53. ResponseJson<WxClubUserVo> getUserInfoByToken(HttpServletRequest httpRequest);
  54. }