xu 7 mēneši atpakaļ
vecāks
revīzija
9860f2190b
2 mainītis faili ar 3009 papildinājumiem un 290 dzēšanām
  1. 3007 290
      lc_tunnel.sql
  2. 2 0
      server/dao/tunnel.go

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 3007 - 290
lc_tunnel.sql


+ 2 - 0
server/dao/tunnel.go

@@ -16,6 +16,8 @@ type Tunnel struct {
 	SwitchType  string        `json:"switchType" gorm:"comment:开关类型"`
 	LampValue1  int           `json:"lampValue1" gorm:"comment:1路单灯值"`
 	LampValue2  int           `json:"lampValue2" gorm:"comment:2路单灯值"`
+	Longitude   float64       `json:"longitude" gorm:"comment:经度"`
+	Latitude    float64       `json:"latitude" gorm:"comment:纬度"`
 	TunnelTime  TunnelTime    `json:"tunnelTime" gorm:"foreignKey:TimeId"`
 	Users       []SysUser     `json:"users" gorm:"many2many:user_tunnel"`
 	Devices     []Device      `json:"devices" gorm:"foreignKey:TunnelId"`