liuxiaolong
2019-09-28 51a9c5267092d0e377dbb3d80d78d0555e6e94f9
controllers/syssetcont.go
@@ -16,6 +16,8 @@
   Id string  `json:"id"`
   AlarmIp string `json:"alarm_ip,omitempty" example:"192.168.1.182"`
   AlarmPort int `json:"alarm_port,omitempty" example:"22122"`
   AlarmThresholdType int `json:"alarm_threshold_type"`//报警阈值类型设置:1:按最高分,2:按阈值以上
   AlarmThreshold int `json:"alarm_threshold"`//报警阈值
   WebPicIp string `json:"web_pic_ip,omitempty" example:""`
   WebPicPort int `json:"web_pic_port,omitempty" example:"22122"`
   EsPicIp string `json:"es_pic_ip,omitempty" example:""`
@@ -32,9 +34,9 @@
type Gb28181ConfigVo struct {
   Id string `json:"Id"`
   ServerIp string `json:"ServerIp" example:"国标服务器IP"`
   ServerPort int `json:"ServerPort" example:"服务器端口:8060"`
   PublicId string `json:"PublicId" example:"国标服务器Id"`
   GbServerPort int `json:"GbServerPort" example:"国标服务端口:7060"`
   ServerPort int `json:"ServerPort" example:"平台服务端口:7060"`
   PublicId string `json:"PublicId" example:"平台服务Id"`
   GbServerPort int `json:"GbServerPort" example:"国标服务端口:8060"`
   IsAuth bool `json:"IsAuth" example:"是否开启鉴权:true"`
   Password string `json:"Password" example:"密码"`
   UpdateTime string `json:"UpdateTime"`
@@ -153,7 +155,15 @@
      resData["ip"] = ipv4
      resData["subMask"] = mask
      resData["gateway"] = gateway
      // 存在
      resData["deviceNum"] = config.Server.DeviceNum
      resData["deviceType"] = config.Server.DeviceType
      resData["deviceSerialNum"] = config.Server.DeviceSerialNum
      resData["masterVersion"] = config.Server.MasterVersion
      resData["webVersion"] = config.Server.WebVersion
      resData["channelCount"] = config.Server.ChannelCount
      resData["diskCount"] = config.Server.DiskCount
      util.ResponseFormat(c, code.Success, resData)
   }
}