log.go 512 B

1234567891011121314151617181920
  1. package log
  2. import (
  3. xtime "go-common/library/time"
  4. )
  5. // TableName case tablename
  6. func (*Log) TableName() string {
  7. return "log"
  8. }
  9. // Log log model
  10. type Log struct {
  11. ID int64 `gorm:"column:id" json:"id"`
  12. UserName string `gorm:"column:username" json:"username"`
  13. Business string `gorm:"column:business" json:"business"`
  14. Info string `gorm:"column:info" json:"info"`
  15. CTime xtime.Time `gorm:"column:ctime" json:"ctime"`
  16. MTime xtime.Time `gorm:"column:mtime" json:"mtime"`
  17. }