feat(FEAT-MO-005): 增加行业题材板块排行接口
This commit is contained in:
@@ -11,6 +11,12 @@ import { HealthController } from '../apps/api/src/health.controller';
|
||||
import { MarketOverviewController } from '../apps/api/src/market-overview/market-overview.controller';
|
||||
import { MarketDetailController } from '../apps/api/src/market-overview/detail/market-detail.controller';
|
||||
import { ShortTermMarketController } from '../apps/api/src/market-overview/short-term.controller';
|
||||
import { MarketStructureController } from '../apps/api/src/market-overview/structure/market-structure.controller';
|
||||
import { createAktoolsStructureClient } from '../apps/api/src/market-overview/structure/aktools-structure.client';
|
||||
import {
|
||||
MARKET_STRUCTURE_SOURCE_PORT,
|
||||
MarketStructureService,
|
||||
} from '../apps/api/src/market-overview/structure/market-structure.service';
|
||||
import {
|
||||
HealthService,
|
||||
MYSQL_HEALTH_PORT,
|
||||
@@ -34,6 +40,7 @@ import { DisabledHealthClient } from '../libs/infrastructure/src/disabled-health
|
||||
MarketOverviewController,
|
||||
MarketDetailController,
|
||||
ShortTermMarketController,
|
||||
MarketStructureController,
|
||||
],
|
||||
providers: [
|
||||
HealthService,
|
||||
@@ -41,6 +48,7 @@ import { DisabledHealthClient } from '../libs/infrastructure/src/disabled-health
|
||||
MarketDetailService,
|
||||
{ provide: TDX_CLIENT_PORT, useValue: { request: async () => ({}) } },
|
||||
ShortTermMarketService,
|
||||
MarketStructureService,
|
||||
{
|
||||
provide: AKTOOLS_CLIENT_PORT,
|
||||
useValue: createAktoolsClient({
|
||||
@@ -49,6 +57,14 @@ import { DisabledHealthClient } from '../libs/infrastructure/src/disabled-health
|
||||
timeoutMs: 10_000,
|
||||
}),
|
||||
},
|
||||
{
|
||||
provide: MARKET_STRUCTURE_SOURCE_PORT,
|
||||
useValue: createAktoolsStructureClient({
|
||||
enabled: false,
|
||||
baseUrl: 'http://127.0.0.1:8080',
|
||||
timeoutMs: 10_000,
|
||||
}),
|
||||
},
|
||||
{ provide: REDIS_HEALTH_PORT, useValue: new DisabledHealthClient('文档生成不连接 Redis') },
|
||||
{ provide: MYSQL_HEALTH_PORT, useValue: new DisabledHealthClient('文档生成不连接 MySQL') },
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user