first commit.

This commit is contained in:
2023-01-04 10:20:18 +08:00
commit 919fcf5ba9
39 changed files with 4196 additions and 0 deletions

15
src/shared/api.ts Normal file
View File

@@ -0,0 +1,15 @@
import http from "../utils/http";
export function login(data: { username: string; password: string }) {
return http.post("login", data);
}
export function logout() {
return http.get("logout");
}
export function getUserInfo(username: string) {
return http.get("profile", {
params: { username },
});
}