tachybase_todo/packages/plugin-file-manager/src/storages/index.ts

12 lines
268 B
TypeScript
Raw Normal View History

import local from './local';
import oss from './ali-oss';
import { STORAGE_TYPE_LOCAL, STORAGE_TYPE_ALI_OSS } from '../constants';
const map = new Map<string, Function>();
map.set(STORAGE_TYPE_LOCAL, local);
map.set(STORAGE_TYPE_ALI_OSS, oss);
export default map;