u
This commit is contained in:
commit
c570ec514c
550 files changed
+152597
No files matched your search
@@ -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);
|
||||
};
|
||||
Reference in new issue
Block a user