123456789101112131415161718192021222324 |
- 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);
- types.push({
- filesTypeId: -1,
- filesTypeName: "照片制卷",
- flatShow: false,
- modalShow: false,
- parentId: 39,
- });
- return types;
- };
|