postman 进行传参的时候是每一个值都是都要获取一个token吗????token值怎么获取??????
12 回复
http://localhost:8080/api/banner/getBannerList?bannerChannel=3&pageNo=1&pageNum=10
我请求的时候参数bannerChannel=1就可以访问到,换成2或者别的数就不行????为什么
Content-Type application/x-www-form-urlencoded
token 84f9447d5c92198306857641589a4d0d
*/
@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));
}
添加回复
请先登陆