From 3714621173c606c4c58439ed8941100ce9ddea14 Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期三, 05 十一月 2025 15:10:49 +0800
Subject: [PATCH] bug
---
backend/src/main/resources/graphql/auth.graphqls | 30 ++++++++++++++++++++++++++----
1 files changed, 26 insertions(+), 4 deletions(-)
diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index 87bc082..7addfa7 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,12 +1,19 @@
extend type Query {
- # 杩欎釜鏂囦欢涓昏鏄� mutation, 鎵�浠� query 鍙兘鏄┖鐨�
+ # 璁よ瘉鐩稿叧鎺ュ彛宸茶縼绉诲埌RESTful API
_: Boolean
}
extend type Mutation {
- webLogin(input: LoginRequest!): LoginResponse
+ # 寰俊鐧诲綍
wxLogin(input: WxLoginRequest!): WxLoginResponse
+
+ # Web绔櫥褰�
+ webLogin(input: LoginRequest!): LoginResponse
+
+ # 瑙e瘑寰俊鎵嬫満鍙凤紙鏃х増API锛�
decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
+
+ # 鑾峰彇寰俊鎵嬫満鍙凤紙鏂扮増API锛�
getPhoneNumberByCode(code: String!): PhoneDecryptResponse
}
@@ -37,6 +44,11 @@
isNewUser: Boolean
loginRecordId: Long
sessionKey: String
+ success: Boolean
+ message: String
+ hasEmployee: Boolean
+ hasJudge: Boolean
+ hasPlayer: Boolean
}
type UserInfo {
@@ -44,6 +56,7 @@
name: String
phone: String
userType: String
+ avatarUrl: String
employee: EmployeeInfo
judge: JudgeInfo
player: PlayerInfo
@@ -65,10 +78,19 @@
}
type PlayerInfo {
- id: Long
- name: String
+ id: ID!
+ name: String!
phone: String
description: String
+ userInfo: PlayerUserInfo
+}
+
+type PlayerUserInfo {
+ userId: Long
+ name: String
+ phone: String
+ avatarUrl: String
+ avatar: MediaInfo
}
type PhoneDecryptResponse {
--
Gitblit v1.8.0