@RequestMapping(value = "/cdn/brand-list.json", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
@ResponseBody
public String getPhoneBrand() {
JSONObject output = new JSONObject();
JSONObject server = new JSONObject();
output.put("result", server);
try {
List<BrandListVo> list = phoneInfoService.findPhoneLetterList();
output.put("data", list);
server.put("code", SvrResult.OK.getCode());
server.put("msg", SvrResult.OK.getMsg());
} catch (Exception e) {
server.put("code", SvrResult.ERROR.getCode());
server.put("msg", SvrResult.ERROR.getMsg());
logger.error("Exception", e);
}
return output.toJSONString(jsonStyle);
}
PhoneBaseInfoController.java 文件源码
java
阅读 54
收藏 0
点赞 0
评论 0
项目:sjk
作者:
评论列表
文章目录