From b39a0502e7941ce966fda53664cf1b04ba52d65f Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期三, 01 十月 2025 17:30:24 +0800 Subject: [PATCH] 清理测试文件:删除所有test、debug、fix、check_开头的文件,为重构做准备 --- web/src/api/player.js | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/src/api/player.js b/web/src/api/player.js index 34cec08..c14cc6e 100644 --- a/web/src/api/player.js +++ b/web/src/api/player.js @@ -105,7 +105,12 @@ const GET_APPLICATIONS = ` query GetApplications($name: String, $activityId: ID, $state: Int, $page: Int, $size: Int) { activityPlayerApplications(name: $name, activityId: $activityId, state: $state, page: $page, size: $size) { - id playerName activityName phone applyTime state + content { + id playerName activityName projectName phone applyTime state + } + totalElements + page + size } } ` @@ -113,6 +118,6 @@ export const PlayerApi = { getApplications: async (name, activityId, state, page, size) => { const data = await graphqlRequest(GET_APPLICATIONS, { name, activityId, state, page, size }) - return data.activityPlayerApplications || [] + return data.activityPlayerApplications || { content: [], totalElements: 0, page: 1, size: 10 } } } \ No newline at end of file -- Gitblit v1.8.0