|
|
@@ -320,7 +320,7 @@ public class CodexServiceImpl implements CodexService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ClaudeCodeResp getJavaUserAnalytics(Long userId, String start, String end) {
|
|
|
+ public ClaudeCodeResp getJavaUserAnalytics(Long userId, String start, String end, Integer page, Integer limit, String order) {
|
|
|
List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
CodexUser codexUser = codexUserMapper.selectOne(Wrappers.lambdaQuery(CodexUser.class).in(CodexUser::getUserId, userIdList).last("limit 1"));
|
|
|
|
|
|
@@ -335,7 +335,7 @@ public class CodexServiceImpl implements CodexService {
|
|
|
}
|
|
|
|
|
|
// 调用Codex API获取用户分析数据
|
|
|
- String analyticsUrl = String.format(Constant.CLAUDE_CODE_API_PREFIX + "api/openai/users/%s/analytics?start=%s&end=%s", codexUser.getUserId(), start, end);
|
|
|
+ String analyticsUrl = String.format(Constant.CLAUDE_CODE_API_PREFIX + "api/openai/users/%s/analytics?start=%s&end=%s&page=%s&limit=%s&order=%s", codexUser.getUserId(), start, end, page, limit, order);
|
|
|
ClaudeCodeResp codexResp = executeCodexGetApi(analyticsUrl);
|
|
|
|
|
|
return codexResp;
|