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

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

@Schema(description = "管理后台 - 生产单模块扩充属性表 order_module_extra_N新增/修改 Request VO")
@Data
public class OrderModuleExtraSaveReqVO {

    @Schema(description = "属性 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17407")
    private Long id;

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

    @Schema(description = "房间 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "273")
    @NotNull(message = "房间 ID不能为空")
    private Long roomId;

    @Schema(description = "柜体 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1826")
    @NotNull(message = "柜体 ID不能为空")
    private Long bodyId;

    @Schema(description = "属性类型：1 板材铰链备注, 2 五金分类, 3 五金尺寸, 4 板材特殊备注, 5 排钻规格, 6 门板组件铰链备注, 7 板材排钻备注, 8 板材额外信息备注, 9 板材自定义编号, 10 门板拉手备注, 11 门板组件拉手备注, 12 五金特殊备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "属性类型：1 板材铰链备注, 2 五金分类, 3 五金尺寸, 4 板材特殊备注, 5 排钻规格, 6 门板组件铰链备注, 7 板材排钻备注, 8 板材额外信息备注, 9 板材自定义编号, 10 门板拉手备注, 11 门板组件拉手备注, 12 五金特殊备注不能为空")
    private Integer type;

    @Schema(description = "属性数据", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "属性数据不能为空")
    private String extraData;

}