package com.sckw.fleet.model.request;

import com.sckw.core.web.request.PageReq;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author zk
 * @desc 车辆轴数信息
 * @date 2023/7/11 0011
 */
@Data
public class TruckAxleNumUpdateParam extends PageReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -1804956106629602885L;

    @Schema(description = "轴数")
    private List<TruckAxleNumUpdateParamVO> truckAxleNumUpdateParamVOList;


    @Data
    public static class TruckAxleNumUpdateParamVO implements Serializable {

        @Serial
        private static final long serialVersionUID = -7905792845847783871L;

        @NotNull(message = "车辆轴数ID不能为空")
        @Schema(description = "车辆轴数ID")
        private Long id;

        @NotNull(message = "货车法定载重不能为空")
        @Schema(description = "货车法定载重")
        private BigDecimal legalLoad;

        @NotNull(message = "牵引车法定载重不能为空")
        @Schema(description = "牵引车法定载重")
        private BigDecimal tractorLegalLoad;

    }


}
