information.go 549 B

12345678910111213141516171819202122
  1. package model
  2. import "gorm.io/gorm"
  3. type Information struct {
  4. gorm.Model
  5. }
  6. type LargeController struct {
  7. Id int `json:"id"`
  8. DeviceName string `json:"DeviceName"` //设备名称
  9. UseState int `json:"UseState"` //设备使用状态
  10. }
  11. type InformationCount struct {
  12. Id int `json:"id"`
  13. DeviceName string `json:"DeviceName"` //设备名称
  14. State int `json:"State"` //设备使用状态
  15. Date string `json:"Date"` //日期
  16. }
  17. func (m *Information) TableName() string {
  18. return "information"
  19. }