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 { default int deleteByRefreshToken(String refreshToken) { return delete(new LambdaQueryWrapperX() .eq(OAuth2RefreshTokenDO::getRefreshToken, refreshToken)); } default OAuth2RefreshTokenDO selectByRefreshToken(String refreshToken) { return selectOne(OAuth2RefreshTokenDO::getRefreshToken, refreshToken); } }