This commit is contained in:
2026-01-13 19:14:05 +08:00
parent 04df8460a4
commit 586330cfa6
13 changed files with 17 additions and 14 deletions

View File

@@ -38,6 +38,10 @@ func (l *AdminCreateFeatureLogic) AdminCreateFeature(req *types.AdminCreateFeatu
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)