http://localhost:8080/api/user/getNoticeList?userId=1 为什么接收不到参数
/**
* 获取通知列表
*
* @param map userId 用户id
* @return
*/
@At
@Ok("json")
@AdaptBy(type = WhaleAdaptor.class)
@POST
public Object getNoticeList(@Param("..") NutMap map, HttpServletRequest req) {
Cnd paramCnd = Cnd.NEW();
String userId = map.getString("userId");
if (Strings.isNotBlank(userId)) {
paramCnd.and("userId","=",userId);
}
// 数据库查询
List<Iff_user_notice> iffUserNoticeList = iffUserNoticeService.query(paramCnd);
return new Result(0, "获取成功", new NutMap().addv("Iff_user_noticeList",iffUserNoticeList));
}