package org.dromara.shebei.domain.bo;

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

    /**
     * id
     */
    private Long id;

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

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

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

    /**
     * 文件地址
     */
    @NotBlank(message = "文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileUrl;

    /**
     * sn码
     */
    @NotBlank(message = "sn码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sn;

    /**
     * 设备描述
     */
    @NotBlank(message = "设备描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sbMiaoshu;

    /**
     * 设备地址
     */
    @NotBlank(message = "设备地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sbAdd;

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

    /**
     * 从机地址
     */
    @NotNull(message = "从机地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long slaveId;

    /**
     * 设备状态
     */
    @NotBlank(message = "设备状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sbStatus;


}
