mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-21 01:10:39 +08:00
第三方登录回调后登陆系统用户逻辑基本完成
This commit is contained in:
@@ -5,6 +5,14 @@ import plus.bookshelf.Dao.DO.ThirdPartyUserAuthDO;
|
||||
|
||||
@Repository // 添加这个注解,Autowired的时候idea就不会报错了
|
||||
public interface ThirdPartyUserAuthDOMapper {
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
@@ -20,4 +28,44 @@ public interface ThirdPartyUserAuthDOMapper {
|
||||
* @mbg.generated
|
||||
*/
|
||||
int insertSelective(ThirdPartyUserAuthDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
ThirdPartyUserAuthDO selectByPrimaryKey(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
int updateByPrimaryKeySelective(ThirdPartyUserAuthDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
int updateByPrimaryKey(ThirdPartyUserAuthDO record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
ThirdPartyUserAuthDO selectByThirdPartyUserId(Integer id);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table third_party_user_auth_relation
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
ThirdPartyUserAuthDO selectByUserId(Integer id);
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
package plus.bookshelf.Dao.Mapper;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
import plus.bookshelf.Dao.DO.ThirdPartyUserAuthDO;
|
||||
import plus.bookshelf.Dao.DO.ThirdPartyUserDO;
|
||||
|
||||
@Repository // 添加这个注解,Autowired的时候idea就不会报错了
|
||||
@@ -52,4 +53,12 @@ public interface ThirdPartyUserDOMapper {
|
||||
* @mbg.generated
|
||||
*/
|
||||
int updateByPrimaryKey(ThirdPartyUserDO record);
|
||||
|
||||
/**
|
||||
* 通过 uuid + source 查询第三方登录的用户信息(limit 1)
|
||||
* @param uuid
|
||||
* @param source
|
||||
* @return
|
||||
*/
|
||||
ThirdPartyUserDO selectByUuidAndSource(String uuid, String source);
|
||||
}
|
Reference in New Issue
Block a user