- mtwmapi.OrderGetOrderDetail2

This commit is contained in:
gazebo
2019-05-12 18:15:47 +08:00
parent 9620931eec
commit 46ee522bbb
5 changed files with 92 additions and 14 deletions

View File

@@ -486,6 +486,7 @@ func Struct2FlatMap(obj interface{}) map[string]interface{} {
return FlatMap(m)
}
// !!! 此函数好像不支持struct是内嵌结构的
func Map2StructByJson(inObj interface{}, outObjAddr interface{}, weaklyTypedInput bool) (err error) {
decoder, _ := mapstructure.NewDecoder(&mapstructure.DecoderConfig{
TagName: "json",