folder-type.ts 386 B

1234567891011121314151617
  1. import { FOLDER_TYPE_LIST } from './constant'
  2. import axios from './instance'
  3. export interface FloderType {
  4. filesTypeId: number,
  5. filesTypeName: string,
  6. parentId: number,
  7. modalShow?: boolean
  8. flatShow?: boolean
  9. }
  10. export type FloderTypes = FloderType[]
  11. export const fetchFloderTypes = async () => {
  12. const types =await axios.get<FloderTypes>(FOLDER_TYPE_LIST)
  13. return types
  14. }