mirror of
https://github.com/fumiama/paper-manager.git
synced 2026-06-15 22:50:32 +08:00
add filelist
This commit is contained in:
13
frontend/vben/src/api/page/model/fileListModel.ts
Normal file
13
frontend/vben/src/api/page/model/fileListModel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
export interface FileListGroupItem {
|
||||
title: string
|
||||
icon: string
|
||||
color: string
|
||||
desc: string
|
||||
date: string
|
||||
group: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: Get filelist return value
|
||||
*/
|
||||
export type getFileListModel = FileListGroupItem[]
|
||||
14
frontend/vben/src/api/page/page.ts
Normal file
14
frontend/vben/src/api/page/page.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defHttp } from '/@/utils/http/axios'
|
||||
import { getFileListModel } from './model/fileListModel'
|
||||
|
||||
enum Api {
|
||||
GetFileList = '/getFileList',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: Get file list
|
||||
*/
|
||||
|
||||
export const getFileList = (count: number) => {
|
||||
return defHttp.get<getFileListModel>({ url: Api.GetFileList, params: { count: count } })
|
||||
}
|
||||
Reference in New Issue
Block a user