40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import request from '@/utils/request'
|
|
|
|
export function fileCateAdd(params: Record<string, any>) {
|
|
return request.post({ url: '/file/addCate', params })
|
|
}
|
|
|
|
export function fileCateEdit(params: Record<string, any>) {
|
|
return request.post({ url: '/file/editCate', params })
|
|
}
|
|
|
|
// 文件分类删除
|
|
export function fileCateDelete(params: Record<string, any>) {
|
|
return request.post({ url: '/file/delCate', params })
|
|
}
|
|
|
|
// 文件分类列表
|
|
export function fileCateLists(params: Record<string, any>) {
|
|
return request.get({ url: '/file/listCate', params })
|
|
}
|
|
|
|
// 文件列表
|
|
export function fileList(params: Record<string, any>) {
|
|
return request.get({ url: '/file/lists', params })
|
|
}
|
|
|
|
// 文件删除
|
|
export function fileDelete(params: Record<string, any>) {
|
|
return request.post({ url: '/file/delete', params })
|
|
}
|
|
|
|
// 文件移动
|
|
export function fileMove(params: Record<string, any>) {
|
|
return request.post({ url: '/file/move', params })
|
|
}
|
|
|
|
// 文件重命名
|
|
export function fileRename(params: { id: number; name: string }) {
|
|
return request.post({ url: '/file/rename', params })
|
|
}
|