This commit is contained in:
2026-02-27 17:18:20 +08:00
parent c960fd099a
commit 0bfcf25ea8
4 changed files with 210 additions and 6 deletions

View File

@@ -34,6 +34,14 @@ func (l *AdminCreateFeatureLogic) AdminCreateFeature(req *types.AdminCreateFeatu
ApiId: req.ApiId,
Name: req.Name,
}
// 设置白名单屏蔽价格
if req.WhitelistPrice != nil {
data.WhitelistPrice = *req.WhitelistPrice
}
// 设置成本价
if req.CostPrice != nil {
data.CostPrice = *req.CostPrice
}
// 2. 数据库操作
result, err := l.svcCtx.FeatureModel.Insert(l.ctx, nil, data)