package org.dromara.domain.bo;

import org.dromara.domain.SenAlgorithmConfig;
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.*;

/**
 * 算法仓配置业务对象 sen_algorithm_config
 *
 * @author luogang
 * @date 2024-09-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SenAlgorithmConfig.class, reverseConvertGenerate = false)
public class SenAlgorithmConfigBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 算法名称
     */
    @NotBlank(message = "算法名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String algorithmName;
    /**
     * 算法类别（字典algorithm_category）
     */
    @NotNull(message = "算法类别（字典algorithm_category）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer algorithmCategory;

    /**
     * 关联节点
     */
    private Long nodeId;

    /**
     * 状态（0-启用1-禁用）
     */
    @NotBlank(message = "状态（0-启用1-禁用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 告警周期
     */
    private String alertCycle;

    /**
     * 算法提供商
     */
    private String algorithmProvider;

    /**
     * 算法硬件类型
     */
    private String hardwareType;

    /**
     * 描述
     */
    private String description;


}
