auth.ts 558 B

12345678910111213141516171819202122232425262728
  1. import request from '@/utils/request';
  2. // 绑定账号
  3. export function authBinding(source: string, tenantId: string) {
  4. return request({
  5. url: '/auth/binding/' + source,
  6. method: 'get',
  7. params: {
  8. tenantId: tenantId,
  9. domain: window.location.host
  10. }
  11. });
  12. }
  13. // 解绑账号
  14. export function authUnlock(authId: string) {
  15. return request({
  16. url: '/auth/unlock/' + authId,
  17. method: 'delete'
  18. });
  19. }
  20. //获取授权列表
  21. export function getAuthList() {
  22. return request({
  23. url: '/system/social/list',
  24. method: 'get'
  25. });
  26. }