UserService.java 1.9 KB

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