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

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

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

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

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32278")
    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 = "单位ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19527")
//    @NotNull(message = "单位ID不能为空")
    private Long unitId;

    @Schema(description = "机台ID", example = "24428")
    private Long machineId;

    @Schema(description = "使用次数/次")
    private BigDecimal useTime;

    @Schema(description = "入库时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入库时间不能为空")
    private LocalDateTime inTime;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "模具图片")
    private String images;

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

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否启用不能为空")
    private Boolean isEnable;

    @Schema(description = "型号id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15258")
//    @NotNull(message = "型号id不能为空")
    private Long brandId;

    @Schema(description = "附件地址")
    private String fileUrl;

}