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/auth.graphqls |   77 +++++++++++++++++++++++++++-----------
 1 files changed, 55 insertions(+), 22 deletions(-)

diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index d067fea..aa790e5 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,53 +1,86 @@
-extend type Mutation {
-    "Web绔敤鎴风櫥褰�"
-    webLogin(input: LoginRequest): LoginResponse
+extend type Query {
+    # 璁よ瘉鐩稿叧鎺ュ彛宸茶縼绉诲埌RESTful API
+    _: Boolean
 }
 
-"鐧诲綍璇锋眰"
+extend type Mutation {
+    # 璁よ瘉鐩稿叧鎺ュ彛宸茶縼绉诲埌RESTful API (/auth/*)
+    _: Boolean
+}
+
 input LoginRequest {
     phone: String!
     password: String!
 }
 
-"鐧诲綍鍝嶅簲"
-type LoginResponse {
-    token: String!
-    userInfo: UserInfo!
+input WxLoginRequest {
+    code: String
+    wxOpenid: String
+    wxUnionid: String
+    phone: String
+    loginIp: String
+    deviceInfo: String
+    phoneAuthorized: Boolean
+    sessionKey: String
 }
 
-"鐢ㄦ埛淇℃伅"
+type LoginResponse {
+    token: String
+    userInfo: UserInfo
+}
+
+type WxLoginResponse {
+    token: String
+    userInfo: UserInfo
+    isNewUser: Boolean
+    loginRecordId: Long
+    sessionKey: String
+}
+
 type UserInfo {
-    userId: ID!
-    name: String!
-    phone: String!
-    userType: String!
+    userId: Long
+    name: String
+    phone: String
+    userType: String
+    avatarUrl: String
     employee: EmployeeInfo
     judge: JudgeInfo
     player: PlayerInfo
 }
 
-"鍛樺伐淇℃伅"
 type EmployeeInfo {
-    id: ID!
-    name: String!
-    roleId: String!
+    id: Long
+    name: String
+    roleId: String
     description: String
 }
 
-"璇勫淇℃伅"
 type JudgeInfo {
-    id: ID!
-    name: String!
+    id: Long
+    name: String
     title: String
     company: String
     description: String
 }
 
-"瀛﹀憳淇℃伅"
 type PlayerInfo {
     id: ID!
     name: String!
     phone: String
     description: String
-    auditState: Int
+    userInfo: PlayerUserInfo
+}
+
+type PlayerUserInfo {
+    userId: Long
+    name: String
+    phone: String
+    avatarUrl: String
+    avatar: MediaInfo
+}
+
+type PhoneDecryptResponse {
+    phoneNumber: String
+    purePhoneNumber: String
+    countryCode: String
 }
\ No newline at end of file

--
Gitblit v1.8.0