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
| import request from '@/config/axios'
|
| // 社交绑定,使用 code 授权码
| export const socialBind = (type, code, state) => {
| return request.post({
| url: '/system/social-user/bind',
| data: {
| type,
| code,
| state
| }
| })
| }
|
| // 取消社交绑定
| export const socialUnbind = (type, openid) => {
| return request.delete({
| url: '/system/social-user/unbind',
| data: {
| type,
| openid
| }
| })
| }
|
| // 社交授权的跳转
| export const socialAuthRedirect = (type, redirectUri) => {
| return request.get({
| url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri
| })
| }
|
|