zhangmeng
2024-01-19 01dfd9dc8de7b19f9dfa4284722e01bbd5837801
appApi.go
@@ -2,11 +2,10 @@
import (
   "basic.com/pubsub/protomsg.git"
   json "github.com/json-iterator/go"
   jsoniter "github.com/json-iterator/go"
)
type AppApi struct{
}
type AppWithShop struct {
   protomsg.App
@@ -29,6 +28,7 @@
      return nil
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(respBody, &res); err != nil {
      logPrint(err)
      return nil
@@ -53,6 +53,7 @@
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(body, &res); err != nil {
      return false
   }
@@ -72,6 +73,7 @@
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(body, &res); err != nil {
      return false, err.Error()
   }
@@ -91,6 +93,7 @@
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(body, &res); err != nil {
      return false, err.Error()
   }
@@ -111,6 +114,7 @@
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(body, &res); err != nil {
      return false, err.Error()
   }
@@ -144,6 +148,7 @@
      return nil
   }
   var res Result
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   if err = json.Unmarshal(respBody, &res); err != nil {
      logPrint(err)
      return nil