@Ok("json:{actived:'id|username',ignoreNull:true}")
public Object getUser() {
List users=permissionService.getUsers();
NutMap re=new NutMap();
if(users.size()>0) {
re.setv("ok", true).setv("data", users);
}else {
re.setv("ok", false).setv("msg", "未检索到用户");
}
System.out.println(re.toString());
return re;
}
8 回复
tostring打印的都是正常的全部信息。但是前台接收的就是空的
@POST
@At
@RequiresPermissions({"user_role"})
@Ok("json:{actived:'id|username',ignoreNull:true}")
public Object getUser() {
List users=permissionService.getUsers();
NutMap re=new NutMap();
if(users.size()>0) {
re.setv("ok", true).setv("data", users);
}else {
re.setv("ok", false).setv("msg", "未检索到用户");
}
System.out.println(re.toString());
return re;
}
添加回复
请先登陆