package app import "time" type Event struct { ID int `json:"id" gorm:"column:id"` EventType string `json:"eventType" gorm:"column:event_type"` EventCode string `json:"eventCode" gorm:"column:event_code"` MacAddress string `json:"macAddress" gorm:"column:mac_address"` CreatedAt time.Time `json:"startTime" gorm:"column:start_time"` HandleTime time.Time `json:"handleTime" gorm:"column:handle_time"` HandleBy int `json:"handleBy" gorm:"column:handle_by"` } // TableName Event 表名 func (Event) TableName() string { return "event" }