feat(publish): 推荐押金支持第二件折扣并放宽押金下限
- 推荐押金皮肤规则新增「第2件起计价」比例,组内首件按原价、后续件按比例计入 - 押金低于推荐押金允许发布,弹窗提示并禁用无忧租号保险 - 用户主动改低押金后不再被推荐值覆盖,点「使用推荐」恢复自动跟随
This commit is contained in:
@@ -184,6 +184,10 @@ type PublishDepositSkinGroupRule struct {
|
||||
GroupKey string `json:"group_key"`
|
||||
Label string `json:"label"`
|
||||
AmountPerItem float64 `json:"amount_per_item"`
|
||||
// DiscountPercent 组内第 2 件起的计价百分比(0-100)。
|
||||
// 0 表示不开启折扣,每件都按 AmountPerItem 计入;
|
||||
// 50 表示第 1 件按原价计入,第 2 件起按原价的 50% 计入。
|
||||
DiscountPercent float64 `json:"discount_percent"`
|
||||
}
|
||||
|
||||
type PublishRatioConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user