新增处理
This commit is contained in:
13
main.go
13
main.go
@@ -21,7 +21,7 @@ func init() {
|
||||
viper.InitViper()
|
||||
logger.InitLogger()
|
||||
gorm.InitGorm()
|
||||
//gorm.AutoMigrate(global.Db)
|
||||
gorm.AutoMigrate(global.Db)
|
||||
}
|
||||
|
||||
func main() {
|
||||
@@ -77,10 +77,15 @@ func main() {
|
||||
// 客户端回复 {"Type":"ota","State":"1"}
|
||||
|
||||
// 开始实时上传数据
|
||||
// 服务端发 {"Type":"start"}
|
||||
// 客户端回复 {"Type":"start","Data":"{\"Type\":\"ota\",\"Ip\":\"192.168.31.1:80\",\"File\":\"/xxx/1.bin\"}"}
|
||||
// 服务端发 {\"Type\":\"start\"}
|
||||
// 客户端回复 {"Type":"start","Data":"{\"Type\":\"ota\",\"Ip\":\"192.168.31.1:80\",\"File\":\"/xxx/1.bin\"}"}
|
||||
|
||||
// 停止实时上传数据
|
||||
// 服务端发 {"Type":"stop"}
|
||||
// 服务端发 {\"Type\":\"stop\"}
|
||||
// 客户端回复 {"Type":"stop","State":"1"}
|
||||
|
||||
// 修改IP端口
|
||||
// 服务端发 {\"Type\":\"server\",\"Ip\":\"1222\",\"Port\":\"1222\"}
|
||||
// 客户端回复 {"Type":"server","State":"1"}
|
||||
|
||||
//{\n\t"Type":"ping"}
|
||||
|
||||
Reference in New Issue
Block a user