Agent.java
2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package vion.model.monitor;
import com.baomidou.mybatisplus.annotation.*;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Getter;
import lombok.Setter;
import vion.dto.monitor.AgentDTO;
import vion.vo.monitor.AgentVO;
import java.time.LocalDateTime;
/**
* @author vion
* @date 2024/10/16
*/
@Getter
@Setter
@TableName(value = "m_agent")
@AutoMappers({
@AutoMapper(target = AgentVO.class),
@AutoMapper(target = AgentDTO.class),
})
public class Agent {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 唯一id
*/
@TableField(value = "uid")
private String uid;
/**
* 用户名
*/
@TableField(value = "username")
private String username;
/**
* 密码
*/
@TableField(value = "password")
private String password;
/**
* 名称
*/
@TableField(value = "name", condition = SqlCondition.LIKE)
private String name;
/**
* 别名
*/
@TableField(value = "\"alias\"", condition = SqlCondition.LIKE)
private String alias;
/**
* agent类型 1:store,2:mall
*/
@TableField(value = "type")
private Short type;
/**
* agent 版本号
*/
@TableField(value = "version")
private String version;
/**
* 主机名
*/
@TableField(value = "hostname", condition = SqlCondition.LIKE)
private String hostname;
/**
* 本地ip
*/
@TableField(value = "local_ipaddr", condition = SqlCondition.LIKE)
private String localIpaddr;
/**
* 公网ip
*/
@TableField(value = "ipaddr", condition = SqlCondition.LIKE)
private String ipaddr;
/**
* 归属地
*/
@TableField(value = "addr", condition = SqlCondition.LIKE)
private String addr;
/**
* 操作系统
*/
@TableField(value = "os")
private String os;
/**
* 系统信息
*/
@TableField(value = "system_info")
private String systemInfo;
/**
* 时区
*/
@TableField(value = "time_zone")
private String timeZone;
/**
* 授权到期时间
*/
@TableField(value = "license_date")
private String licenseDate;
/**
* 0:离线 1:在线
*/
@TableField(value = "status")
private Short status;
/**
* 备注
*/
@TableField(value = "remark")
private String remark;
@TableField(value = "create_time", fill = FieldFill.INSERT)
private LocalDateTime createTime;
@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
}