Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Id string `gorm:"type:varchar(32);not null;uniqueIndex;comment:ID" json:"id" pb:"req:urd;res:crl"` Level string `gorm:"column:level;type:varchar(10);comment:等级" json:"level" pb:"req:curl;res:crl"` Msg string `gorm:"column:msg;type:varchar(2000);index;comment:msg" json:"msg" pb:"req:curl;res:crl"` Content string `gorm:"column:content;type:text;comment:内容" json:"content" pb:"req:curl;res:crl"` Uid string `gorm:"type:varchar(32);not null;index;comment:uid" json:"uid" pb:"req:curl;res:crl"` RequestId string `gorm:"type:varchar(32);not null;index;comment:request_id" json:"request_id" pb:"req:curl;res:crl"` ClientIp string `gorm:"type:varchar(32);not null;index;comment:client_ip" json:"client_ip" pb:"req:curl;res:crl"` Stack string `gorm:"column:stack;type:text;comment:stack" json:"stack" pb:"req:curl;res:crl"` Sql string `gorm:"column:sql;type:text;comment:sql" json:"sql" pb:"req:curl;res:crl"` CreatedAt time.Time `gorm:"comment:创建时间" json:"created_at" pb:"res:crl"` }
Log 日志
func (*Log) BeforeCreate ¶ added in v1.1.94
BeforeCreate 创建前
Click to show internal directories.
Click to hide internal directories.