mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-17 16:20:25 +08:00
front: finish docx & back: init
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { defHttp } from '/@/utils/http/axios'
|
||||
import { getFileListModel, FilePercent, DelFile, AnalyzeFile } from './model/fileListModel'
|
||||
import { DownloadFile } from './model/fileModel'
|
||||
|
||||
enum Api {
|
||||
GetFileList = '/getFileList',
|
||||
GetFilePercent = '/getFilePercent',
|
||||
DelFile = '/delFile',
|
||||
AnalyzeFile = '/analyzeFile',
|
||||
DlFile = '/dlFile',
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -35,3 +37,10 @@ export const delFile = (id: number) => {
|
||||
export const analyzeFile = (id: number) => {
|
||||
return defHttp.get<AnalyzeFile>({ url: Api.AnalyzeFile, params: { id: id } })
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: Download file
|
||||
*/
|
||||
export const downloadFile = (id: number) => {
|
||||
return defHttp.get<DownloadFile>({ url: Api.DlFile, params: { id: id } })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user