package com.yuchen.saas.parking.charge.api.dto.charge;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author 蔡文强
 * @Date 2023/5/6 15:56
 * @Description 价格时段设置传参
 */
@Data
@ApiModel(value="SpcStationChargePriceSetDTO对象", description="价格时段设置传参")
public class SpcStationChargePriceSetDTO {

    /**
     * 充电站ID
     */
    @ApiModelProperty(name = "stationId", value = "充电站ID")
    @NotNull(message = "充电站ID不能为空")
    private Long stationId;


    /**
     * 充电站ID
     */
    @ApiModelProperty(name = "chargeTemplateId", value = "价格模板ID")
    @NotNull(message = "价格模板ID不能为空")
    private Long chargeTemplateId;
    /**
     * 价格类型(尖、峰、平、谷)
     */
    @ApiModelProperty(name = "priceType", value = "价格类型(1:尖 2:峰 3:平 4:谷)")
    @NotNull(message = "价格类型不能为空")
    @Min(value = 1, message = "priceType值要大于等于1")
    @Max(value = 4, message = "priceType值要小于等于4")
    private Integer priceType;
    /**
     * 开始时间
     */
    @ApiModelProperty(name = "startTime", value = "开始时间")
    @NotBlank(message = "开始时间不能为空")
    private String startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(name = "endTime", value = "结束时间")
    @NotBlank(message = "结束时间不能为空")
    private String endTime;

    /**
     * 是否是剩余时间
     */
    @ApiModelProperty(name = "flag", value = "是否是剩余时间(0:不是 1:是)")
    private Integer flag;
}
