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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
| import request from "../../../request/index";
| const identityApi = {
| // 获取图形验证码
| getImgCode() {
| return request({
| url: "/identity/NewCaptcha",
| method: "post",
| });
| },
|
| // 验证图形验证码
| verificationImgCode(data) {
| return request({
| url: "/identity/ValidCaptcha",
| method: "post",
| data,
| });
| },
|
| // 获取短信验证码
| getPhoneCode(data) {
| return request({
| url: "/identity/NewSms",
| method: "post",
| data,
| });
| },
| // 验证短信验证码
| verificationPhoneCode(data) {
| return request({
| url: "/identity/api/ApiValidMobilePhone",
| method: "post",
| data,
| });
| },
|
| // 通过手机号注册用户
| registerAppUserWithPhone(data) {
| return request({
| url: "/identity/api/RegisterAppUserWithPhone",
| method: "post",
| data,
| });
| },
|
| // 账号密码登录
| loginByPassword(data) {
| return request({
| url: "/identity/api/LoginByPassword",
| method: "post",
| data,
| });
| },
|
| // 短信验证码登录
| loginByMobilePhone(data) {
| return request({
| url: "/identity/api/LoginByMobilePhone",
| method: "post",
| data,
| });
| },
|
| // 设置用户key
| setUserKey(data) {
| return request({
| url: "/identity/api/ApiAppUserSetKey",
| method: "post",
| data,
| });
| },
|
| // 获取用户key
| getUserKey(data) {
| return request({
| url: "/identity/api/ApiGetAppUserKey",
| method: "post",
| data,
| });
| },
|
| // 删除用户key
| delUserKey(data) {
| return request({
| url: "/identity/api/ApiDelAppUserKey",
| method: "post",
| data,
| });
| },
|
| // 获取去当前用户信息
| getCurrentAppUser() {
| return request({
| url: "/identity/api/GetCurrentAppUser",
| method: "post",
| });
| },
|
| // 添加用户信息
| setAppUserInfo(data) {
| return request({
| url: "/identity/api/SetAppUserInfoRequest",
| method: "post",
| data,
| });
| },
|
| // 用户更换绑定手机号,如没有绑定手机则自动创建
| userSetPhoneNumber(data) {
| return request({
| url: "/identity/api/ApiUserSetPhoneNumber",
| method: "post",
| data,
| });
| },
|
| // 检测用户是否绑定微信
| checkBuildingWeChat(data) {
| return request({
| url: "/identity/api/ApiCheckBuildingWeChat",
| method: "post",
| data,
| });
| },
|
| //检查微信小程序是否注册
| checkWeChatAppAccount(data) {
| return request({
| url: "/identity/api/CheckWeChatAppAccount",
| method: "post",
| data,
| });
| },
|
|
| // 通过手机号重置密码
| changePasswordByMobilePhone(data) {
| return request({
| url: "/identity/api/ChangePasswordByMobilePhone",
| method: "post",
| data,
| });
| },
|
| // 微信开放平台扫码登录
| loginByWeChatOpenCode(data) {
| return request({
| url: "/identity/api/LoginByWeChatOpenCode",
| method: "post",
| data,
| });
| },
|
| // 用户绑定微信号
| bindingWeChat(data) {
| return request({
| url: "/identity/api/ApiBindingWeChat",
| method: "post",
| data,
| });
| },
|
| // 设置登录的用户名和密码,用户名和密码至少6位
| setLoginNameAndPassword(data) {
| return request({
| url: "/identity/api/ApiUserSetLoginNameAndPassword",
| method: "post",
| data,
| });
| },
| loginByWeChatAppCode(data) {
| return request({
| url: "/identity/api/LoginByWeChatAppCode",
| method: "post",
| data,
| });
| },
|
| // 获取邮箱验证码
| getEmailCode(data) {
| return request({
| url: "/identity/api/SendVerifyEMail",
| method: "post",
| data,
| });
| },
| // 用户绑定邮箱
| bindingEmail(data) {
| return request({
| url: "/identity/api/ApiBindEMail",
| method: "post",
| data,
| });
| },
| };
|
| export default identityApi;
|
|