liuxiulin 6 mesiacov pred
rodič
commit
b4be9a3143
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      pkg/deviceStatus/deviceStatus.go
  2. 1 1
      pkg/models/ota.go

+ 1 - 1
pkg/deviceStatus/deviceStatus.go

@@ -6,7 +6,7 @@ import (
 
 const (
 	StatusKeyPrefix = "status:device:"
-	InfoKeyPrefix   = "info:device"
+	InfoKeyPrefix   = "info:device:"
 	dataExpires     = 7200
 )
 

+ 1 - 1
pkg/models/ota.go

@@ -8,7 +8,7 @@ import (
 type Ota struct {
 	gorm.Model
 	RecordId    string `gorm:"column:record_id;size:32;index"`
-	Name        string `gorm:"column:name;size:30"`
+	Name        string `gorm:"column:name;size:100"`
 	Url         string `gorm:"column:url;size:200"`
 	Version     string `gorm:"column:version;size:20"`
 	Size        int    `gorm:"column:size;"`