package com.yonge.cooleshow.biz.dal.wrapper;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonge.cooleshow.biz.dal.enums.EVipType;
import com.yonge.cooleshow.biz.dal.enums.PeriodEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.math.BigDecimal;
import java.util.Date;

public class MemberPriceSettingsWrapper {

    @Data
    public static class MemberChange {

        @NotNull(message = "id不能为空")
        private Long id;

        private BigDecimal salePrice;

    }

    @Data
    public static class UserDiscount {

        private Long id;

        @ApiModelProperty("周期 ")
        private PeriodEnum period;

        @ApiModelProperty("销售价 ")
        private BigDecimal salePrice;

        @ApiModelProperty("原价 ")
        private BigDecimal originalPrice;


        @ApiModelProperty("状态 1:启用 0:停用 ")
        private Boolean status;

        @ApiModelProperty("描述文案")
        private String desc;

        @ApiModelProperty("会员类型")
        private EVipType vipType;

        @ApiModelProperty("折扣")
        private BigDecimal discountRate;

        @ApiModelProperty("适用范围")
        private String productType;

        @ApiModelProperty("折扣开始时间")
        private Date discountStartTime;

        @ApiModelProperty("折扣结束时间")
        private Date discountEndTime;
    }
}
