package cn.iocoder.yudao.module.mes.controller.admin.machine.vo;

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

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

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

    @Schema(description = "装备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "12527")
    private Long id;
    @Schema(description = "编码", example = "1")
    private String code;
    @Schema(description = "装备名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "装备名称不能为空")
    private String name;

    @Schema(description = "父id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24628")
    @NotNull(message = "父id不能为空")
    private Long parentId;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer sort;

    @Schema(description = "组织机台ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13753")
    private Long orgId;

    @Schema(description = "装备SN号")
    private String serialCode;

    @Schema(description = "出厂日期")
    private LocalDateTime outgoingTime;

    @Schema(description = "出厂报告")
    private String outgoingReport;

    @Schema(description = "位置")
    private String position;

    @Schema(description = "规格")
    private String standard;

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

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "组织类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "组织类型不能为空")
    private Integer componentType;

    @Schema(description = "机台类型", example = "1")
    private String machineType;

    @Schema(description = "建议维保时间")
    private Long maintainTime;

    @Schema(description = "建议维保类型(按使用时间，距离上次维保时间)", example = "1")
    private String maintainType;

    @Schema(description = "建议维保时间单位")
    private String maintainTimeUnit;

    @Schema(description = "实际维保时间")
    private Long trueMaintainTime;

    @Schema(description = "实际维保时间单位")
    private String trueMaintainTimeUnit;

    @Schema(description = "实际维保类型", example = "1")
    private String trueMaintainTimeType;

    @Schema(description = "上次维保时间")
    private LocalDateTime lastMaitainTime;

    @Schema(description = "模具id")
    private Long moldId;
}