/**
* 批量删除私信。
*/
@RequestMapping(value = "/delete", method = {RequestMethod.GET,RequestMethod.POST})
public ResponseEntity
delete(HttpServletRequest request) {
// 待删除的私信ID列表
String messageIds = ServletRequestUtils.getStringParameter(request, "ids", "");
String[] messageList=messageIds.toString().split(",");
List messageIdList = Arrays.asList(messageList);//数组转换成list
logger.info("------------"+messageIds);
logger.info("------------"+messageList[0]);
try {
boolean opStatus = messageManager.delete(messageIdList);
logger.info("删除私信:opStatus={}", opStatus);
return this.okResponse(opStatus);
} catch (Exception e) {
logger.error("添加私信时发生异常, Cause: ", e);
return this.errorResponse(e.getMessage());
}
}