初始化项目

This commit is contained in:
BBIT-Kai
2026-04-30 10:47:26 +08:00
commit c932419c73
147 changed files with 45298 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import http from '@/api/http'
import type { LoginRequest, LoginResponse, MeResponse } from '@/types/auth'
export function loginApi(payload: LoginRequest) {
return http.post<never, LoginResponse>('/auth/login', payload)
}
export function logoutApi() {
return http.post<never, void>('/auth/logout')
}
export function meApi() {
return http.get<never, MeResponse>('/auth/me')
}