@RequestMapping(value = "", method = RequestMethod.GET) @ResponseBody public GenericResponse<SearchResult<AlertMsg>> searchLog(SearchAlertMsgReq req) { Search search = req.getSearch(); SearchResult<AlertMsg> searchResult = alertMsgService.searchMsgs(search); return new GenericResponse<SearchResult<AlertMsg>>(searchResult); }
@RequestMapping(value = "/{id}/action/markResolved", method = RequestMethod.POST) @ResponseBody public RestResponse markResolved(@PathVariable("id") String id) { alertMsgService.resolveAlertMsg(id); return new RestResponse(true); }