mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-06 10:00:24 +08:00
实现请求日志写入
This commit is contained in:
26
internal/db/models/http_access_log_model.go
Normal file
26
internal/db/models/http_access_log_model.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package models
|
||||
|
||||
//
|
||||
type HTTPAccessLog struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
ServerId uint32 `field:"serverId"` // 服务ID
|
||||
NodeId uint32 `field:"nodeId"` // 节点ID
|
||||
Status uint32 `field:"status"` // 状态码
|
||||
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||||
Content string `field:"content"` // 日志内容
|
||||
Day string `field:"day"` // 日期Ymd
|
||||
}
|
||||
|
||||
type HTTPAccessLogOperator struct {
|
||||
Id interface{} // ID
|
||||
ServerId interface{} // 服务ID
|
||||
NodeId interface{} // 节点ID
|
||||
Status interface{} // 状态码
|
||||
CreatedAt interface{} // 创建时间
|
||||
Content interface{} // 日志内容
|
||||
Day interface{} // 日期Ymd
|
||||
}
|
||||
|
||||
func NewHTTPAccessLogOperator() *HTTPAccessLogOperator {
|
||||
return &HTTPAccessLogOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user