package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import shop.alien.entity.store.LifeDiscountCouponFriendRule;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 赠券规则
 * @TableName life_discount_coupon_friend_rule
 */
@TableName(value ="life_discount_coupon_friend_rule")
@JsonInclude
@Data
public class LifeDiscountCouponFriendRuleVo extends LifeDiscountCouponFriendRule {

    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    @ApiModelProperty(value = "截止时间")
    private Date endDate;

    @ApiModelProperty(value = "店铺名称")
    private String storeName;

    @ApiModelProperty(value = "0启用/1禁用")
    private String status;

    @ApiModelProperty(value = "img")
    private String imgUrl;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "优惠券数量")
    private Integer couponNum;

    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    @ApiModelProperty(value = "面值")
    private BigDecimal nominalValue;

    @ApiModelProperty(value = "最低消费")
    private BigDecimal minimumSpendingAmount;

    private List<LifeDiscountCouponFriendRuleDetailVo> lifeDiscountCouponFriendRuleDetailVos;
}