修改api包

This commit is contained in:
2025-11-05 16:10:46 +08:00
parent aaa2f1b22f
commit 4cae93ef34
4 changed files with 40 additions and 36 deletions

View File

@@ -49,6 +49,7 @@ func NewApplication(configPath string) (*Application, error) {
// 3. 初始化 API 入口点
apiServer := api.NewAPI(
cfg.Server,
logs.AddCompName(context.Background(), "API"),
infra.repos.userRepo,
appServices.pigFarmService,
appServices.pigBatchService,