package com.nanxiislet.admin.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.nanxiislet.admin.common.base.BaseEntity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import lombok.EqualsAndHashCode; /** * 服务器实体 * * @author NanxiIslet * @since 2024-01-06 */ @Data @EqualsAndHashCode(callSuper = true) @TableName("platform_server") @Schema(description = "服务器信息") public class PlatformServer extends BaseEntity { @Schema(description = "服务器名称") private String name; @Schema(description = "公网IP") private String ip; @Schema(description = "内网IP") private String internalIp; @Schema(description = "SSH端口") private Integer port; @Schema(description = "服务器类型 physical/virtual/cloud") private String type; @Schema(description = "状态 online/offline/warning/maintenance") private String status; @Schema(description = "操作系统") private String os; @Schema(description = "CPU核心数") private Integer cpuCores; @Schema(description = "内存大小(GB)") private Integer memoryTotal; @Schema(description = "磁盘大小(GB)") private Integer diskTotal; @Schema(description = "标签(JSON格式)") private String tags; @Schema(description = "1Panel面板地址") private String panelUrl; @Schema(description = "1Panel面板端口") private Integer panelPort; @Schema(description = "1Panel API密钥") private String panelApiKey; @Schema(description = "描述") private String description; }