log_opt.go
819 字节
package models
import (
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
"time"
)
// LogOpt 操作日志
type LogOpt struct {
//OptModule string `comment:"操作模块"`
tableName struct{} `comment:"操作日志" pg:"log_opt"`
Id int `comment:"ID" pg:"id,pk"`
CompanyId int `comment:"公司ID"`
Operator domain.StaffDesc `comment:"操作人"`
OptMethod domain.OptMethod `comment:"操作方法"`
OptTargetId string `comment:"操作目标ID"`
OptField string `comment:"操作字段"`
OptValue string `comment:"操作字段值"`
CreatedAt time.Time `comment:"创建时间"`
UpdatedAt time.Time `comment:"更新时间"`
DeletedAt *time.Time `comment:"删除时间"`
}