package org.dromara.shebei.domain.bo;

import org.dromara.shebei.domain.OpsSbMoban;
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_sb_moban
 *
 * @author LionLi
 * @date 2025-10-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsSbMoban.class, reverseConvertGenerate = false)
public class OpsSbMobanBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 模板名称
     */
    @NotBlank(message = "模板名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mbName;

    /**
     * 变量数
     */
    @NotNull(message = "变量数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long blCount;

    /**
     * 关联设备数
     */
    @NotNull(message = "关联设备数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sbCount;


}
