| | |
| | | package com.dsh.guns.modular.system.controller.code; |
| | | |
| | | import com.dsh.course.feignClient.communityWorldCup.Model.WorldCupRecords; |
| | | import com.dsh.course.feignClient.communityWorldCup.Model.*; |
| | | import com.dsh.course.feignClient.communityWorldCup.WorldCupClient; |
| | | import com.dsh.guns.modular.system.util.ResultUtil; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/openWorldCupGameStatisticsInfo") |
| | | public String openWorldCupGameStatisticsInfo(Model model, Integer id){ |
| | | model.addAttribute("id", id); |
| | | return PREFIX + "worldCupGameStatisticsInfo.html"; |
| | | } |
| | | |
| | | |
| | | @RequestMapping("/openWorldCupGameStatisticsListInfo") |
| | | public String openWorldCupGameStatisticsListInfo(Model model, Integer id){ |
| | | model.addAttribute("id", id); |
| | | return PREFIX + "worldCupGameStatisticsListInfo.html"; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取排行榜列表数据 |
| | | * @param worldCupRecords |
| | |
| | | public Map<String, Object> worldCupRecordsList(WorldCupRecords worldCupRecords){ |
| | | return worldCupClient.worldCupRecordsList(worldCupRecords); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取比赛统计 |
| | | * @param worldCupGameStatistics |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCupGameStatistics") |
| | | public Map<String, Object> worldCupGameStatistics(WorldCupGameStatistics worldCupGameStatistics){ |
| | | return worldCupClient.worldCupGameStatistics(worldCupGameStatistics); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取比赛统计详情列表 |
| | | * @param worldCupGameStatisticsInfoList |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCupGameStatisticsInfoList") |
| | | public Map<String, Object> worldCupGameStatisticsInfoList(WorldCupGameStatisticsInfoList worldCupGameStatisticsInfoList){ |
| | | return worldCupClient.worldCupGameStatisticsInfoList(worldCupGameStatisticsInfoList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取单场参赛数据详情列表 |
| | | * @param worldCupGameStatisticsListInfo |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/worldCupGameStatisticsListInfo") |
| | | public Map<String, Object> worldCupGameStatisticsListInfo(WorldCupGameStatisticsListInfo worldCupGameStatisticsListInfo){ |
| | | return worldCupClient.worldCupGameStatisticsListInfo(worldCupGameStatisticsListInfo); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改比分 |
| | | * @param changeScore |
| | | * @return |
| | | */ |
| | | @ResponseBody |
| | | @PostMapping("/changeScore") |
| | | public ResultUtil changeScore(ChangeScore changeScore){ |
| | | worldCupClient.changeScore(changeScore); |
| | | return ResultUtil.success(); |
| | | } |
| | | } |