HiNet中POST请求的data参数怎么传递
来源:3-7 扩展hi_net添加对dio的支持

Quincy515
2021-05-10
curl -X 'POST' \
'https://api.devio.org/uapi/api' \
-H 'accept: application/json' \
-H 'Content-Type: application/json-patch+json' \
-d '{
"numberPerPage": 10,
"currentPage": 1,
"sortList": [
{
"columnName": "CreatedUTC",
"sortOrder": 0
}
],
"filters": [
{
"key": "IsDeleted",
"filterType": 2,
"value": "false"
}
]
}'
老师请问下这种 -d 的参数怎么在 BaseRequest 使用
写回答
1回答
-
通过调用BaseRequest的add(String k, Object v)方法,添加参数,然后在DioAdapter中会自动获取data参数。
00
相似问题