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.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author 蔡文强
 * @Date 2023/5/6 15:56
 * @Description 新增充电价格传参
 */
@Data
@ApiModel(value="新增充电价格传参", description="新增充电价格传参")
public class SpcStationChargePriceReqDTO {

    @ApiModelProperty(name = "templateName", value = "模板名称")
    private String templateName;

    @ApiModelProperty(name = "templateType", value = "模板类型:电站固定模板2公共模板")
    private Integer templateType;

    @ApiModelProperty(name = "stationId", value = "电站id")
    private Long stationId;

    @ApiModelProperty(name = "chargeTemplateId", value = "费率模板id")
    private Long templateId;

    @ApiModelProperty(name = "spcStationChargePriceList", value = "价格类型列表")
    @NotEmpty(message = "价格类型列表不能为空")
    @Size(min = 4,max = 4,message = "价格类型列表长度为4")
    private List<SpcStationChargePriceDTO> spcStationChargePriceList;

    @ApiModelProperty(name = "spcStationChargePriceSetList", value = "价格时段设置列表")
    @NotEmpty(message = "价格时段设置列表不能为空")
    @Size(min = 1,max = 48,message = "价格时段设置数量范围1~48")
    private List<SpcStationChargePriceSetDTO> spcStationChargePriceSetList;


}
