调整前端目录结构

This commit is contained in:
2025-05-10 12:08:04 +08:00
parent 3c7d84165c
commit 8e09da9912
41 changed files with 2909 additions and 355 deletions

View File

@@ -0,0 +1 @@
export * from './send';

View File

@@ -0,0 +1,15 @@
import fetcher from "../fetcher";
interface SendVerificationCodeParam {
targetType: 'phone' | 'email';
type: 'login';
phone?: string;
email?: string;
}
export const send = async (data: SendVerificationCodeParam) => {
return fetcher('/api/verification/send', {
method: 'POST',
body: JSON.stringify(data),
})
}