管理端全部功能跑通
This commit is contained in:
52
EdgeAPI/internal/db/models/httpdns_access_log_model.go
Normal file
52
EdgeAPI/internal/db/models/httpdns_access_log_model.go
Normal file
@@ -0,0 +1,52 @@
|
||||
package models
|
||||
|
||||
// HTTPDNSAccessLog 访问日志
|
||||
type HTTPDNSAccessLog struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
RequestId string `field:"requestId"` // 请求ID
|
||||
ClusterId uint32 `field:"clusterId"` // 集群ID
|
||||
NodeId uint32 `field:"nodeId"` // 节点ID
|
||||
AppId string `field:"appId"` // AppID
|
||||
AppName string `field:"appName"` // 应用名
|
||||
Domain string `field:"domain"` // 域名
|
||||
QType string `field:"qtype"` // 查询类型
|
||||
ClientIP string `field:"clientIP"` // 客户端IP
|
||||
ClientRegion string `field:"clientRegion"` // 客户端区域
|
||||
Carrier string `field:"carrier"` // 运营商
|
||||
SDKVersion string `field:"sdkVersion"` // SDK版本
|
||||
OS string `field:"os"` // 系统
|
||||
ResultIPs string `field:"resultIPs"` // 结果IP
|
||||
Status string `field:"status"` // 状态
|
||||
ErrorCode string `field:"errorCode"` // 错误码
|
||||
CostMs int32 `field:"costMs"` // 耗时
|
||||
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||||
Day string `field:"day"` // YYYYMMDD
|
||||
Summary string `field:"summary"` // 概要
|
||||
}
|
||||
|
||||
type HTTPDNSAccessLogOperator struct {
|
||||
Id any // ID
|
||||
RequestId any // 请求ID
|
||||
ClusterId any // 集群ID
|
||||
NodeId any // 节点ID
|
||||
AppId any // AppID
|
||||
AppName any // 应用名
|
||||
Domain any // 域名
|
||||
QType any // 查询类型
|
||||
ClientIP any // 客户端IP
|
||||
ClientRegion any // 客户端区域
|
||||
Carrier any // 运营商
|
||||
SDKVersion any // SDK版本
|
||||
OS any // 系统
|
||||
ResultIPs any // 结果IP
|
||||
Status any // 状态
|
||||
ErrorCode any // 错误码
|
||||
CostMs any // 耗时
|
||||
CreatedAt any // 创建时间
|
||||
Day any // YYYYMMDD
|
||||
Summary any // 概要
|
||||
}
|
||||
|
||||
func NewHTTPDNSAccessLogOperator() *HTTPDNSAccessLogOperator {
|
||||
return &HTTPDNSAccessLogOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user