From 7ba080d35812e6db7bd5aa8f88161c02653eb6c1 Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期三, 24 九月 2025 22:42:35 +0800 Subject: [PATCH] feat: 优化员工和评委编辑功能的密码重置逻辑 --- backend/src/main/resources/graphql/player.graphqls | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 57 insertions(+), 1 deletions(-) diff --git a/backend/src/main/resources/graphql/player.graphqls b/backend/src/main/resources/graphql/player.graphqls index 71bea78..c3d8336 100644 --- a/backend/src/main/resources/graphql/player.graphqls +++ b/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 { @@ -20,6 +26,7 @@ type ActivityPlayerDetailResponse { id: ID! playerInfo: PlayerInfoResponse! + regionInfo: RegionInfoResponse activityName: String! description: String submissionFiles: [SubmissionMediaResponse!]! @@ -33,6 +40,13 @@ phone: String description: String avatarUrl: String +} + +# 鍖哄煙淇℃伅鍝嶅簲 +type RegionInfoResponse { + id: ID! + name: String! + fullPath: String } # 鎻愪氦璧勬枡鍝嶅簲 @@ -63,5 +77,47 @@ # 璇勫垎椤圭洰杈撳叆绫诲瀷 input ActivityPlayerRatingItemInput { itemId: ID! + score: Float! +} + +# 璇勫璇勫垎鐘舵�佸搷搴旂被鍨� +type JudgeRatingStatusResponse { + judgeId: ID! + judgeName: String! + hasRated: Boolean! + ratingTime: String + totalScore: Float +} + +# 褰撳墠璇勫璇勫垎鍝嶅簲绫诲瀷 +type CurrentJudgeRatingResponse { + id: ID! + totalScore: Float + status: Int + remark: String + items: [CurrentJudgeRatingItemResponse!]! +} + +# 褰撳墠璇勫璇勫垎椤瑰搷搴旂被鍨� +type CurrentJudgeRatingItemResponse { + ratingItemId: ID! + ratingItemName: String! + score: Float! + weightedScore: Float! +} + +# 璇勫垎椤圭洰鍒嗘暟鍝嶅簲绫诲瀷 +type RatingItemScoreResponse { + itemId: ID! + itemName: String! score: Int! + maxScore: Int! +} + +# 褰撳墠璇勫淇℃伅鍝嶅簲绫诲瀷 +type CurrentJudgeInfoResponse { + judgeId: ID! + judgeName: String! + title: String + company: String } \ No newline at end of file -- Gitblit v1.8.0