package com.yuchen.saas.park.api.dto.fire.inspect;

import com.thinkunion.park.service.common.constant.GroupAction;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @author zhouhanwei
 * @create 2024/4/2 11:32
 */
@Data
public class FireInspectFormSubmitReqDTO {

    @NotNull(groups = GroupAction.UpdateAction.class, message = "id不能为空")
    @Null(groups = GroupAction.InsertAction.class, message = "id必须为空")
    private Long id;

    /**
     * 项目id
     */
    @ApiModelProperty(name = "projectId", value = "项目id")
    @NotNull(message = "请选择项目")
    private Long projectId;
    /**
     * 巡检类型id
     */
    @ApiModelProperty(name = "inspectTypeId", value = "巡检类型id")
    @NotNull(message = "巡检类型不能为空")
    private Long inspectTypeId;
    /**
     * 巡检内容标题
     */
    @ApiModelProperty(name = "inspectTitle", value = "巡检内容标题")
    @NotBlank(message = "巡检内容标题不能为空")
    private String inspectTitle;
    /**
     * 检查项
     */
    @ApiModelProperty(name = "inspectCheckItem", value = "检查项")
    @NotBlank(message = "巡检检查项不能为空")
    private String inspectCheckItem;
    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
    /**
     * 附件
     */
    @ApiModelProperty(name = "attachment", value = "附件")
    private String attachment;
}
