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 14:38
 */
@Data
public class FireInspectConfigSubmitReqDTO {

    @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;
    /**
     * 巡检点配置名称
     */
    @ApiModelProperty(name = "inspectConfigName", value = "巡检点配置名称")
    @NotBlank(message = "巡检点配置名称不能为空")
    private String inspectConfigName;
    /**
     * 巡检点配置类型（1：智能硬件，2：点位，3：自定义，4：设备资产）
     */
    @ApiModelProperty(name = "inspectConfigType", value = "巡检点配置类型（1：智能硬件，2：点位，3：自定义，4：设备资产）")
    @NotBlank(message = "请选择巡检点配置类型")
    private String inspectConfigType;
    /**
     * 巡检配置目标 存json [{targetId: 123, targetName: 设备/点位/自定义文本, targetCode: 00, targetAddress: 123 }]
     */
    @ApiModelProperty(name = "inspectConfigTarget", value = "巡检配置目标 存json [{targetId: 123, targetName: 设备/点位/自定义文本, targetCode: 00, targetAddress: 123 }]")
    @NotBlank(message = "巡检配置目标不能为空")
    private String inspectConfigTarget;
    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
}
