1
0
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:
源文雨
2023-03-14 17:54:06 +08:00
parent 8d619e923b
commit aab733ab0b
12 changed files with 313 additions and 138 deletions

View 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[]

View 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 } })
}