package com.sonic.bear.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.bear.domain.entity.User;
import com.sonic.bear.domain.entity.UserInfoBo;
import com.sonic.bear.enums.ThirdTypeEnum;

/**
 * @author coder
 */
public interface UserService extends IService<User> {


    /**
     * 三方登录或注册
     * @param thirdType
     * @param openId
     * @param email
     * @param nickname
     * @return
     */
    Long thirdLoginOrRegister(ThirdTypeEnum thirdType, String openId, String email, String nickname);

    /**
     * 查询用户信息
     * @param userId
     * @return
     */
    UserInfoBo queryUserInfo(Long userId);

}
