package com.cf.imes.module.executor.controller.admin.manage.pack.vo;


import com.cf.imes.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.util.List;


@Schema(description = "管理后台 - 查看订单下的包裹明细")
@Data
@ToString(callSuper = true)
public class PackageDetailReqVO extends PageParam {

    @Schema(description = "订单号列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(max = 100, message = "订单号列表长度不能超过 100 个")
    @NotEmpty(message = "订单号列表不能为空")
    private List<Long> orderIds;

    @Schema(description = "包裹编号")
    @Pattern(regexp = "^[0-9]*$",message = "包裹编号必须为数字")
    @Length(max = 13,message = "包裹编号长度不能超过 13 位")
    @NotNull(message = "包裹编号不能为空")
    private String packageNo;
}
