feat: 提交请求封装
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
import type { LoginDTO } from './types';
|
||||
import { post } from '@/utils/request';
|
||||
|
||||
export const login = (data: LoginDTO) => post('/auth/login', data);
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface LoginDTO {
|
||||
username: string;
|
||||
password: string;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export * from './auth';
|
||||
Reference in New Issue
Block a user