package org.jk.rag.domain.bo;

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

/**
 * 服务器基础信息-静态数据业务对象 server_base_info
 *
 * @author Lion Li
 * @date 2026-01-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ServerBaseInfo.class, reverseConvertGenerate = false)
public class ServerBaseInfoBo extends BaseEntity {

    /**
     * 主键ID，雪花算法生成
     */
    @NotNull(message = "主键ID，雪花算法生成不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 服务器IP地址，唯一
     */
    @NotBlank(message = "服务器IP地址，唯一不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serverIp;

    /**
     * 服务器名称/主机名
     */
    @NotBlank(message = "服务器名称/主机名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serverName;

    /**
     * 服务器类型：物理机/虚拟机/容器
     */
    private String serverType;

    /**
     * 操作系统：Linux/CentOS7/Ubuntu/Windows Server
     */
    @NotBlank(message = "操作系统：Linux/CentOS7/Ubuntu/Windows Server不能为空", groups = { AddGroup.class, EditGroup.class })
    private String osType;

    /**
     * 系统版本号
     */
    private String osVersion;


}
