zhangmeng
2024-01-19 01dfd9dc8de7b19f9dfa4284722e01bbd5837801
sysInitApi.go
@@ -1,15 +1,14 @@
package bhomedbapi
import (
   json "github.com/json-iterator/go"
   jsoniter "github.com/json-iterator/go"
)
type SysInitApi struct {
}
//获取服务器本机配置信息
func (api SysInitApi) GetRegInfo() (bool,interface{}){
func (api SysInitApi) GetRegInfo() (bool, interface{}) {
   url := DATA_URL_PREFIX + "/sysinit/getRegInfo"
   netNode := getNetNode(url2Topic(Topic_System_Service, url))
   client := NewClient(WithNodes(netNode))
@@ -19,10 +18,11 @@
      return false, nil
   }
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   var res Result
   if err = json.Unmarshal(body, &res); err != nil {
      return false, nil
   }
   return res.Success, res.Data
}
}