feat: 跟踪数据列表查询接口
This commit is contained in:
23
src/modules/trace/model/trace_data.go
Normal file
23
src/modules/trace/model/trace_data.go
Normal file
@@ -0,0 +1,23 @@
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user