operationHisDao.go 910 B

1234567891011121314151617181920
  1. package dao
  2. import (
  3. "time"
  4. )
  5. // OperationHis 操作记录
  6. type OperationHis struct {
  7. ID int `gorm:"primary_key" json:"id"` //编号
  8. OperationType int `gorm:"type:int" json:"operationType"` //操作类型
  9. ModuleType int `gorm:"type:int" json:"moduleType"` //操作模块
  10. HandleContent string `gorm:"type:varchar(1000)" json:"handleContent"` //操作内容
  11. HandleUserId string `gorm:"type:varchar(255)" json:"handleUserId"` //操作用户ID
  12. HandleTime time.Time `gorm:"type:timestamp;default CURRENT_TIMESTAMP" json:"handleTime"` //操作时间
  13. TenantId string `gorm:"type:varchar(12)" json:"tenantId"` //租户id
  14. }
  15. func (OperationHis) TableName() string {
  16. return "t_sys_handle_his"
  17. }