| | |
| | | extend type Query { |
| | | # 这个文件主要是 mutation, 所以 query 可能是空的 |
| | | # 认证相关接口已迁移到RESTful API |
| | | _: Boolean |
| | | } |
| | | |
| | | extend type Mutation { |
| | | webLogin(input: LoginRequest!): LoginResponse |
| | | # 微信登录 |
| | | wxLogin(input: WxLoginRequest!): WxLoginResponse |
| | | |
| | | # Web端登录 |
| | | webLogin(input: LoginRequest!): LoginResponse |
| | | |
| | | # 解密微信手机号(旧版API) |
| | | decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse |
| | | |
| | | # 获取微信手机号(新版API) |
| | | getPhoneNumberByCode(code: String!): PhoneDecryptResponse |
| | | } |
| | | |
| | |
| | | isNewUser: Boolean |
| | | loginRecordId: Long |
| | | sessionKey: String |
| | | success: Boolean |
| | | message: String |
| | | hasEmployee: Boolean |
| | | hasJudge: Boolean |
| | | hasPlayer: Boolean |
| | | } |
| | | |
| | | type UserInfo { |
| | |
| | | name: String |
| | | phone: String |
| | | userType: String |
| | | avatarUrl: String |
| | | employee: EmployeeInfo |
| | | judge: JudgeInfo |
| | | player: PlayerInfo |
| | |
| | | } |
| | | |
| | | 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 { |