| | |
| | | String userType) { |
| | | try { |
| | | if (StringUtils.isEmpty(chatroomId) || StringUtils.isEmpty(senderId) || StringUtils.isEmpty(content)) { |
| | | return new Result(false, "参数错误"); |
| | | return new Result(false, "参数错误"); |
| | | } |
| | | return service.doSendMessage(chatroomId, senderId, imgPath, alias, content, type, userType); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return new Result(false, "系统异常"); |
| | | return new Result(false, "系统异常"); |
| | | } |
| | | } |
| | | |
| | |
| | | return service.getHistoryMes(chatroomId, pageNum); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return new Result(false, "系统异常"); |
| | | return new Result(false, "系统异常"); |
| | | } |
| | | } |
| | | |
| | |
| | | return service.latestMsg(chatroomId); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | return new Result(false, "系统异常"); |
| | | return new Result(false, "系统异常"); |
| | | } |
| | | } |
| | | } |