1234567891011121314151617181920212223242526 |
- package model
- // TOprLog 操作记录表结构
- type TOprLog struct {
- GvaModel
- Ip string `json:"ip" form:"ip" db:"ip"` // 请求ip
- Method string `json:"method" form:"method" db:"method"` // 请求方法
- Path string `json:"path" form:"path" db:"path"` // 请求路径
- Status uint64 `json:"status" form:"status" db:"status"` // 请求状态
- Latency string `json:"latency" form:"latency" db:"latency"` // 延迟
- Agent string `json:"agent" form:"agent" db:"agent"` // 代理
- ErrorMessage string `json:"error_message" db:"error_message"` // 错误信息
- Body string `json:"body" form:"body" db:"body"` // 请求Body
- Resp string `json:"resp" form:"resp" db:"resp"` // 响应Body
- UserId int64 `json:"user_id" form:"user_id" db:"user_id"` // 用户Id
- UserName string `json:"user_name" form:"user_name" db:"user_name"` // 用户账号
- }
- func (TOprLog) TableName() string {
- return "crazy_cms.cms_opr_log"
- }
- type SearchOprLog struct {
- TOprLog
- PageInfo
- }
|