package com.sckw.manage.model.vo.req;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author: yzc
 * @date: 2024-03-01  15:00
 * @desc: 选择运价路径请求参数
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = false)
public class ChooseLineFreightRateParam {

    /**
     * 装货地名称集合
     */
    @NotEmpty(message = "装货地名不能为空")
    @Size(min = 1,max = 3,message = "装货地名称最多3条")
    private List<String> loadNames;

    /**
     * 卸货地名称集合
     */
    @NotEmpty(message = "卸货地名不能为空")
    @Size(min = 1,max = 3,message = "卸货地名称最多3条")
    private List<String> unloadNames;

}