You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
525 B
29 lines
525 B
import request from "./request"; |
|
|
|
export function login(body) { |
|
return request.post({ |
|
url: '/login', |
|
body |
|
}); |
|
} |
|
|
|
export function logout() { |
|
return request.post({ |
|
url: '/logout' |
|
}); |
|
} |
|
|
|
export function getSelf(body) { |
|
return request.get({ |
|
url: '/auth/self', |
|
body |
|
}); |
|
} |
|
|
|
export function jitRandom() { |
|
return request.get({ url: '/jit/random' }) |
|
} |
|
// 数字证书登录 |
|
export function jitLogin(body) { |
|
return request.post({ url: '/jit/p7certAuth', body }) |
|
} |