From bec58fa7fe4fae2deac88200d8d939e12ec8a08f Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 22:26:39 +0800
Subject: [PATCH] 修复小程序WXS日期显示问题并重新设计【我的】页面

---
 backend/src/main/resources/graphql/auth.graphqls |   73 ++++++++++++++++++++++++------------
 1 files changed, 49 insertions(+), 24 deletions(-)

diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index d067fea..87bc082 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,53 +1,78 @@
-extend type Mutation {
-    "Web绔敤鎴风櫥褰�"
-    webLogin(input: LoginRequest): LoginResponse
+extend type Query {
+    # 杩欎釜鏂囦欢涓昏鏄� mutation, 鎵�浠� query 鍙兘鏄┖鐨�
+    _: Boolean
 }
 
-"鐧诲綍璇锋眰"
+extend type Mutation {
+    webLogin(input: LoginRequest!): LoginResponse
+    wxLogin(input: WxLoginRequest!): WxLoginResponse
+    decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
+    getPhoneNumberByCode(code: String!): PhoneDecryptResponse
+}
+
 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
     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!
+    id: Long
+    name: String
     phone: String
     description: String
-    auditState: Int
+}
+
+type PhoneDecryptResponse {
+    phoneNumber: String
+    purePhoneNumber: String
+    countryCode: String
 }
\ No newline at end of file

--
Gitblit v1.8.0