分页查询token

This commit is contained in:
jumuning 2022-05-31 19:08:54 +08:00
parent 9081414939
commit 7e4efca9d2
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ public class PigTokenEndpoint {
@PostMapping("/page")
public R<Page> tokenList(@RequestBody Map<String, Object> params) {
// 根据分页参数获取对应数据
String key = String.format("%sauth_to_access:*", CacheConstants.PROJECT_OAUTH_ACCESS);
String key = String.format("%s::*", CacheConstants.PROJECT_OAUTH_ACCESS);
int current = MapUtil.getInt(params, CommonConstants.CURRENT);
int size = MapUtil.getInt(params, CommonConstants.SIZE);
Set<String> keys = redisTemplate.keys(key);

View File

@ -27,7 +27,7 @@ public interface CacheConstants {
/**
* oauth 缓存前缀
*/
String PROJECT_OAUTH_ACCESS = "pig_oauth:access:";
String PROJECT_OAUTH_ACCESS = "token::access_token";
/**
* oauth 缓存令牌前缀