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

import com.cf.imes.framework.common.validation.InEnum;
import com.cf.imes.module.executor.enums.OrderPackageMethodEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

@Schema(description = "管理后台 - 包裹新增  Request VO")
@Data
@ToString(callSuper = true)
public class OrderPackReqVO {

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

    @Schema(description = "当前包裹订单号列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(min = 1, max = 100, message = "订单号列表不能为空且长度不能超过100")
    private List<Long> currentOrderIds;

    @Schema(description = "包裹编号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String packNo;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "新增的板号列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> addPlateNoList  = new ArrayList<>();

    @Schema(description = "移除的板号列表", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long> deletePlateNoList  = new ArrayList<>();

    @Schema(description = "打包方式：0柜名、1房名、2订单")
    @InEnum(OrderPackageMethodEnum.class)
    private Integer packMethod;

    @Schema(description = "新增打包的配件列表")
    private List<PackagePartsSaveReqVO> addPartsList  = new ArrayList<>();

    @Schema(description = "移除包裹的配件列表")
    private List<PackagePartsSaveReqVO> delPartsList = new ArrayList<>();
}
