lrj
3 天以前 7ad9c3c93f0cc103347ae2e2429e0122fb512e24
backend/src/main/java/com/rongyichuang/player/api/PlayerGraphqlApi.java
@@ -1,9 +1,12 @@
package com.rongyichuang.player.api;
import com.rongyichuang.common.dto.PageResponse;
import com.rongyichuang.player.dto.input.ActivityPlayerRatingInput;
import com.rongyichuang.player.dto.ActivityRegistrationInput;
import com.rongyichuang.player.dto.response.ActivityPlayerApplicationResponse;
import com.rongyichuang.player.dto.response.ActivityPlayerDetailResponse;
import com.rongyichuang.player.dto.response.ProjectReviewApplicationPageResponse;
import com.rongyichuang.player.dto.response.PlayerApplicationPageResponse;
import com.rongyichuang.player.dto.ActivityRegistrationResponse;
import com.rongyichuang.player.dto.response.JudgeRatingStatusResponse;
import com.rongyichuang.player.dto.response.CurrentJudgeRatingResponse;
@@ -53,14 +56,32 @@
    }
    @QueryMapping
    public List<ActivityPlayerApplicationResponse> activityPlayerApplications(
    public PlayerApplicationPageResponse activityPlayerApplications(
            @Argument String name,
            @Argument Long activityId,
            @Argument Integer state,
            @Argument Integer page,
            @Argument Integer size
    ) {
        return service.listApplications(name, activityId, state, page, size);
        PageResponse<ActivityPlayerApplicationResponse> pageResponse =
            service.listApplications(name, activityId, state, page, size);
        return PlayerApplicationPageResponse.from(pageResponse);
    }
    /**
     * 项目评审专用查询,包含所有阶段数据(包括复赛、决赛)
     */
    @QueryMapping
    public ProjectReviewApplicationPageResponse projectReviewApplications(
            @Argument String name,
            @Argument Long activityId,
            @Argument Integer state,
            @Argument Integer page,
            @Argument Integer size
    ) {
        PageResponse<ActivityPlayerApplicationResponse> pageResponse =
            service.listProjectReviewApplications(name, activityId, state, page, size);
        return ProjectReviewApplicationPageResponse.from(pageResponse);
    }
    /**