UserService.java 1.9 KB

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