package com.iailab.module.system.dal.mysql.oauth2;
|
|
import com.iailab.framework.mybatis.core.mapper.BaseMapperX;
|
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX;
|
import com.iailab.module.system.dal.dataobject.oauth2.OAuth2RefreshTokenDO;
|
import org.apache.ibatis.annotations.Mapper;
|
|
@Mapper
|
public interface OAuth2RefreshTokenMapper extends BaseMapperX<OAuth2RefreshTokenDO> {
|
|
default int deleteByRefreshToken(String refreshToken) {
|
return delete(new LambdaQueryWrapperX<OAuth2RefreshTokenDO>()
|
.eq(OAuth2RefreshTokenDO::getRefreshToken, refreshToken));
|
}
|
|
default OAuth2RefreshTokenDO selectByRefreshToken(String refreshToken) {
|
return selectOne(OAuth2RefreshTokenDO::getRefreshToken, refreshToken);
|
}
|
|
}
|