mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-08 12:58:19 +00:00
22 lines
528 B
TypeScript
22 lines
528 B
TypeScript
import { Configuration } from '@midwayjs/decorator';
|
|
import * as DefaultConfig from './config/config.default';
|
|
import * as upload from '@midwayjs/upload';
|
|
import { IMidwayContainer } from '@midwayjs/core';
|
|
import { CoolFile } from './file';
|
|
|
|
@Configuration({
|
|
namespace: 'cool:file',
|
|
importConfigs: [
|
|
{
|
|
default: DefaultConfig,
|
|
},
|
|
],
|
|
imports: [upload],
|
|
})
|
|
export class CoolFileConfiguration {
|
|
async onReady(container: IMidwayContainer) {
|
|
await container.getAsync(CoolFile);
|
|
// TODO something
|
|
}
|
|
}
|