zhangmeng
2024-01-19 bb8b8ac4ce9d4a5566f271cb5fdc05e77ab331c6
param.go
@@ -1,8 +1,8 @@
package bhomeclient
import (
   "encoding/json"
   "errors"
   jsoniter "github.com/json-iterator/go"
)
type Request struct {
@@ -54,6 +54,7 @@
}
func (r *Request) BindJSON(v interface{}) error {
   var json = jsoniter.ConfigCompatibleWithStandardLibrary
   return json.Unmarshal(r.Body, &v)
}