From 2d410989d32380d31ae3fe6d42aa3b3ba9e09d00 Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期五, 03 十月 2025 22:13:29 +0800 Subject: [PATCH] UI优化和bug修复: 1.调整小程序消息列表图标样式 2.优化web端比赛晋级页面布局 3.修复小程序消息列表日期显示问题 --- 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