From bd999ecc09fcacf4016edcba85caf9b9696d2140 Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期六, 04 十月 2025 18:40:31 +0800 Subject: [PATCH] feat: 同步本地改动(认证/评审/用户/选手模块更新;新增/调整 GraphQL schema;小程序个人信息与评审相关页面、配置与资源等) --- backend/src/main/resources/graphql/player.graphqls | 69 ++++++++++++++++++++++++++++++++++ 1 files changed, 69 insertions(+), 0 deletions(-) diff --git a/backend/src/main/resources/graphql/player.graphqls b/backend/src/main/resources/graphql/player.graphqls index 6a5f120..d72f9d7 100644 --- a/backend/src/main/resources/graphql/player.graphqls +++ b/backend/src/main/resources/graphql/player.graphqls @@ -19,6 +19,10 @@ activityPlayerDetail(id: ID!): ActivityPlayerDetailResponse # 寰俊绔幏鍙栭�夋墜鎶ュ悕鐘舵�� getPlayerRegistrationState(activityId: ID!): PlayerRegistrationResponse + # 鑾峰彇姣旇禌鏅嬬骇鍒楄〃 + promotionCompetitions(name: String, page: Int, size: Int): [PromotionCompetitionResponse!]! + # 鑾峰彇鍙檵绾у弬璧涜�呭垪琛� + promotableParticipants(currentStageId: ID!): PromotableParticipantsResponse } extend type Mutation { @@ -29,6 +33,8 @@ submitActivityRegistration(input: ActivityRegistrationInput!): ActivityRegistrationResponse # 淇濆瓨璇勫璇勫垎 saveActivityPlayerRating(input: ActivityPlayerRatingInput!): Boolean + # 鎵ц瀛﹀憳鏅嬬骇鎿嶄綔 + promoteParticipants(input: PromotionInput!): PromotionResult } type ActivityPlayer { @@ -134,6 +140,15 @@ description: String avatarUrl: String avatar: MediaResponse + userInfo: PlayerUserInfoResponse +} + +type PlayerUserInfoResponse { + userId: ID + name: String + phone: String + avatarUrl: String + avatar: MediaResponse } type RegionInfoResponse { @@ -145,7 +160,10 @@ type SubmissionMediaResponse { id: ID name: String + path: String url: String + fullUrl: String + fullThumbUrl: String fileExt: String fileSize: Int mediaType: Int @@ -232,4 +250,55 @@ input ActivityPlayerRatingItemInput { itemId: ID! score: Float! +} + +# 姣旇禌鏅嬬骇鍒楄〃鍝嶅簲绫诲瀷 +type PromotionCompetitionResponse { + id: ID! + competitionId: ID! + competitionName: String! + stageName: String! + maxParticipants: Int + currentCount: Int! + status: Int + startTime: String + endTime: String + sortOrder: Int + state: Int +} + +# 鍙檵绾у弬璧涜�呭垪琛ㄥ搷搴旂被鍨� +type PromotableParticipantsResponse { + participants: [PromotableParticipantResponse!]! + selectableCount: Int + totalCount: Int + previousStageName: String + currentStageName: String +} + +# 鍙檵绾у弬璧涜�呭搷搴旂被鍨� +type PromotableParticipantResponse { + id: ID! + playerName: String + projectName: String + phone: String + averageScore: Float + ratingCount: Int + applyTime: String + state: Int + playerId: ID +} + +# 鏅嬬骇鎿嶄綔杈撳叆绫诲瀷 +input PromotionInput { + competitionId: ID! + participantIds: [ID!]! + targetStageId: ID! +} + +# 鏅嬬骇鎿嶄綔缁撴灉绫诲瀷 +type PromotionResult { + success: Boolean! + message: String + promotedCount: Int } \ No newline at end of file -- Gitblit v1.8.0