TWxUserService.java 867 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ylx.massage.service;
  2. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.ylx.massage.domain.TWxUser;
  5. import com.ylx.massage.domain.vo.TWxUserVo;
  6. /**
  7. * 服务类
  8. */
  9. public interface TWxUserService extends IService<TWxUser> {
  10. /**
  11. * 根据openId查询用户
  12. * @param openId
  13. * @return TWxUser
  14. */
  15. public TWxUser getByOpenId(String openId);
  16. /**
  17. * 根据手机号查询用户
  18. * @param phone 手机号
  19. * @return TWxUser
  20. */
  21. TWxUser getByPhone(String phone);
  22. Page<TWxUserVo> getUserList(Page<TWxUserVo> page, TWxUserVo user);
  23. /**
  24. * 绑定手机号
  25. * @param openId 用户的openId
  26. * @param phone 手机号
  27. * @return boolean
  28. */
  29. boolean bindPhone(String openId, String phone);
  30. }