From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
backend/src/main/resources/graphql/user.graphqls | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/backend/src/main/resources/graphql/user.graphqls b/backend/src/main/resources/graphql/user.graphqls
index efd3849..36d96e3 100644
--- a/backend/src/main/resources/graphql/user.graphqls
+++ b/backend/src/main/resources/graphql/user.graphqls
@@ -10,7 +10,10 @@
school: String
major: String
grade: String
+ gender: String
+ birthday: String
roles: [String!]!
+ userType: String
createdAt: String
# 瑙掕壊鐩稿叧淇℃伅
employee: EmployeeInfo
@@ -53,6 +56,38 @@
mediaType: String!
}
+# 鐢ㄦ埛椤圭洰绫诲瀷
+type UserProject {
+ id: ID!
+ projectName: String!
+ activityName: String!
+ status: String!
+ statusText: String!
+ createTime: String!
+ submissionFiles: [SubmissionMediaResponse]
+}
+
+# 鐢ㄦ埛杈撳叆绫诲瀷
+input UserInput {
+ name: String!
+ avatar: String
+ phone: String!
+ gender: String!
+ birthday: String
+}
+
+# 鐢ㄦ埛淇℃伅鍝嶅簲绫诲瀷
+type UserProfileInfo {
+ id: ID!
+ name: String!
+ avatar: String
+ phone: String!
+ gender: String!
+ birthday: String
+ wxOpenId: String
+ unionId: String
+}
+
# 鎵╁睍鏌ヨ绫诲瀷
extend type Query {
# 鑾峰彇褰撳墠鐢ㄦ埛妗f
@@ -63,4 +98,13 @@
# 鑾峰彇鎴戠殑鎶ュ悕璁板綍
myRegistrations(limit: Int): [UserRegistration!]!
+
+ # 鑾峰彇鎴戠殑椤圭洰鍒楄〃
+ myProjects: [UserProject!]!
+}
+
+# 鎵╁睍鍙樻洿绫诲瀷
+extend type Mutation {
+ # 淇濆瓨鐢ㄦ埛淇℃伅
+ saveUserInfo(input: UserInput!): UserProfileInfo!
}
\ No newline at end of file
--
Gitblit v1.8.0