sqlite的api,便于内部使用
liuxiaolong
2019-12-12 a47ddaef3711c5a34b24886a7639c96eb4e354df
syssetApi.go
@@ -137,6 +137,25 @@
   return res.Success
}
func (api SysSetApi) UpdateChannelCount(pollChannelCount int, videoChannelCount int) bool{
   url := api.getBasicUrl() + DATA_URL_PREFIX + "/pollConfig/updateChannelCount"
   client := NewClient()
   paramBody :=make(map[string]interface{},0)
   paramBody["pollChannelCount"] = pollChannelCount
   paramBody["videoChannelCount"] = videoChannelCount
   body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
   if err != nil {
      return false
   }
   var res Result
   if err = json.Unmarshal(body, &res); err != nil {
      return false
   }
   return res.Success
}
func (api SysSetApi) AlarmEdit(paramBody map[string]interface{}) (bool,interface{}){
   url := api.getBasicUrl() + DATA_URL_PREFIX + "/sysset/alarmEdit"
   client := NewClient()
@@ -237,11 +256,11 @@
}
func (api SysSetApi) GetRemoteFullServerInfo() (flag bool,d interface{}){
   url := api.getBasicUrl() + DATA_URL_PREFIX + "/sysset/getFullDevInfo"
func (api SysSetApi) GetRemoteFullServerInfo(headers map[string]string) (flag bool,d interface{}){
   url := api.getBasicUrl() + DATA_URL_PREFIX + "/sysset/getDevInfo"
   client := NewClient()
   body, err := client.DoGetRequest(url, nil, nil)
   body, err := client.DoGetRequest(url, nil, headers)
   if err != nil {
      return false, nil
   }