hikvision.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package model
  2. import "gorm.io/gorm"
  3. type Hikvision struct {
  4. gorm.Model
  5. }
  6. type Monitor struct {
  7. Id int `json:"Id"`
  8. Name string `json:"Name"`
  9. }
  10. type RealTimeInspection struct {
  11. Id int `json:"Id"`
  12. Name string `json:"Name"` //名称
  13. Location string `json:"Location"` //位置
  14. Event string `json:"Event"` //事件-列3
  15. }
  16. type Device struct {
  17. Id int `json:"Id"`
  18. Name string `json:"Name"` //名称
  19. State int `json:"State"` //状态
  20. Date string `json:"Date"` //事件-列3
  21. }
  22. type Visitor struct {
  23. Id int `json:"Id"`
  24. Name string `json:"Name"` //名称
  25. State int `json:"State"` //状态
  26. Date string `json:"Date"` //事件-列3
  27. }
  28. type AlarmList struct {
  29. Id int `json:"Id"`
  30. AlarmContent string `json:"AlarmContent"` //告警内容
  31. Location string `json:"Location"` //位置
  32. State int `json:"State"` //状态
  33. Date string `json:"Date"` //时间
  34. }
  35. func (m *Hikvision) TableName() string {
  36. return "hikvision"
  37. }