sqlite的api,便于内部使用
liuxiaolong
2020-02-28 9b16fecd94fa5248eba825d81050c7de8eca77e3
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