33
src/api/system/social/auth.ts
Normal file
33
src/api/system/social/auth.ts
Normal file
@ -0,0 +1,33 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 绑定账号
|
||||
export function authBinding(source: string) {
|
||||
return request({
|
||||
url: '/auth/binding/' + source,
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 解绑账号
|
||||
export function authUnlock(authId: string) {
|
||||
return request({
|
||||
url: '/auth/unlock/' + authId,
|
||||
method: 'delete',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
});
|
||||
}
|
||||
//获取授权列表
|
||||
export function getAuthList() {
|
||||
return request({
|
||||
url: '/system/social/list',
|
||||
method: 'get',
|
||||
headers: {
|
||||
isToken: true
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user