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.NotNull;

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

    /**
     * 充电站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 = "electricFee", value = "电费-单位分")
    @NotNull(message = "电费不能为空")
    @Min(value = 1, message = "electricFee值要大于等于1")
    private Integer electricFee;
    /**
     * 服务费-单位分
     */
    @ApiModelProperty(name = "serviceFee", value = "服务费-单位分")
    @NotNull(message = "服务费不能为空")
    @Min(value = 1, message = "serviceFee值要大于等于1")
    private Integer serviceFee;
}
