feat: 添加订单退款处理的异步任务及相关逻辑

This commit is contained in:
2025-12-22 23:03:18 +08:00
parent 56256a6fb8
commit ead821ac2c
7 changed files with 337 additions and 35 deletions

View File

@@ -9,6 +9,8 @@ import (
"quyun/v2/app/commands"
"quyun/v2/app/jobs"
"quyun/v2/app/services"
"quyun/v2/database"
"quyun/v2/providers/app"
"quyun/v2/providers/job"
"quyun/v2/providers/postgres"
@@ -22,6 +24,7 @@ func defaultProviders() container.Providers {
return commands.Default(container.Providers{
postgres.DefaultProvider(),
job.DefaultProvider(),
database.DefaultProvider(),
}...)
}
@@ -34,6 +37,7 @@ func Command() atom.Option {
defaultProviders().
With(
jobs.Provide,
services.Provide,
),
),
)