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) }