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.Size;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import jakarta.validation.constraints.Pattern;

import java.util.List;


@Schema(description = "管理后台 - 查看订单下对应的包裹信息")
@Data
@ToString(callSuper = true)
public class PackageDetailsReqVO extends PageParam {


    @Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @Pattern(regexp = "^[0-9]*$",message = "订单号必须为数字")
    @Length(max = 19,message = "订单号长度不能超过 19 位")
    private String orderId;

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


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


    @Schema(description = "包裹状态")
    private Boolean packStatus;


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



}
