|
@@ -6,10 +6,7 @@ import com.zanxiang.game.data.serve.pojo.vo.AccountListVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.AgentListVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.GameListVO;
|
|
|
import com.zanxiang.game.data.serve.pojo.vo.PitcherListVO;
|
|
|
-import com.zanxiang.game.data.serve.service.IAccountListService;
|
|
|
-import com.zanxiang.game.data.serve.service.IAgentListService;
|
|
|
-import com.zanxiang.game.data.serve.service.IGameListService;
|
|
|
-import com.zanxiang.game.data.serve.service.IPitcherListService;
|
|
|
+import com.zanxiang.game.data.serve.service.*;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -43,6 +40,9 @@ public class ChoiceListController {
|
|
|
@Autowired
|
|
|
private IPitcherListService pitcherListService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IVipLevelService vipLevelService;
|
|
|
+
|
|
|
@ApiOperation(value = "所有游戏列表")
|
|
|
@PreAuthorize(permissionKey = "gameData:choice:gameList")
|
|
|
@PostMapping("/game/list")
|
|
@@ -71,4 +71,11 @@ public class ChoiceListController {
|
|
|
return ResultVO.ok(pitcherListService.getPitcherList(dto));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "最大VIP等级")
|
|
|
+ @PreAuthorize(permissionKey = "gameData:choice:maxVipLevel")
|
|
|
+ @GetMapping("/vip/level")
|
|
|
+ public ResultVO<Integer> getMaxVipLevel() {
|
|
|
+ return ResultVO.ok(vipLevelService.getMaxVipLevel());
|
|
|
+ }
|
|
|
+
|
|
|
}
|