sqlite的api,便于内部使用
liuxiaolong
2020-11-04 e81e3a18b5f46dbe5bd6bceedc4b55876dcaf1a8
soApi.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 soInfos
   }
   bytes, _ := json.Marshal(res.Data)
@@ -53,7 +52,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