说明
用于解析完加表文件后,展示目标区哪些表不存在,哪些表已存在
请求地址
/v2/webservice/apply/apply-add-table-precheck
请求方法
Post
请求参数说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| app_id | number | 是 | |
| tables | 结构体数组 | 是 | 加表信息 |
tables
{
zone_id:number;
table_name:string[]
}[]
tables数组元素对象参数说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| zone_id | number | 是 | |
| table_name | string[] | 是 | 要检查是否存在的表 |
请求示例
{
"app_id": 5,
"tables": [
{
"zone_id": 1,
"table_name": [
"ItemAttri"
]
}
]
}
返回参数说明
返回数组,数组元素对象参数说明
| 参数名称 | 类型 | 说明 |
|---|---|---|
| app_id | number | 业务ID |
| zone_id | number | 游戏区ID |
| exist_table | 数组string[] | 此游戏区已存在这些表 |
| not_exist_table | 数组 | 游戏区不存在这些表 |
| zone_table_total | 区已有表数量 |
成功返回
{
"code": 0,
"request_id": "040ff929-d9a7-4798-8fc0-eec9a038e6fa",
"data": [
{
"app_id": 5,
"zone_id": 1,
"zone_name": "chaktest3",
"zone_table_maximum_number": 256,
"zone_table_total": 19,
"exist_table": [
{
"table_name": "ItemAttri",
"table_type": 0
}
],
"not_exist_table": []
}
]
}
失败返回
{
"request_id": "b132571f-a715-4f65-8361-185d4899e22b",
"code": 102,
"message": "游戏区不存在",
"debug_message": {
"app_id": 2,
"zoneID": 100
}
}