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


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

import jakarta.validation.Valid;
import java.util.List;

@Schema(description = "预打包的优化结构")
@Data
@ToString(callSuper = true)
public class PrePackOptimizeInfo {


    @Schema(description = "分组名称")
    private String groupName;


    @Schema(description = "优化的数据")
    private List<PrePackData> list;



    @Valid
    @Data
    public static class PrePackData {

        @Schema(description = "包裹编号")
        private String name;

        @Schema(description = "")
        private List<PrerStoreyNum> list;

    }


    @Valid
    @Data
    public static class PrerStoreyNum {

        @Schema(description = "包裹层数名称")
        private String name;


        @Schema(description = "")
        private Long floor_place_width;

        @Schema(description = "")
        private Long floor_place_height;

        @Schema(description = "")
        private List<PrerPlateData> list;

    }


    @Valid
    @Data
    public static class PrerPlateData {

        @Schema(description = "小板名称")
        private String name;


        @Schema(description = "")
        private String plateNo;

        @Schema(description = "")
        private String plateId;

        @Schema(description = "")
        private PrePlaceInfo placeInfo;

    }


    @Valid
    @Data
    public static class PrePlaceInfo{

        @Schema(description = "")
        private String banid;

        @Schema(description = "")
        private Double line;

        @Schema(description = "")
        private Double x;

        @Schema(description = "")
        private Double y;

        @Schema(description = "")
        private Long pbg;

        @Schema(description = "")
        private Long pbk;


    }


}
