使用plan service 替换子领域

This commit is contained in:
2025-11-02 19:46:20 +08:00
parent 8d7d9fc485
commit bb42147974
4 changed files with 12 additions and 27 deletions

View File

@@ -84,7 +84,7 @@ func (app *Application) Start() error {
}
// 3. 启动后台工作协程
app.Domain.PlanExecutionManager.Start()
app.Domain.planService.Start()
// 4. 启动 API 服务器
app.API.Start()
@@ -106,7 +106,7 @@ func (app *Application) Stop() error {
app.API.Stop()
// 关闭任务执行器
app.Domain.PlanExecutionManager.Stop()
app.Domain.planService.Stop()
// 断开数据库连接
if err := app.Infra.Storage.Disconnect(); err != nil {