feat: example for http

This commit is contained in:
2025-09-15 08:33:27 +08:00
parent cdbd52041b
commit 231c0d1073
2 changed files with 19 additions and 0 deletions

View File

19
src/apis/user.ts Normal file
View File

@@ -0,0 +1,19 @@
import http from "../utils/http";
/**
* This is an example, please remove if not needed
*/
export const getUserList = () => {
return http({
url: "/user/list",
method: "get",
});
};
export const insertUser = (data: { account: string; passowrd: string }) => {
return http({
url: "/user/insert",
method: "post",
data,
});
};