24 lines
1.0 KiB
Go
24 lines
1.0 KiB
Go
package model
|
|
|
|
// TraceData 跟踪_数据 trace_data
|
|
type TraceData struct {
|
|
ID string `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
|
|
TaskId int64 `json:"taskId" gorm:"task_id"` // 任务ID
|
|
IMSI string `json:"imsi" gorm:"imsi"`
|
|
MSISDN string `json:"msisdn" gorm:"msisdn"` // 可能存在
|
|
SrcAddr string `json:"srcAddr" gorm:"src_addr"` // 源地址带端口
|
|
DstAddr string `json:"dstAddr" gorm:"dst_addr"` // 目标地址带端口
|
|
IfType int64 `json:"ifType" gorm:"if_type"` // 接口类型,未分类
|
|
MsgType int64 `json:"msgType" gorm:"msg_type"`
|
|
MsgDirect int64 `json:"msgDirect" gorm:"msg_direct"`
|
|
Length int64 `json:"length" gorm:"length"` // 去除头后的原始数据byte长度
|
|
Timestamp int64 `json:"timestamp" gorm:"timestamp"` // 毫秒
|
|
RawMsg string `json:"rawMsg" gorm:"raw_msg"` // 去除头后的原始数据byteBase64
|
|
DecMsg string `json:"decMsg" gorm:"dec_msg"` // TCP内容消息
|
|
}
|
|
|
|
// TableName 表名称
|
|
func (*TraceData) TableName() string {
|
|
return "trace_data"
|
|
}
|