package cn.iocoder.yudao.module.erp.controller.admin.mold.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.math.BigDecimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 模具型号新增/修改 Request VO")
@Data
public class MoldBrandSaveReqVO {

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

    @Schema(description = "型号编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "型号编码不能为空")
    private String code;

    @Schema(description = "型号名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "型号名称不能为空")
    private String name;

    @Schema(description = "规格", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "规格不能为空")
    private String moldType;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2336")
//    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @Schema(description = "预期寿命(小时)")
    private BigDecimal useTime;

    @Schema(description = "维保模式", example = "2")
    private Integer maintainType;

    @Schema(description = "维保周期")
    private BigDecimal maintainTime;

    @Schema(description = "模穴数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "模穴数不能为空")
    private Long moldSize;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;
    @Schema(description = "工序", example = "你说的对")
    private String orgType;

}