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 | 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