mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-22 03:20:31 +08:00
finish filelist progress
This commit is contained in:
21
frontend/vben/src/api/page/index.ts
Normal file
21
frontend/vben/src/api/page/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { defHttp } from '/@/utils/http/axios'
|
||||
import { getFileListModel, FilePercent } from './model/fileListModel'
|
||||
|
||||
enum Api {
|
||||
GetFileList = '/getFileList',
|
||||
GetFilePercent = '/getFilePercent',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: Get file list
|
||||
*/
|
||||
export const getFileList = (count?: number) => {
|
||||
return defHttp.get<getFileListModel>({ url: Api.GetFileList, params: { count: count } })
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: Get file percant
|
||||
*/
|
||||
export const getFilePercent = (id: number) => {
|
||||
return defHttp.get<FilePercent>({ url: Api.GetFilePercent, params: { id: id } })
|
||||
}
|
||||
Reference in New Issue
Block a user