use of com.code.server.db.model.Replay in project summer by foxsugar.
the class ReplayService method save.
public Replay save(Replay replay) {
Replay r = replayDao.save(replay);
r.setId(replay.getId());
return r;
}
use of com.code.server.db.model.Replay in project summer by foxsugar.
the class GameUserService method getReplay.
public int getReplay(KafkaMsgKey msgKey, long id) {
Replay r = SpringUtil.getBean(ReplayService.class).getReplay(id);
if (r == null) {
return ErrorCode.REPLAY_NOT_EXIST;
}
Map<String, Object> result = new HashMap<>();
result.put("data", r.getData());
ResponseVo vo = new ResponseVo("userService", "getReplay", r.getData());
sendMsg(msgKey, vo);
return 0;
}
Aggregations