Search in sources :

Example 1 with Replay

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;
}
Also used : Replay(com.code.server.db.model.Replay)

Example 2 with Replay

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;
}
Also used : Replay(com.code.server.db.model.Replay) ResponseVo(com.code.server.constant.response.ResponseVo)

Aggregations

Replay (com.code.server.db.model.Replay)2 ResponseVo (com.code.server.constant.response.ResponseVo)1