feat: 提交请求封装

This commit is contained in:
Json_Lee
2025-04-19 12:15:28 +08:00
parent a4c360ee52
commit 294e818487
26 changed files with 1543 additions and 162 deletions
+4
View File
@@ -0,0 +1,4 @@
import type { LoginDTO } from './types';
import { post } from '@/utils/request';
export const login = (data: LoginDTO) => post('/auth/login', data);
+4
View File
@@ -0,0 +1,4 @@
export interface LoginDTO {
username: string;
password: string;
}
+1
View File
@@ -0,0 +1 @@
export * from './auth';