| | |
| | | * @param key
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "readArticle", method = RequestMethod.POST)
|
| | | public void readArticle(AcceptData acceptData, String id, PrintWriter out) {
|
| | | if(StringUtil.isNullOrEmpty(id)) {
|
| | | out.print(JsonUtil.loadFalseResult("id不能为空"));
|
| | | return;
|
| | | }
|
| | | articleOfficialService.updateReadNum(id);
|
| | | out.print(JsonUtil.loadTrueResult("操作成功"));
|
| | | }
|
| | | |
| | | |
| | | /**
|
| | | * 文章搜索
|
| | | * @param acceptData
|
| | | * @param page
|
| | | * @param key
|
| | | * @param out
|
| | | */
|
| | | @RequestMapping(value = "searchArticle", method = RequestMethod.POST)
|
| | | public void searchArticle(AcceptData acceptData, Integer page, String key, PrintWriter out) {
|
| | | getArticleList(acceptData, page, key, true, out);
|