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 | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index 87bc082..aa790e5 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,13 +1,11 @@
extend type Query {
- # 杩欎釜鏂囦欢涓昏鏄� mutation, 鎵�浠� query 鍙兘鏄┖鐨�
+ # 璁よ瘉鐩稿叧鎺ュ彛宸茶縼绉诲埌RESTful API
_: Boolean
}
extend type Mutation {
- webLogin(input: LoginRequest!): LoginResponse
- wxLogin(input: WxLoginRequest!): WxLoginResponse
- decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
- getPhoneNumberByCode(code: String!): PhoneDecryptResponse
+ # 璁よ瘉鐩稿叧鎺ュ彛宸茶縼绉诲埌RESTful API (/auth/*)
+ _: Boolean
}
input LoginRequest {
@@ -44,6 +42,7 @@
name: String
phone: String
userType: String
+ avatarUrl: String
employee: EmployeeInfo
judge: JudgeInfo
player: PlayerInfo
@@ -65,10 +64,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