!1056 【功能优化】商城优惠券模板添加描述字段

Merge pull request !1056 from 卢越/master-jdk17
This commit is contained in:
芋道源码 2024-08-31 00:57:15 +00:00 committed by Gitee
commit 4968590685
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 1 deletions

View File

@ -95,6 +95,9 @@ public class CouponTemplateBaseVO {
@Schema(description = "折扣上限", example = "100") // 单位仅在 discountType PERCENT 使用
private Integer discountLimitPrice;
@Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位仅在 discountType PERCENT 使用
private String description;
@AssertTrue(message = "商品范围编号的数组不能为空")
@JsonIgnore
public boolean isProductScopeValuesValid() {

View File

@ -67,4 +67,7 @@ public class AppCouponTemplateRespVO {
@Schema(description = "是否可以领取", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
private Boolean canTake;
@Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位仅在 discountType PERCENT 使用
private String description;
}

View File

@ -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;
@ -162,5 +163,6 @@ public class CouponTemplateDO extends BaseDO {
// TODO 芋艿领取开始时间领取结束时间
// TODO 芋艿要不要加描述
@Schema(description = "优惠券说明", example = "优惠券使用说明") // 单位仅在 discountType PERCENT 使用
private String description;
}