This commit is contained in:
2026-05-13 14:43:10 +08:00
parent 2312f54e1e
commit 3399de0dc5
49 changed files with 1637 additions and 287 deletions

View File

@@ -3,6 +3,7 @@ package admin_feature
import (
"context"
"qnc-server/app/main/api/internal/logic/productcost"
"qnc-server/app/main/api/internal/svc"
"qnc-server/app/main/api/internal/types"
"qnc-server/common/xerr"
@@ -60,6 +61,10 @@ func (l *AdminUpdateFeatureLogic) AdminUpdateFeature(req *types.AdminUpdateFeatu
"更新功能失败, err: %v, id: %d", err, req.Id)
}
if err := productcost.SyncAllProductsUsingFeature(l.ctx, l.svcCtx, req.Id); err != nil {
return nil, err
}
// 5. 返回成功结果
return &types.AdminUpdateFeatureResp{Success: true}, nil
}