yanghui
2021-04-26 eb4a9d53d2ec2a21c1f1088573ef8287bdca572b
1
2
3
4
5
6
7
8
9
10
11
12
13
package logc
 
type OperationLog struct {
    ID        string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 主键id
    Timestamp int64  `gorm:"column:timestamp" json:"timestamp"`                   // 时间戳Unix time
    UserName  string `gorm:"column:userName" json:"userName"`                     // 用户名字
    Module    string `gorm:"column:module" json:"module"`                         // 模块
    Function  string `gorm:"column:function" json:"function"`                     // 功能
    Result    string `gorm:"column:result" json:"result"`                         // 操作结果
    Para      string `gorm:"column:para" json:"para"`                             // 参数
    Msg       string `gorm:"column:msg" json:"msg"`                               // 错误消息
    Ip        string `gorm:"column:ip" json:"ip"`                                 // 详情
}