예제 #1
0
 @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);
 }
예제 #2
0
 @RequestMapping(value = "/{id}/action/markResolved", method = RequestMethod.POST)
 @ResponseBody
 public RestResponse markResolved(@PathVariable("id") String id) {
   alertMsgService.resolveAlertMsg(id);
   return new RestResponse(true);
 }