mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-04-08 05:30:09 +00:00
20 lines
486 B
TypeScript
20 lines
486 B
TypeScript
import { Configuration } from '@midwayjs/decorator';
|
|
import * as DefaultConfig from './config/config.default';
|
|
import { IMidwayContainer } from '@midwayjs/core';
|
|
import { CoolElasticSearch } from './elasticsearch';
|
|
|
|
@Configuration({
|
|
namespace: 'cool:es',
|
|
importConfigs: [
|
|
{
|
|
default: DefaultConfig,
|
|
},
|
|
],
|
|
})
|
|
export class CoolEsConfiguration {
|
|
async onReady(container: IMidwayContainer) {
|
|
await container.getAsync(CoolElasticSearch);
|
|
// TODO something
|
|
}
|
|
}
|