123456789101112131415161718192021 |
- // 自动生成模板SysOperationRecord
- package model
- import (
- "github.com/jinzhu/gorm"
- "time"
- )
- // 如果含有time.Time 请自行import time包
- type SysOperationRecord struct {
- gorm.Model
- Ip string `json:"ip" form:"ip" gorm:"column:ip;comment:'请求ip'"`
- Method string `json:"method" form:"method" gorm:"column:method;comment:''"`
- Path string `json:"path" form:"path" gorm:"column:path;comment:''"`
- Status int `json:"status" form:"status" gorm:"column:status;comment:''"`
- Latency time.Duration `json:"latency" form:"latency" gorm:"column:latency;comment:''"`
- Agent string `json:"agent" form:"agent" gorm:"column:agent;comment:''"`
- ErrorMessage string `json:"error_message" form:"error_message" gorm:"column:error_message;comment:''"`
- Body string `json:"body" form:"body" gorm:"column:body;comment:'请求Body'"`
- UserId int `json:"user_id" form:"user_id" gorm:"column:user_id;comment:''"`
- }
|