From 2d410989d32380d31ae3fe6d42aa3b3ba9e09d00 Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期五, 03 十月 2025 22:13:29 +0800 Subject: [PATCH] UI优化和bug修复: 1.调整小程序消息列表图标样式 2.优化web端比赛晋级页面布局 3.修复小程序消息列表日期显示问题 --- backend/src/main/resources/graphql/judge.graphqls | 95 ++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 92 insertions(+), 3 deletions(-) diff --git a/backend/src/main/resources/graphql/judge.graphqls b/backend/src/main/resources/graphql/judge.graphqls index 32b8f19..6b6c37e 100644 --- a/backend/src/main/resources/graphql/judge.graphqls +++ b/backend/src/main/resources/graphql/judge.graphqls @@ -10,6 +10,16 @@ "鑾峰彇鑵捐浜慍OS涓存椂涓婁紶鍑瘉" getUploadCredentials: CosCredentials + + # 璇勫璇勫鐩稿叧鏌ヨ + "鑾峰彇鎻愪氦璇︽儏" + getSubmissionDetail(submissionId: ID!): SubmissionDetailResponse + + # 妫�鏌ヨ瘎瀹$姸鎬� + checkReviewStatus(submissionId: ID!): ReviewStatusResponse + + # 鑾峰彇璇勫缁熻鏁版嵁 + judgeStats: JudgeStatsResponse } extend type Mutation { @@ -18,6 +28,13 @@ "鍒犻櫎璇勫" deleteJudge(id: ID): Boolean + + # 璇勫鐩稿叧mutation + "淇濆瓨璇勫鑽夌" + saveReviewDraft(input: ReviewDraftInput!): ReviewDraftResponse + + "鎻愪氦璇勫" + submitReview(input: ReviewSubmitInput!): ReviewSubmitResponse } "璇勫杈撳叆绫诲瀷" @@ -27,6 +44,7 @@ title: String company: String phone: String + password: String gender: Int description: String introduction: String @@ -51,12 +69,14 @@ tags: [TagResponse] } -"鏍囩鍝嶅簲绫诲瀷" +# 鏍囩鍝嶅簲绫诲瀷锛堢敤浜庤瘎濮斾笓涓氶鍩燂級 type TagResponse { - id: ID - name: String + id: Long! + name: String! code: String } + + "鑵捐浜慍OS涓存椂鍑瘉绫诲瀷" type CosCredentials { @@ -67,3 +87,72 @@ expiration: String } +# 鎻愪氦璇︽儏鍝嶅簲绫诲瀷 +type SubmissionDetailResponse { + id: ID! + activityId: ID! + playerId: ID! + playerName: String + projectName: String + description: String + submissionFiles: [SubmissionMediaResponse] + currentScore: Float + maxScore: Int + reviewStatus: String +} + +# 璇勫鐘舵�佸搷搴旂被鍨� +type ReviewStatusResponse { + submissionId: ID! + reviewStatus: String + canReview: Boolean + hasReviewed: Boolean + currentScore: Float + reviewTime: String +} + +# 璇勫鑽夌杈撳叆绫诲瀷 +input ReviewDraftInput { + submissionId: ID! + scores: [ReviewScoreInput!]! + comments: String +} + +# 璇勫鎻愪氦杈撳叆绫诲瀷 +input ReviewSubmitInput { + submissionId: ID! + scores: [ReviewScoreInput!]! + comments: String + finalScore: Float! +} + +# 璇勫鍒嗘暟杈撳叆绫诲瀷 +input ReviewScoreInput { + itemId: ID! + score: Float! +} + +# 璇勫鑽夌鍝嶅簲绫诲瀷 +type ReviewDraftResponse { + id: ID! + submissionId: ID! + status: String + saveTime: String +} + +# 璇勫鎻愪氦鍝嶅簲绫诲瀷 +type ReviewSubmitResponse { + id: ID! + submissionId: ID! + finalScore: Float! + status: String + submitTime: String +} + +# 璇勫缁熻鍝嶅簲绫诲瀷 +type JudgeStatsResponse { + pendingReviews: Int! + completedReviews: Int! + totalReviews: Int! +} + -- Gitblit v1.8.0