| | |
| | | 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.ProjectStageTimelineResponse; |
| | | 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; |
| | | import com.rongyichuang.player.dto.response.CurrentJudgeInfoResponse; |
| | | import com.rongyichuang.player.dto.response.PlayerRegistrationResponse; |
| | | import com.rongyichuang.player.dto.response.StageJudgeRatingDetailResponse; |
| | | import com.rongyichuang.player.dto.PromotionCompetitionResponse; |
| | | import com.rongyichuang.player.dto.CompetitionParticipantResponse; |
| | | import com.rongyichuang.player.dto.PromotionInput; |
| | |
| | | import com.rongyichuang.player.service.ActivityPlayerDetailService; |
| | | import com.rongyichuang.player.service.ActivityPlayerRatingService; |
| | | import com.rongyichuang.player.service.ActivityPlayerService; |
| | | import com.rongyichuang.player.service.ProjectStageRatingService; |
| | | import com.rongyichuang.player.service.PromotionService; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | private final ActivityPlayerRatingService ratingService; |
| | | private final ActivityPlayerService activityPlayerService; |
| | | private final PromotionService promotionService; |
| | | private final ProjectStageRatingService projectStageRatingService; |
| | | |
| | | public PlayerGraphqlApi(PlayerApplicationService service, |
| | | ActivityPlayerDetailService detailService, |
| | | ActivityPlayerRatingService ratingService, |
| | | ActivityPlayerService activityPlayerService, |
| | | PromotionService promotionService) { |
| | | PromotionService promotionService, |
| | | ProjectStageRatingService projectStageRatingService) { |
| | | this.service = service; |
| | | this.detailService = detailService; |
| | | this.ratingService = ratingService; |
| | | this.activityPlayerService = activityPlayerService; |
| | | this.promotionService = promotionService; |
| | | this.projectStageRatingService = projectStageRatingService; |
| | | } |
| | | |
| | | @QueryMapping |
| | |
| | | @QueryMapping |
| | | public ActivityPlayerDetailResponse activityPlayerDetail(@Argument Long id) { |
| | | return detailService.getDetailForRating(id); |
| | | } |
| | | |
| | | @QueryMapping |
| | | public ProjectStageTimelineResponse projectStageTimeline(@Argument Long activityPlayerId) { |
| | | log.info("获取参赛项目阶段时间轴,activityPlayerId: {}", activityPlayerId); |
| | | return projectStageRatingService.getProjectStageTimeline(activityPlayerId); |
| | | } |
| | | |
| | | @QueryMapping |
| | | public StageJudgeRatingDetailResponse stageJudgeRatings(@Argument Long activityPlayerId) { |
| | | log.info("获取阶段评分详情,activityPlayerId: {}", activityPlayerId); |
| | | return projectStageRatingService.getStageJudgeRatings(activityPlayerId); |
| | | } |
| | | |
| | | /** |
| | |
| | | return PromotionResult.failure("晋级操作失败: " + e.getMessage()); |
| | | } |
| | | } |
| | | } |
| | | } |