一、创建接口接收实体类
请求报文样例
request:
{
"pubInfo" :
{
"transactionId" : "",
"transactionTime" : "",
"channelId" : "",
"clientIP" : "",
"opId" : "",
"orgId" : "",
"regionCode" : "",
"countyCode" : ""
},
"busiCode" : "接口编码",
"busiParams" :
{
"orderNo":"",
"refundNo":"",
"refundMsg":""
}
}
二、定义接收方法
@RequestMapping(value = "接口编码", method = { RequestMethod.GET,
RequestMethod.POST }, headers = "content-type=application/json")
@ResponseBody
public String refundNotice(@RequestBody(required = false) RequestBean bean) {
//方法体
}