package com.sckw.fleet.model.request;

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

import java.io.Serial;
import java.io.Serializable;

/**
 * @author PC
 */
@Data
@Valid
public class TruckRoteDetailReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 2817549090778895464L;
    /**
     * 司机id
     */
    @NotNull(message = "司机id不能为空")
    @Schema(description = "司机id")
    private Long driverId;
    /**
     * 装货点
     */
    @Schema(description = "装货点")
    @NotBlank(message = "装货点不能为空")
    private String startPoint;
    /**
     * 卸货点
     */
    @NotBlank(message = "卸货点不能为空")
    @Schema(description = "卸货点")
    private String unloadingPoint;
}