调整前端目录结构
This commit is contained in:
1
tone-page-web/lib/api/verification/index.ts
Normal file
1
tone-page-web/lib/api/verification/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './send';
|
||||
15
tone-page-web/lib/api/verification/send.ts
Normal file
15
tone-page-web/lib/api/verification/send.ts
Normal 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),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user