sqlite的api,便于内部使用
liuxiaolong
2020-03-06 f2cf47ba9fdf075b374ddb9deebdd9ee4436f17e
taskApi.go
@@ -3,7 +3,6 @@
import (
   "basic.com/pubsub/protomsg.git"
   "encoding/json"
   "fmt"
   "strconv"
)
@@ -36,7 +35,7 @@
   }
   var res Result
   if err = json.Unmarshal(respBody, &res); err != nil {
      fmt.Println(err)
      logPrint(err)
      return taskInfos
   }
   bytes, _ := json.Marshal(res.Data)
@@ -56,7 +55,7 @@
   }
   var res Result
   if err = json.Unmarshal(respBody, &res); err != nil {
      fmt.Println(err)
      logPrint(err)
      return taskInfos
   }
   bytes, _ := json.Marshal(res.Data)
@@ -100,7 +99,7 @@
   }
   var res Result
   if err = json.Unmarshal(respBody, &res); err != nil {
      fmt.Println(err)
      logPrint(err)
      return false,nil
   }
   return res.Success,res.Data