diff --git a/src/apis/.gitkeep b/src/apis/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/src/apis/user.ts b/src/apis/user.ts new file mode 100644 index 0000000..51c890e --- /dev/null +++ b/src/apis/user.ts @@ -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, + }); +};