Android中retrofit的post方式接口书写? 5
服务器要用application/x-www-form-urlencoded方式提交数据,现在要向服务器提交{"token":"1333QWRRTTQ","orderTy...
服务器要用application/x-www-form-urlencoded方式提交数据,现在要向服务器提交
{
"token":"1333QWRRTTQ ",
"orderType":"1",
"userId":"100001",
"startDate":"20170702",
"endDate":"20170902",
"ware_Id ":"1",
"addId":"2056",
"goodsRebateSum":"300.00",
"orderTotAmt":"1000.50",
"goodsList":[
{
"goodId":"12",
"goodsSum":"30",
"goodsPrice":"100.00",
"goodsTotAmt":"3000.00",
"goodsRebate":"300.00"
}
]
}
post的接口要怎么写?这串数据要怎么转化为body? 展开
{
"token":"1333QWRRTTQ ",
"orderType":"1",
"userId":"100001",
"startDate":"20170702",
"endDate":"20170902",
"ware_Id ":"1",
"addId":"2056",
"goodsRebateSum":"300.00",
"orderTotAmt":"1000.50",
"goodsList":[
{
"goodId":"12",
"goodsSum":"30",
"goodsPrice":"100.00",
"goodsTotAmt":"3000.00",
"goodsRebate":"300.00"
}
]
}
post的接口要怎么写?这串数据要怎么转化为body? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询