package cn.iocoder.yudao.module.common.controller.admin.moldrepair.vo;


import cn.iocoder.yudao.module.common.controller.admin.moldrepair.vo.MoldRepairLineSaveReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;


@Schema(description = "管理后台 - 设备维修更新子记录 Req VO")
@Data
public class MoldRepairUpdateReqVO {

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

    @Schema(description = "报修日期")
    @NotNull(message = "报修日期不能为空")
    private LocalDateTime requireDate;

    @Schema(description = "完成日期")
    @NotNull(message = "完成日期不能为空")
    private LocalDateTime finishDate;

    @Schema(description = "验收日期")
    @NotNull(message = "验收日期不能为空")
    private LocalDateTime confirmDate;

    @Schema(description = "维修结果")
    @NotBlank(message = "维修结果不能为空")
    private String repairResult;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "子列表")
    @NotNull(message = "子列表不能为空")
    private List<MoldRepairLineSaveReqVO> updateReqVOList;

}
