1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 04:54:16 +08:00

15 lines
370 B
Go
Raw Normal View History

2022-08-16 23:30:23 +08:00
import { Login } from '@/api/interface/index';
import http from '@/api';
export const loginApi = (params: Login.ReqLoginForm) => {
return http.post<Login.ResLogin>(`/auth/login`, params);
};
export const getCaptcha = () => {
return http.get<Login.ResCaptcha>(`/auth/captcha`);
};
export const logOutApi = () => {
return http.post<any>(`/auth/logout`);
};