Commit d778184213dfe4eae900df00e75190d6c95ace26
1 parent
95b8cf00
feat:【MALL】增加优惠模版的领取信息的返回
Showing
1 changed file
with
7 additions
and
1 deletions
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/controller/app/coupon/vo/template/AppCouponTemplateRespVO.java
| 1 | package cn.iocoder.yudao.module.promotion.controller.app.coupon.vo.template; | 1 | package cn.iocoder.yudao.module.promotion.controller.app.coupon.vo.template; |
| 2 | 2 | ||
| 3 | import io.swagger.v3.oas.annotations.media.Schema; | 3 | import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | +import jakarta.validation.constraints.Min; | ||
| 4 | import lombok.Data; | 5 | import lombok.Data; |
| 5 | 6 | ||
| 6 | -import jakarta.validation.constraints.Min; | ||
| 7 | import java.time.LocalDateTime; | 7 | import java.time.LocalDateTime; |
| 8 | import java.util.List; | 8 | import java.util.List; |
| 9 | 9 | ||
| @@ -20,6 +20,9 @@ public class AppCouponTemplateRespVO { | @@ -20,6 +20,9 @@ public class AppCouponTemplateRespVO { | ||
| 20 | @Schema(description = "优惠券说明", example = "优惠券使用说明") | 20 | @Schema(description = "优惠券说明", example = "优惠券使用说明") |
| 21 | private String description; | 21 | private String description; |
| 22 | 22 | ||
| 23 | + @Schema(description = "发行总量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") // -1 - 则表示不限制发放数量 | ||
| 24 | + private Integer totalCount; | ||
| 25 | + | ||
| 23 | @Schema(description = "每人限领个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "66") // -1 - 则表示不限制 | 26 | @Schema(description = "每人限领个数", requiredMode = Schema.RequiredMode.REQUIRED, example = "66") // -1 - 则表示不限制 |
| 24 | private Integer takeLimitCount; | 27 | private Integer takeLimitCount; |
| 25 | 28 | ||
| @@ -62,6 +65,9 @@ public class AppCouponTemplateRespVO { | @@ -62,6 +65,9 @@ public class AppCouponTemplateRespVO { | ||
| 62 | @Schema(description = "折扣上限", example = "100") // 单位:分,仅在 discountType 为 PERCENT 使用 | 65 | @Schema(description = "折扣上限", example = "100") // 单位:分,仅在 discountType 为 PERCENT 使用 |
| 63 | private Integer discountLimitPrice; | 66 | private Integer discountLimitPrice; |
| 64 | 67 | ||
| 68 | + @Schema(description = "领取优惠券的数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") | ||
| 69 | + private Integer takeCount; | ||
| 70 | + | ||
| 65 | // ========== 用户相关字段 ========== | 71 | // ========== 用户相关字段 ========== |
| 66 | 72 | ||
| 67 | @Schema(description = "是否可以领取", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") | 73 | @Schema(description = "是否可以领取", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |