2023-06-20 04:12:49 +00:00
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
// 绑定账号
|
|
|
|
export function authBinding(source: string) {
|
|
|
|
return request({
|
|
|
|
url: '/auth/binding/' + source,
|
2023-06-20 15:00:29 +08:00
|
|
|
method: 'get'
|
2023-06-20 04:12:49 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 解绑账号
|
|
|
|
export function authUnlock(authId: string) {
|
|
|
|
return request({
|
|
|
|
url: '/auth/unlock/' + authId,
|
2023-06-20 15:00:29 +08:00
|
|
|
method: 'delete'
|
2023-06-20 04:12:49 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
//获取授权列表
|
|
|
|
export function getAuthList() {
|
|
|
|
return request({
|
|
|
|
url: '/system/social/list',
|
2023-06-20 15:00:29 +08:00
|
|
|
method: 'get'
|
2023-06-20 04:12:49 +00:00
|
|
|
});
|
|
|
|
}
|