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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 生产单模块新增/修改 Request VO")
@Data
public class ModuleSaveReqVO {

    @Schema(description = "模块 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17730")
    private Long id;

    @Schema(description = "生产单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "生产单号不能为空")
    private Long orderNo;

    @Schema(description = "模块名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "模块名称不能为空")
    private String name;

    @Schema(description = "父节点 ID，模块间根据module_type构成树形结构", requiredMode = Schema.RequiredMode.REQUIRED, example = "11108")
    @NotNull(message = "父节点 ID，模块间根据module_type构成树形结构不能为空")
    private Long parentId;

    @Schema(description = "模块组 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19999")
    @NotNull(message = "模块组 ID不能为空")
    private Long groupId;

    @Schema(description = "报价项目 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26198")
    @NotNull(message = "报价项目 ID不能为空")
    private Integer offerId;

    @Schema(description = "模块类型，1 房间 2 柜体 3 加工组类型 4 加工组名", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "模块类型，1 房间 2 柜体 3 加工组类型 4 加工组名不能为空")
    private Integer type;

    @Schema(description = "模块宽度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "模块宽度不能为空")
    private Double width;

    @Schema(description = "模块高度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "模块高度不能为空")
    private Double height;

    @Schema(description = "模块深度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "模块深度不能为空")
    private Double depth;

    @Schema(description = "模块复制数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "模块复制数量不能为空")
    private Short multiNum;

    @Schema(description = "源模块 ID，模块是复制的，则为源模块ID，否则为0", requiredMode = Schema.RequiredMode.REQUIRED, example = "19669")
    @NotNull(message = "源模块 ID，模块是复制的，则为源模块ID，否则为0不能为空")
    private Long sourceId;

    @Schema(description = "板材数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "板材数量不能为空")
    private Short plateNum;

    @Schema(description = "异型数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "异型数量不能为空")
    private Short unregularNum;

    @Schema(description = "文件名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "文件名不能为空")
    private String filename;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "你猜")
    @NotEmpty(message = "备注不能为空")
    private String remark;

}