| | |
| | | import com.rongyichuang.player.dto.PromotionInput; |
| | | import com.rongyichuang.player.dto.PromotionResult; |
| | | import com.rongyichuang.player.dto.PromotableParticipantsResponse; |
| | | import com.rongyichuang.player.entity.ActivityPlayer; |
| | | import com.rongyichuang.player.service.PlayerApplicationService; |
| | | import com.rongyichuang.player.service.ActivityPlayerDetailService; |
| | | import com.rongyichuang.player.service.ActivityPlayerRatingService; |
| | |
| | | this.promotionService = promotionService; |
| | | } |
| | | |
| | | @QueryMapping |
| | | public ActivityPlayer myActivityPlayer(@Argument Long activityId) { |
| | | return activityPlayerService.getMyActivityPlayer(activityId); |
| | | } |
| | | |
| | | @QueryMapping |
| | | public PlayerApplicationPageResponse activityPlayerApplications( |
| | | @Argument String name, |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询玩家在指定活动中的报名状态(别名,避免混淆) |
| | | */ |
| | | @QueryMapping(name = "getPlayerRegistrationState") |
| | | public PlayerRegistrationResponse getPlayerRegistrationState(@Argument Long activityId) { |
| | | return activityPlayerService.getPlayerRegistration(activityId); |
| | | } |
| | | |
| | | /** |
| | | * 保存比赛报名评分 |
| | | */ |
| | | @MutationMapping |