refactor: Setup Stores

This commit is contained in:
pany
2022-08-24 16:52:01 +08:00
parent 94a50cf54e
commit 8d812dd2d3
12 changed files with 215 additions and 232 deletions

View File

@@ -6,7 +6,7 @@ interface ILoginData {
}
/** 登录并返回 Token */
export function login(data: ILoginData) {
export function loginApi(data: ILoginData) {
return request({
url: "users/login",
method: "post",
@@ -14,7 +14,7 @@ export function login(data: ILoginData) {
})
}
/** 获取用户详情 */
export function getUserInfo() {
export function getUserInfoApi() {
return request({
url: "users/info",
method: "post"