zhangmeng
2024-01-19 01dfd9dc8de7b19f9dfa4284722e01bbd5837801
voiceApi.go
@@ -2,11 +2,10 @@
import (
   "basic.com/pubsub/protomsg.git"
   json "github.com/json-iterator/go"
   jsoniter "github.com/json-iterator/go"
)
type VoiceApi struct{
type VoiceApi struct {
}
//查找所有算法
@@ -16,9 +15,11 @@
   var voiceArr []protomsg.Voice
   client := NewClient(WithNodes(netNode))
   respBody, err := client.DoGetRequest(url, nil, nil)
   if err !=nil {
   if err != nil {
      return false, nil
   }
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   var res Result
   if err = json.Unmarshal(respBody, &res); err != nil {
      logPrint(err)
@@ -27,4 +28,4 @@
   bytes, _ := json.Marshal(res.Data)
   err = json.Unmarshal(bytes, &voiceArr)
   return res.Success, voiceArr
}
}