feat: body转换增加转换
This commit is contained in:
@ -61,6 +61,8 @@ func initRequestConfig(reqConfig *define.Request) {
|
|||||||
case io.Reader:
|
case io.Reader:
|
||||||
dataContent, _ := io.ReadAll(val)
|
dataContent, _ := io.ReadAll(val)
|
||||||
serialize.JSON.UnmarshalWithNumberIgnoreError(dataContent, &bodyMap)
|
serialize.JSON.UnmarshalWithNumberIgnoreError(dataContent, &bodyMap)
|
||||||
|
default:
|
||||||
|
serialize.JSON.TransitionIgnoreError(reqConfig.Body, &bodyMap)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user