21 lines
1.1 KiB
Go
21 lines
1.1 KiB
Go
package logapi
|
|
|
|
import "encoding/json"
|
|
|
|
type DataLogAPI struct {
|
|
ID string `gorm:"column:id" json:"ID"`
|
|
DateCreated string `gorm:"column:date_created" json:"date_created"`
|
|
UserAgent string `gorm:"column:User_agent" json:"User_agent"`
|
|
IP string `gorm:"column:IP" json:"IP"`
|
|
Parameter string `gorm:"column:Parameter" json:"Parameter"`
|
|
Header string `gorm:"column:Header" json:"Header"`
|
|
Method string `gorm:"column:Method" json:"Method"`
|
|
Url string `gorm:"column:URL" json:"URL"`
|
|
Request json.RawMessage `gorm:"column:Request" json:"Request"`
|
|
Respon json.RawMessage `gorm:"column:Respon" json:"Respon"`
|
|
ResponCode string `gorm:"column:Respon_code" json:"Respon_code"`
|
|
ResponTimeStart string `gorm:"column:Respontime_start" json:"Respontime_start"`
|
|
ResponTimeEnd string `gorm:"column:Respontime_end" json:"Respontime_end"`
|
|
Comment string `gorm:"column:Comment" json:"Comment"`
|
|
}
|