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

import com.cf.imes.framework.common.validation.InEnum;
import com.cf.imes.module.executor.controller.admin.manage.pack.vo.PackagePartsSaveReqVO;
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 java.util.ArrayList;
import java.util.List;

/**
 *
 *
 * @author Gqr
 * @since 2026/3/10 17:36
 */
@Schema(description = "管理后台 - 分堆打包 - 保存分堆 Request VO")
@Data
public class HeapSplitSaveReqVO {
    @Schema(description = "新增板号列表")
    private List<Long> plateNos = new ArrayList<>();

    @Schema(description = "删除的板号列表")
    private List<Long> delPlateNos  = new ArrayList<>();

    @Schema(description = "配件id列表")
    private List<PackagePartsSaveReqVO> parts  = new ArrayList<>();

    @Schema(description = "删除的配件id列表")
    private List<PackagePartsSaveReqVO> delParts  = new ArrayList<>();

    @Schema(description = "订单id列表")
    @Size(min = 1, max = 100, message = "订单号列表不能为空且长度不能超过100")
    private List<Long> orderIds  = new ArrayList<>();

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