|
@@ -6,6 +6,8 @@ import com.zanxiang.game.module.manage.pojo.params.GameMergeServerParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameServerAddUpdateParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameServerAddUpdateParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameServerListParam;
|
|
import com.zanxiang.game.module.manage.pojo.params.GameServerListParam;
|
|
import com.zanxiang.game.module.manage.pojo.vo.GameServerListVO;
|
|
import com.zanxiang.game.module.manage.pojo.vo.GameServerListVO;
|
|
|
|
+import com.zanxiang.game.module.manage.pojo.vo.GameServerVO;
|
|
|
|
+import com.zanxiang.game.module.manage.pojo.vo.GameSupperVO;
|
|
import com.zanxiang.game.module.manage.service.IGameServerService;
|
|
import com.zanxiang.game.module.manage.service.IGameServerService;
|
|
import com.zanxiang.game.module.manage.service.IGameSupperService;
|
|
import com.zanxiang.game.module.manage.service.IGameSupperService;
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
@@ -18,7 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.Map;
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author : lingfeng
|
|
* @author : lingfeng
|
|
@@ -72,16 +74,16 @@ public class GameServerController {
|
|
@ApiOperation(value = "获取合服超父游戏列表")
|
|
@ApiOperation(value = "获取合服超父游戏列表")
|
|
@GetMapping(value = "/game/supper/list")
|
|
@GetMapping(value = "/game/supper/list")
|
|
@PreAuthorize(permissionKey = "manage:gameServer:gameSupperList")
|
|
@PreAuthorize(permissionKey = "manage:gameServer:gameSupperList")
|
|
- @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
|
- public ResultVO<Map<Long, String>> getGameSupperList() {
|
|
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameSupperVO.class)})
|
|
|
|
+ public ResultVO<List<GameSupperVO>> getGameSupperList() {
|
|
return ResultVO.ok(gameSupperService.getGameSupperList());
|
|
return ResultVO.ok(gameSupperService.getGameSupperList());
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取未参与合服的区服列表")
|
|
@ApiOperation(value = "获取未参与合服的区服列表")
|
|
@GetMapping(value = "/unMerge/server/list")
|
|
@GetMapping(value = "/unMerge/server/list")
|
|
@PreAuthorize(permissionKey = "manage:gameServer:unMergeServer")
|
|
@PreAuthorize(permissionKey = "manage:gameServer:unMergeServer")
|
|
- @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
|
- public ResultVO<Map<String, String>> unMergeServerList(@RequestParam Long gameId) {
|
|
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameServerVO.class)})
|
|
|
|
+ public ResultVO<List<GameServerVO>> unMergeServerList(@RequestParam Long gameId) {
|
|
return ResultVO.ok(gameServerService.unMergeServerList(gameId));
|
|
return ResultVO.ok(gameServerService.unMergeServerList(gameId));
|
|
}
|
|
}
|
|
}
|
|
}
|