提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.dal.mysql.oauth2; |
H |
2 |
|
|
3 |
import com.iailab.framework.mybatis.core.mapper.BaseMapperX; |
|
4 |
import com.iailab.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
5 |
import com.iailab.module.system.dal.dataobject.oauth2.OAuth2RefreshTokenDO; |
|
6 |
import org.apache.ibatis.annotations.Mapper; |
|
7 |
|
|
8 |
@Mapper |
|
9 |
public interface OAuth2RefreshTokenMapper extends BaseMapperX<OAuth2RefreshTokenDO> { |
|
10 |
|
|
11 |
default int deleteByRefreshToken(String refreshToken) { |
|
12 |
return delete(new LambdaQueryWrapperX<OAuth2RefreshTokenDO>() |
|
13 |
.eq(OAuth2RefreshTokenDO::getRefreshToken, refreshToken)); |
|
14 |
} |
|
15 |
|
|
16 |
default OAuth2RefreshTokenDO selectByRefreshToken(String refreshToken) { |
|
17 |
return selectOne(OAuth2RefreshTokenDO::getRefreshToken, refreshToken); |
|
18 |
} |
|
19 |
|
|
20 |
} |