This commit is contained in:
oneao committed 2025-06-10 21:27:20 +08:00
commit c570ec514c
550 files changed
+152597

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { httpPostJson } from "@/utils/http";
export interface LoginParams {
email: string;
password: string;
}
export interface LoginResult {
id: string;
email: string;
displayName: string;
token: string;
isInit: boolean;
}
export const loginApi = (params: LoginParams) => {
return httpPostJson<LoginResult>("/auth/login", params);
};