From ae3349d2ff53767b5bc9cb30e1bf7e15f9e814ee Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 20:45:44 +0800
Subject: [PATCH] 清理测试代码和调试文件

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

diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index 497adc8..87bc082 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,87 +1,78 @@
+extend type Query {
+    # 杩欎釜鏂囦欢涓昏鏄� mutation, 鎵�浠� query 鍙兘鏄┖鐨�
+    _: Boolean
+}
+
 extend type Mutation {
-    "Web绔敤鎴风櫥褰�"
-    webLogin(input: LoginRequest): LoginResponse
-    "寰俊灏忕▼搴忕櫥褰�"
-    wxLogin(input: WxLoginRequest): WxLoginResponse
-    "瑙e瘑寰俊鎵嬫満鍙凤紙鏃х増API锛�"
+    webLogin(input: LoginRequest!): LoginResponse
+    wxLogin(input: WxLoginRequest!): WxLoginResponse
     decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
-    "鑾峰彇寰俊鎵嬫満鍙凤紙鏂扮増API锛�"
     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!
+    userId: Long
+    name: String
     phone: String
-    userType: String!
-    wxOpenid: 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
 }
 
-"寰俊鐧诲綍璇锋眰"
-input WxLoginRequest {
-    code: String
-    wxOpenid: String
-    wxUnionid: String
-    loginIp: String
-    deviceInfo: String
-    sessionKey: String
-    phoneAuthorized: Boolean
-    phone: String
-}
-
-"寰俊鐧诲綍鍝嶅簲"
-type WxLoginResponse {
-    token: String!
-    userInfo: UserInfo!
-    isNewUser: Boolean!
-    loginRecordId: ID!
-    sessionKey: String
-}
-
-"鎵嬫満鍙疯В瀵嗗搷搴�"
 type PhoneDecryptResponse {
-    phoneNumber: String!
+    phoneNumber: String
     purePhoneNumber: String
     countryCode: String
 }
\ No newline at end of file

--
Gitblit v1.8.0