auth.ts 458 B

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