From bec58fa7fe4fae2deac88200d8d939e12ec8a08f Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 22:26:39 +0800
Subject: [PATCH] 修复小程序WXS日期显示问题并重新设计【我的】页面
---
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