'构建促销详情模型'
This commit is contained in:
parent
8543a228fd
commit
cd17f3d755
@ -0,0 +1,38 @@
|
||||
package cn.lili.modules.order.order.entity.dto;
|
||||
|
||||
import cn.lili.common.enums.PromotionTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 优惠信息详情
|
||||
*
|
||||
* @author liushuai(liushuai711 @ gmail.com)
|
||||
* @version v4.0
|
||||
* @Description:
|
||||
* @since 2022/12/23 14:52
|
||||
*/
|
||||
@Data
|
||||
public class DiscountPriceItem {
|
||||
|
||||
|
||||
@ApiModelProperty(value = "促销类型")
|
||||
private PromotionTypeEnum promotionTypeEnum;
|
||||
|
||||
@ApiModelProperty(value = "促销id")
|
||||
private String promotionId;
|
||||
|
||||
@ApiModelProperty(value = "减免金额")
|
||||
private Double discountPrice;
|
||||
|
||||
@ApiModelProperty(value = "涉及 商品ID")
|
||||
private String goodsId;
|
||||
|
||||
@ApiModelProperty(value = "涉及 SKU ID")
|
||||
private String skuId;
|
||||
|
||||
|
||||
public String getPromotionName() {
|
||||
return promotionTypeEnum.description();
|
||||
}
|
||||
}
|
@ -42,7 +42,7 @@ public class PriceDetailDTO implements Serializable {
|
||||
@ApiModelProperty(value = "优惠金额")
|
||||
private Double discountPrice;
|
||||
|
||||
@ApiModelProperty(value = "优惠金额")
|
||||
@ApiModelProperty(value = "优惠详情")
|
||||
private String discountPriceDetail;
|
||||
|
||||
@ApiModelProperty(value = "优惠券金额")
|
||||
|
Loading…
x
Reference in New Issue
Block a user