提交新概念 Tile从服务器

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-31 15:35:12 +08:00
parent 77db4d7d71
commit d67032e1de
1039 changed files with 57738 additions and 412 deletions

View File

@@ -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));
}