package org.dromara.inspection.domain.bo;

import org.dromara.inspection.domain.OpsInspectionItem;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 运维-巡检-自定义巡检项业务对象 ops_inspection_item
 *
 * @author LionLi
 * @date 2025-09-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsInspectionItem.class, reverseConvertGenerate = false)
public class OpsInspectionItemBo extends BaseEntity {

    private Long id;

    /**
     * 电站id
     */
    private Long projectId;

    /**
     * 自定义巡检项名称
     */
    @NotBlank(message = "自定义巡检项名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 业务id，巡检计划1
     */
    @NotBlank(message = "业务id，巡检计划1不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;


}
