UserService.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. package com.cyksj.service.user;
  2. import com.baomidou.mybatisplus.extension.service.IService;
  3. import com.cyksj.dto.UserSharedDto;
  4. import com.cyksj.model.dto.AuthRedirect;
  5. import com.cyksj.model.dto.GzhOAuth2UserInfo;
  6. import com.cyksj.model.dto.UserWhoami;
  7. import com.cyksj.model.entity.User;
  8. import com.cyksj.model.entity.WxSyncLog;
  9. import com.cyksj.model.request.LoginReq;
  10. import javax.servlet.http.HttpServletRequest;
  11. import java.util.List;
  12. /**
  13. * @author chan
  14. * @date 2021/10/10 下午3:27
  15. */
  16. public interface UserService extends IService<User> {
  17. User saveAuth(GzhOAuth2UserInfo userinfo, AuthRedirect re, User.RegisterEnv registerEnv) throws Exception;
  18. UserWhoami whoami(long userId);
  19. User getSyncUser(String openId, String unionId, WxSyncLog wxSyncLog);
  20. /**
  21. * 发放添加固定客服渠道优惠券
  22. */
  23. void sendFixedCustomerCoupon(Long popularizeId, Long userId, String unionId);
  24. List<Long> getRelationUserIdList(Long userId, User selectUser);
  25. List<Long> getUserIdsByNickname(String nickname);
  26. /**
  27. * 设置用户展示id
  28. */
  29. String getUserShowId(Long userId);
  30. /**
  31. * 设置用户镜像店铺展示id
  32. * @param userId
  33. * @return
  34. */
  35. String getUserMirrorShopId(Long userId);
  36. /**
  37. * 根据showId 获取用户id
  38. */
  39. Long getUserIdByShowId(String showId);
  40. /**
  41. * 验证码登录
  42. */
  43. User webLogin(LoginReq loginReq, HttpServletRequest request) throws Exception;
  44. String bindWxAccountRedirect(String code, String state) throws Exception;
  45. /**
  46. * 领取礼品卡
  47. */
  48. void receiveGiftCardByRc(Long userId, String code, Long relationId);
  49. UserSharedDto getUserShredDtoByDsCode(String dsCode);
  50. Long getSharedIdByUserId(Long userId);
  51. void bindUserDistributeShared(Long userId, String dsCode);
  52. /**
  53. * 实物好友邀请分销
  54. */
  55. void saveEpDistributeShared(Long userId, String dsCode);
  56. }