代码拉取完成,页面将自动刷新
package schema
import "gitee.com/linqwen/momo/base"
type LogCtxDTO struct {
Code string `gorm:"column:code" json:"Code" form:"Code" comment:"Code"`
Level string `gorm:"column:level" json:"Level" form:"Level" comment:"Level"`
Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"`
Ip string `gorm:"column:ip" json:"Ip" form:"Ip" comment:"Ip"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Method string `gorm:"column:method" json:"Method" form:"Method" comment:"Method"`
StatusCode int `gorm:"column:status_code" json:"StatusCode" form:"StatusCode" comment:"StatusCode"`
Headers string `gorm:"column:headers" json:"Headers" form:"Headers" comment:"Headers"`
Body string `gorm:"column:body" json:"Body" form:"Body" comment:"Body"`
Latency int64 `gorm:"column:latency" json:"Latency,string" form:"Latency" comment:"Latency"`
FileName string `gorm:"column:file_name" json:"FileName" form:"FileName" comment:"FileName"`
FuncName string `gorm:"column:func_name" json:"FuncName" form:"FuncName" comment:"FuncName"`
Data string `gorm:"column:data" json:"Data" form:"Data" comment:"Data"`
}
type LogCtxVO struct {
Id int64 `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
Code string `gorm:"column:code" json:"Code" form:"Code" comment:"Code"`
Level string `gorm:"column:level" json:"Level" form:"Level" comment:"Level"`
Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"`
Ip string `gorm:"column:ip" json:"Ip" form:"Ip" comment:"Ip"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Method string `gorm:"column:method" json:"Method" form:"Method" comment:"Method"`
StatusCode int `gorm:"column:status_code" json:"StatusCode" form:"StatusCode" comment:"StatusCode"`
Headers string `gorm:"column:headers" json:"Headers" form:"Headers" comment:"Headers"`
Body string `gorm:"column:body" json:"Body" form:"Body" comment:"Body"`
Latency int64 `gorm:"column:latency" json:"Latency,string" form:"Latency" comment:"Latency"`
FileName string `gorm:"column:file_name" json:"FileName" form:"FileName" comment:"FileName"`
FuncName string `gorm:"column:func_name" json:"FuncName" form:"FuncName" comment:"FuncName"`
Data string `gorm:"column:data" json:"Data" form:"Data" comment:"Data"`
CreatedAt base.ISO8601Time
UpdatedAt base.ISO8601Time
}
func (c LogCtxVO) GetDetailVO() interface{} { return c }
func (c LogCtxVO) GetListVO() interface{} {
vo := struct {
Id int64 `gorm:"primaryKey;autoIncrement:false" json:"Id,string"`
Code string `gorm:"column:code" json:"Code" form:"Code" comment:"Code"`
Level string `gorm:"column:level" json:"Level" form:"Level" comment:"Level"`
Message string `gorm:"column:message" json:"Message" form:"Message" comment:"Message"`
Ip string `gorm:"column:ip" json:"Ip" form:"Ip" comment:"Ip"`
Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
Method string `gorm:"column:method" json:"Method" form:"Method" comment:"Method"`
StatusCode int `gorm:"column:status_code" json:"StatusCode" form:"StatusCode" comment:"StatusCode"`
Latency int64 `gorm:"column:latency" json:"Latency,string" form:"Latency" comment:"Latency"`
CreatedAt base.ISO8601Time
UpdatedAt base.ISO8601Time
}{
Id: c.Id,
Code: c.Code,
Level: c.Level,
Message: c.Message,
Ip: c.Ip,
Path: c.Path,
Method: c.Method,
StatusCode: c.StatusCode,
Latency: c.Latency,
CreatedAt: c.CreatedAt,
}
return vo
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。