information.go 520 B

123456789101112131415161718192021
  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. InformationType string `json:"InformationType"` //信息发布类型
  14. Vale int `json:"UseState"` //占比
  15. }
  16. func (m *Information) TableName() string {
  17. return "information"
  18. }