mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-26 22:31:21 +00:00
docs(readme): 更新项目说明与界面截图
补充移动端截图、Docker 部署说明与 Star History,同时更新后端技术栈版本和项目结构描述。
This commit is contained in:
@@ -5,7 +5,7 @@ const API_PATH = "/system/param";
|
||||
const ParamsAPI = {
|
||||
uploadFile(body: any) {
|
||||
return request<ApiResponse<UploadFilePath>>({
|
||||
url: `/file/upload?upload_type=param`,
|
||||
url: `/common/file/upload?upload_type=param`,
|
||||
method: "post",
|
||||
data: body,
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
|
||||
@@ -14,7 +14,7 @@ export const UserAPI = {
|
||||
|
||||
uploadCurrentUserAvatar(body: FormData) {
|
||||
return request<ApiResponse<UploadFilePath>>({
|
||||
url: `/file/upload?upload_type=avatar`,
|
||||
url: `/common/file/upload?upload_type=avatar`,
|
||||
method: "post",
|
||||
data: body,
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
|
||||
@@ -89,7 +89,7 @@ const doUpload = async (file: File) => {
|
||||
const response = await request.post<
|
||||
ApiResponse<UploadFilePath>,
|
||||
AxiosResponse<ApiResponse<UploadFilePath>>
|
||||
>("/file/upload", formData, {
|
||||
>("/common/file/upload", formData, {
|
||||
params: { upload_type: "file" },
|
||||
headers: { "Content-Type": "multipart/form-data" },
|
||||
});
|
||||
|
||||
@@ -18,7 +18,7 @@ interface DownloadUtil {
|
||||
|
||||
const download: DownloadUtil = {
|
||||
async name(name: string, isDelete: boolean = true) {
|
||||
const url = baseURL + "/file/download";
|
||||
const url = baseURL + "/common/file/download";
|
||||
try {
|
||||
const res = await axios.post<Blob>(
|
||||
url,
|
||||
|
||||
Reference in New Issue
Block a user