import { FOLDER_TYPE_LIST } from './constant' import axios from './instance' export interface FloderType { filesTypeId: number, filesTypeName: string, parentId: number, modalShow?: boolean flatShow?: boolean } export type FloderTypes = FloderType[] export const fetchFloderTypes = async () => { const types =await axios.get(FOLDER_TYPE_LIST) return types }