UserService.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. * 根据showId 获取用户id
  32. */
  33. Long getUserIdByShowId(String showId);
  34. /**
  35. * 验证码登录
  36. */
  37. User webLogin(LoginReq loginReq, HttpServletRequest request) throws Exception;
  38. String bindWxAccountRedirect(String code, String state) throws Exception;
  39. /**
  40. * 领取礼品卡
  41. */
  42. void receiveGiftCardByRc(Long userId, String code, Long relationId);
  43. UserSharedDto getUserShredDtoByDsCode(String dsCode);
  44. Long getSharedIdByUserId(Long userId);
  45. void bindUserDistributeShared(Long userId, String dsCode);
  46. /**
  47. * 实物好友邀请分销
  48. */
  49. void saveEpDistributeShared(Long userId, String dsCode);
  50. }