package model import "gorm.io/gorm" type Hikvision struct { gorm.Model } type Monitor struct { Id int `json:"Id"` Name string `json:"Name"` } type RealTimeInspection struct { Id int `json:"Id"` Name string `json:"Name"` //名称 Location string `json:"Location"` //位置 Event string `json:"Event"` //事件-列3 } type Device struct { Id int `json:"Id"` Name string `json:"Name"` //名称 State int `json:"State"` //状态 Date string `json:"Date"` //事件-列3 } type Visitor struct { Id int `json:"Id"` Name string `json:"Name"` //名称 State int `json:"State"` //状态 Date string `json:"Date"` //事件-列3 } type AlarmList struct { Id int `json:"Id"` AlarmContent string `json:"AlarmContent"` //告警内容 Location string `json:"Location"` //位置 State int `json:"State"` //状态 Date string `json:"Date"` //时间 } func (m *Hikvision) TableName() string { return "hikvision" }