mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 05:00:23 +08:00
分页查询token
This commit is contained in:
parent
9081414939
commit
7e4efca9d2
@ -186,7 +186,7 @@ public class PigTokenEndpoint {
|
|||||||
@PostMapping("/page")
|
@PostMapping("/page")
|
||||||
public R<Page> tokenList(@RequestBody Map<String, Object> params) {
|
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 current = MapUtil.getInt(params, CommonConstants.CURRENT);
|
||||||
int size = MapUtil.getInt(params, CommonConstants.SIZE);
|
int size = MapUtil.getInt(params, CommonConstants.SIZE);
|
||||||
Set<String> keys = redisTemplate.keys(key);
|
Set<String> keys = redisTemplate.keys(key);
|
||||||
|
@ -27,7 +27,7 @@ public interface CacheConstants {
|
|||||||
/**
|
/**
|
||||||
* oauth 缓存前缀
|
* oauth 缓存前缀
|
||||||
*/
|
*/
|
||||||
String PROJECT_OAUTH_ACCESS = "pig_oauth:access:";
|
String PROJECT_OAUTH_ACCESS = "token::access_token";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* oauth 缓存令牌前缀
|
* oauth 缓存令牌前缀
|
||||||
|
Loading…
Reference in New Issue
Block a user