package com.czg.market.vo;

import com.czg.market.entity.MkConsumeDiscountRandom;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class MkConsumeDiscountVO implements Serializable {
    /**
     * ID
     */
    private Long id;

    /**
     * 是否开启
     */
    private Integer isEnable;

    /**
     * 固定 FIXED 随机 RANDOM
     */
    private String discountType;

    /**
     * 固定减免金额
     */
    private BigDecimal discountAmount;

    /**
     * 随机减免规则
     */
    private List<MkConsumeDiscountRandom> randomDiscountList;

    /**
     * 用餐模式 堂食 dine-in  外带 take-out 外卖 take-away
     */
    private List<String> useTypeList;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
    private LocalDateTime startTime;
    private LocalDateTime endTime;

}
