refactor: ♻️ eslint 代码规范调整

This commit is contained in:
ray
2024-10-13 10:42:48 +08:00
parent 72eb87d005
commit a4ef6eb696
66 changed files with 376 additions and 376 deletions

View File

@@ -2,9 +2,9 @@ import request from "@/utils/request";
const AUTH_BASE_URL = "/api/v1/auth";
class AuthAPI {
const AuthAPI = {
/** 登录 接口*/
static login(data: LoginData) {
login(data: LoginData) {
const formData = new FormData();
formData.append("username", data.username);
formData.append("password", data.password);
@@ -18,24 +18,24 @@ class AuthAPI {
"Content-Type": "multipart/form-data",
},
});
}
},
/** 注销 接口*/
static logout() {
logout() {
return request({
url: `${AUTH_BASE_URL}/logout`,
method: "delete",
});
}
},
/** 获取验证码 接口*/
static getCaptcha() {
getCaptcha() {
return request<any, CaptchaResult>({
url: `${AUTH_BASE_URL}/captcha`,
method: "get",
});
}
}
},
};
export default AuthAPI;