map_info.gen.go 1.1 KB

12345678910111213141516171819202122232425262728
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNameMapInfo = "map_info"
  9. // MapInfo mapped from table <map_info>
  10. type MapInfo struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Stageid string `gorm:"column:stageid" json:"stageid"` // 场景id
  13. Index int32 `gorm:"column:index" json:"index"` // 是否首页 0-不是 1-是
  14. Maptype int32 `gorm:"column:maptype" json:"maptype"` // 地图类型 1:网络拓扑图 2:三维图
  15. Stationid int64 `gorm:"column:stationid" json:"stationid,string"` // 变电站id
  16. Appid int64 `gorm:"column:appid" json:"appid,string"` // 地图所属app id
  17. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  18. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  19. }
  20. // TableName MapInfo's table name
  21. func (*MapInfo) TableName() string {
  22. return TableNameMapInfo
  23. }