Commit fd9f7e31 by HlQ

[fix] 修改类型

1 parent 381cd44c
package vion.model.monitor; package vion.model.monitor;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.config.mp.JsonbTypeHandler; import vion.config.mp.JsonbTypeHandler;
...@@ -28,25 +27,25 @@ public class AgentRecord { ...@@ -28,25 +27,25 @@ public class AgentRecord {
* cpu信息 * cpu信息
*/ */
@TableField(value = "cpu_info", typeHandler = JsonbTypeHandler.class) @TableField(value = "cpu_info", typeHandler = JsonbTypeHandler.class)
private JsonNode cpuInfo; private Object cpuInfo;
/** /**
* 内存信息 * 内存信息
*/ */
@TableField(value = "memory_info", typeHandler = JsonbTypeHandler.class) @TableField(value = "memory_info", typeHandler = JsonbTypeHandler.class)
private JsonNode memoryInfo; private Object memoryInfo;
/** /**
* 磁盘信息 * 磁盘信息
*/ */
@TableField(value = "disk_info", typeHandler = JsonbTypeHandler.class) @TableField(value = "disk_info", typeHandler = JsonbTypeHandler.class)
private JsonNode diskInfo; private Object diskInfo;
/** /**
* 网络流量 * 网络流量
*/ */
@TableField(value = "network_info", typeHandler = JsonbTypeHandler.class) @TableField(value = "network_info", typeHandler = JsonbTypeHandler.class)
private JsonNode networkInfo; private Object networkInfo;
/** /**
* 启动时间 * 启动时间
......
package vion.model.monitor; package vion.model.monitor;
import com.baomidou.mybatisplus.annotation.*; import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import vion.config.mp.JsonbTypeHandler; import vion.config.mp.JsonbTypeHandler;
...@@ -64,7 +63,7 @@ public class EventRecord { ...@@ -64,7 +63,7 @@ public class EventRecord {
* 上报数据 * 上报数据
*/ */
@TableField(value = "data", typeHandler = JsonbTypeHandler.class) @TableField(value = "data", typeHandler = JsonbTypeHandler.class)
private JsonNode data; private Object data;
@TableField(value = "create_time", fill = FieldFill.INSERT) @TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime; private LocalDateTime createTime;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!