1234567891011121314151617181920 |
- package dao
- import (
- "time"
- )
- // OperationHis 操作记录
- type OperationHis struct {
- ID int `gorm:"primary_key" json:"id"` //编号
- OperationType int `gorm:"type:int" json:"operationType"` //操作类型
- ModuleType int `gorm:"type:int" json:"moduleType"` //操作类型
- HandleContent string `gorm:"type:varchar(1000)" json:"handleContent"` //设备序编码
- HandleUserId string `gorm:"type:varchar(255)" json:"handleUserId"` //设备序编码
- HandleTime time.Time `gorm:"type:timestamp;default CURRENT_TIMESTAMP" json:"handleTime"` //设备序编码
- TenantId string `gorm:"type:varchar(12)" json:"tenantId"` //租户id
- }
- func (OperationHis) TableName() string {
- return "t_sys_handle_his"
- }
|