mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【功能优化】商城优惠券模板添加描述字段
This commit is contained in:
parent
31f28c0419
commit
4868ef795c
@ -95,6 +95,9 @@ public class CouponTemplateBaseVO {
|
||||
@Schema(description = "折扣上限", example = "100") // 单位:分,仅在 discountType 为 PERCENT 使用
|
||||
private Integer discountLimitPrice;
|
||||
|
||||
@Schema(description = "优惠券描述", example = "限时优惠!使用优惠券即可享受全场商品 8 折优惠,快来抢购吧!") // 单位:分,仅在 discountType 为 PERCENT 使用
|
||||
private String description;
|
||||
|
||||
@AssertTrue(message = "商品范围编号的数组不能为空")
|
||||
@JsonIgnore
|
||||
public boolean isProductScopeValuesValid() {
|
||||
|
@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@ -163,4 +164,6 @@ public class CouponTemplateDO extends BaseDO {
|
||||
// TODO 芋艿:领取开始时间、领取结束时间
|
||||
|
||||
// TODO 芋艿:要不要加描述
|
||||
@Schema(description = "优惠券描述", example = "限时优惠!使用优惠券即可享受全场商品 8 折优惠,快来抢购吧!") // 单位:分,仅在 discountType 为 PERCENT 使用
|
||||
private String description;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user