|
|
|
@@ -50,6 +50,21 @@ public class WxGameController extends BaseController { |
|
|
|
return new ResultData(record); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("获取游戏信息") |
|
|
|
@GetMapping("getOneGame") |
|
|
|
public ResultData getOneGame(@ModelAttribute WxGame wxGame) { |
|
|
|
if (wxGame == null) wxGame = new WxGame(); |
|
|
|
wxGame.setTenantId(getTenantId()); |
|
|
|
wxGame.setStatus(EnumGameStatus.STATUS_THROW_IN.getCode()); |
|
|
|
// 因为有算法要求,分成两步获取 |
|
|
|
WxGame record = wxGameService.getOne(wxGame); |
|
|
|
if (record == null) { |
|
|
|
return new ResultData(ErrorCode.GAME_NOT_FOUND); |
|
|
|
} |
|
|
|
|
|
|
|
return new ResultData(record); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("添加游戏参与记录") |
|
|
|
@PostMapping("addActionLog") |
|
|
|
|