ShiShiYiBan/yudao-ui-admin/src/api/system/socialUser.js

27 lines
464 B
JavaScript
Raw Normal View History

2022-04-26 23:36:26 +08:00
import request from "@/utils/request";
// 社交绑定,使用 code 授权码
export function socialBind(type, code, state) {
return request({
url: '/system/social-user/bind',
method: 'post',
data: {
type,
code,
state,
}
})
}
// 取消社交绑定
2022-04-27 00:35:59 +08:00
export function socialUnbind(type, openid) {
2022-04-26 23:36:26 +08:00
return request({
url: '/system/social-user/unbind',
method: 'delete',
data: {
type,
2022-04-27 00:35:59 +08:00
openid
2022-04-26 23:36:26 +08:00
}
})
}