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 | 93 +++++++++++++++++++++++-----------------------
1 files changed, 46 insertions(+), 47 deletions(-)
diff --git a/backend/src/main/resources/graphql/auth.graphqls b/backend/src/main/resources/graphql/auth.graphqls
index 497adc8..aa790e5 100644
--- a/backend/src/main/resources/graphql/auth.graphqls
+++ b/backend/src/main/resources/graphql/auth.graphqls
@@ -1,87 +1,86 @@
-extend type Mutation {
- "Web绔敤鎴风櫥褰�"
- webLogin(input: LoginRequest): LoginResponse
- "寰俊灏忕▼搴忕櫥褰�"
- wxLogin(input: WxLoginRequest): WxLoginResponse
- "瑙e瘑寰俊鎵嬫満鍙凤紙鏃х増API锛�"
- decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
- "鑾峰彇寰俊鎵嬫満鍙凤紙鏂扮増API锛�"
- getPhoneNumberByCode(code: String!): PhoneDecryptResponse
+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!
+ userId: Long
+ name: String
phone: String
- userType: String!
- wxOpenid: 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
+ userInfo: PlayerUserInfo
}
-"寰俊鐧诲綍璇锋眰"
-input WxLoginRequest {
- code: String
- wxOpenid: String
- wxUnionid: String
- loginIp: String
- deviceInfo: String
- sessionKey: String
- phoneAuthorized: Boolean
+type PlayerUserInfo {
+ userId: Long
+ name: String
phone: String
+ avatarUrl: String
+ avatar: MediaInfo
}
-"寰俊鐧诲綍鍝嶅簲"
-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