| | |
| | | import request from '@/utils/request'; |
| | | |
| | | // 绑定账号 |
| | | export function authBinding(source: string) { |
| | | export function authBinding(source: string, tenantId: string) { |
| | | return request({ |
| | | url: '/auth/binding/' + source, |
| | | method: 'get', |
| | | headers: { |
| | | isToken: true |
| | | params: { |
| | | tenantId: tenantId, |
| | | domain: window.location.host |
| | | } |
| | | }); |
| | | } |
| | |
| | | export function authUnlock(authId: string) { |
| | | return request({ |
| | | url: '/auth/unlock/' + authId, |
| | | method: 'delete', |
| | | headers: { |
| | | isToken: true |
| | | } |
| | | method: 'delete' |
| | | }); |
| | | } |
| | | //获取授权列表 |
| | | export function getAuthList() { |
| | | return request({ |
| | | url: '/system/social/list', |
| | | method: 'get', |
| | | headers: { |
| | | isToken: true |
| | | } |
| | | method: 'get' |
| | | }); |
| | | } |