mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-26 10:16:14 +00:00
提交新概念 Tile从服务器
This commit is contained in:
@@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
@Api(value = "JNGameDemo - API", tags = {"WorldCard - API"})
|
||||
@@ -67,7 +68,15 @@ public class DemoController {
|
||||
@ApiOperation(value = "获取Tile服务器连接")
|
||||
@GetMapping("/sync/tile/server")
|
||||
public NewsContext<TileServerInfo> getTileServer(Integer index){
|
||||
return NewsContext.onSuccess("查询成功",TileSyncAction.getTileInfo(index));
|
||||
return NewsContext.onSuccess("查询成功",TileSyncAction.getTileInfoMaster(index));
|
||||
}
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name="index",value="所需Tile区域Id"),
|
||||
})
|
||||
@ApiOperation(value = "获取所有Tile服务器连接组")
|
||||
@GetMapping("/sync/tile/servers")
|
||||
public NewsContext<List<TileServerInfo>> getTilesServer(Integer index){
|
||||
return NewsContext.onSuccess("查询成功",TileSyncAction.getTileInfos(index));
|
||||
}
|
||||
|
||||
|
||||
|
Submodule JisolGameServer/JNGame updated: c83997da2e...ae4522c3f5
Reference in New Issue
Block a user