1234567891011121314151617 |
- 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<FloderTypes>(FOLDER_TYPE_LIST)
- return types
- }
|