yanghui
2021-04-26 cf01dcde2de2be62f01f938417e72ff48d6abd6e
1
2
3
4
5
6
7
8
9
10
11
12
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"`                             // 参数
    Ip        string `gorm:"column:ip" json:"ip"`                                 // 详情
}