Codex Assistant
昨天 afeeed281e60466b576fbe74d339634cc5d07b82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
extend type Query {
    # 认证相关接口已迁移到RESTful API
    _: Boolean
}
 
extend type Mutation {
    # 微信登录
    wxLogin(input: WxLoginRequest!): WxLoginResponse
    
    # Web端登录
    webLogin(input: LoginRequest!): LoginResponse
    
    # 解密微信手机号(旧版API)
    decryptPhoneNumber(encryptedData: String!, iv: String!, sessionKey: String!): PhoneDecryptResponse
    
    # 获取微信手机号(新版API)
    getPhoneNumberByCode(code: String!): PhoneDecryptResponse
}
 
input LoginRequest {
    phone: String!
    password: String!
}
 
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
    success: Boolean
    message: String
    hasEmployee: Boolean
    hasJudge: Boolean
    hasPlayer: Boolean
}
 
type UserInfo {
    userId: Long
    name: String
    phone: String
    userType: String
    avatarUrl: String
    employee: EmployeeInfo
    judge: JudgeInfo
    player: PlayerInfo
}
 
type EmployeeInfo {
    id: Long
    name: String
    roleId: String
    description: String
}
 
type JudgeInfo {
    id: Long
    name: String
    title: String
    company: String
    description: String
}
 
type PlayerInfo {
    id: ID!
    name: String!
    phone: String
    description: String
    userInfo: PlayerUserInfo
}
 
type PlayerUserInfo {
    userId: Long
    name: String
    phone: String
    avatarUrl: String
    avatar: MediaInfo
}
 
type PhoneDecryptResponse {
    phoneNumber: String
    purePhoneNumber: String
    countryCode: String
}