初始化 ui.

This commit is contained in:
lijiahang
2023-07-27 18:48:15 +08:00
parent ee53ec6486
commit 5be2c7fda2
185 changed files with 1107 additions and 17815 deletions

View File

@@ -0,0 +1,18 @@
import axios from 'axios';
export interface LoginRequest {
username: string;
password: string;
}
export interface LoginResponse {
token: string;
}
export function login(data: LoginRequest) {
return axios.post<LoginResponse>('/infra/auth/login', data);
}
export function logout() {
return axios.get('/infra/auth/logout');
}