lrj
2025-09-24 4fa9591629721797386fc11836e3a9deb69cd58c
backend/src/main/resources/graphql/player.graphqls
@@ -1,6 +1,12 @@
extend type Query {
  activityPlayerApplications(name: String, page: Int, size: Int): [ActivityPlayerApplicationResponse!]!
  activityPlayerApplications(name: String, activityId: ID, page: Int, size: Int): [ActivityPlayerApplicationResponse!]!
  activityPlayerDetail(id: ID!): ActivityPlayerDetailResponse
  # 评分相关查询
  judgeRatingsForPlayer(activityPlayerId: ID!): [JudgeRatingStatusResponse!]!
  currentJudgeRating(activityPlayerId: ID!): CurrentJudgeRatingResponse
  averageScoreForPlayer(activityPlayerId: ID!): Float
  currentJudgeInfo: CurrentJudgeInfoResponse
}
extend type Mutation {
@@ -64,4 +70,39 @@
input ActivityPlayerRatingItemInput {
  itemId: ID!
  score: Int!
}
# 评委评分状态响应类型
type JudgeRatingStatusResponse {
  judgeId: ID!
  judgeName: String!
  hasRated: Boolean!
  ratingTime: String
  totalScore: Float
}
# 当前评委评分响应类型
type CurrentJudgeRatingResponse {
  activityPlayerId: ID!
  judgeId: ID!
  ratings: [RatingItemScoreResponse!]!
  comment: String
  totalScore: Float
  ratingTime: String
}
# 评分项目分数响应类型
type RatingItemScoreResponse {
  itemId: ID!
  itemName: String!
  score: Int!
  maxScore: Int!
}
# 当前评委信息响应类型
type CurrentJudgeInfoResponse {
  judgeId: ID!
  judgeName: String!
  title: String
  company: String
}