mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
76 lines
2.0 KiB
Java
76 lines
2.0 KiB
Java
package plus.bookshelf.Dao.Mapper;
|
||
|
||
import org.springframework.stereotype.Repository;
|
||
import plus.bookshelf.Dao.DO.ThirdPartyUserDO;
|
||
|
||
@Repository // 添加这个注解,Autowired的时候idea就不会报错了
|
||
public interface ThirdPartyUserDOMapper {
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int deleteByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int insert(ThirdPartyUserDO row);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int insertSelective(ThirdPartyUserDO row);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
ThirdPartyUserDO selectByPrimaryKey(Integer id);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int updateByPrimaryKeySelective(ThirdPartyUserDO row);
|
||
|
||
/**
|
||
* This method was generated by MyBatis Generator.
|
||
* This method corresponds to the database table third_party_user_info
|
||
*
|
||
* @mbg.generated
|
||
*/
|
||
int updateByPrimaryKey(ThirdPartyUserDO row);
|
||
|
||
/**
|
||
* 通过 uuid + source 查询第三方登录的用户信息
|
||
* @param uuid
|
||
* @param source
|
||
* @return
|
||
*/
|
||
ThirdPartyUserDO selectByUuidAndSource(String uuid, String source);
|
||
|
||
/**
|
||
* 获取上一步插入数据的主键id
|
||
* @return
|
||
*/
|
||
Integer getLastInsertId();
|
||
|
||
/**
|
||
* 获取用户登录的所有第三方平台信息
|
||
* @param userId
|
||
* @return
|
||
*/
|
||
ThirdPartyUserDO[] getUserBindThirdParties(Integer userId);
|
||
} |