| | |
| | | extend type Mutation { |
| | | "Web端用户登录" |
| | | webLogin(input: LoginRequest): LoginResponse |
| | | "微信小程序登录" |
| | | wxLogin(input: WxLoginRequest): WxLoginResponse |
| | | "解密微信手机号(旧版API)" |
| | | decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse |
| | | "获取微信手机号(新版API)" |
| | | getPhoneNumberByCode(code: String!): PhoneDecryptResponse |
| | | } |
| | | |
| | | "登录请求" |
| | |
| | | type UserInfo { |
| | | userId: ID! |
| | | name: String! |
| | | phone: String! |
| | | phone: String |
| | | userType: String! |
| | | wxOpenid: String |
| | | employee: EmployeeInfo |
| | | judge: JudgeInfo |
| | | player: PlayerInfo |
| | |
| | | name: String! |
| | | phone: String |
| | | description: String |
| | | auditState: Int |
| | | } |
| | | |
| | | "微信登录请求" |
| | | 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! |
| | | purePhoneNumber: String |
| | | countryCode: String |
| | | } |