package com.cyksj.service.user; import com.baomidou.mybatisplus.extension.service.IService; import com.cyksj.model.dto.GzhOAuth2UserInfo; import com.cyksj.model.dto.UserWhoami; import com.cyksj.model.entity.User; import com.cyksj.model.entity.WxSyncLog; import com.cyksj.model.request.LoginReq; import java.util.List; /** * @author chan * @date 2021/10/10 下午3:27 */ public interface UserService extends IService { User saveAuth(GzhOAuth2UserInfo userinfo, Long sharedId, Integer dsType, Long pid, User.RegisterEnv registerEnv, String dsCode, String callback, String callbackType) throws Exception; UserWhoami whoami(long userId); User getSyncUser(String openId, String unionId, WxSyncLog wxSyncLog); /** * 发放添加固定客服渠道优惠券 */ void sendFixedCustomerCoupon(Long popularizeId, Long userId, String unionId); List getRelationUserIdList(Long userId, User selectUser); List getUserIdsByNickname(String nickname); /** * 设置用户展示id */ String getUserShowId(Long userId); /** * 根据showId 获取用户id */ Long getUserIdByShowId(String showId); /** * 验证码登录 */ User webLogin(LoginReq loginReq) throws Exception; String bindWxAccountRedirect(String code, String state) throws Exception; /** * 领取礼品卡 */ void receiveGiftCardByRc(Long userId, String code, Long relationId); }