含Map参数接口
java接口:public int listProblemsNumber(@RequestBody Map map,@RequestParam int zid) {}
postman参数如下:
post
Headers
Content-Type application/json
Body
raw
{description: "",
hosts: "",
isacknowledge: "",
plats: "2,4,16,22,28,36,37",
severities: "",
timeFrom: "",
timeTill: ""}
含List<Object>接口
java接口:public @ResponseBody boolean updateWarnrankSound(@RequestBody List<WarnRankBean> list){}
postman参数如下:
post
Headers
Content-Type application/json
Body
raw
[
{
"objectid": "1",
"levelname": "No SNMP data collection",
"level": 3,
"colour": 1,
"sound": 1
},
{
"objectid": "2",
"levelname": "No SNMP data collection",
"level": 3,
"colour": 1,
"sound": 1
}
]
postman测试Map参数、List接口
最新推荐文章于 2024-04-27 22:00:00 发布