请求地址
/v2/webservice/apply/conflit-check
请求方法
Post
请求参数说明
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| app_id | number | 是 | |
| tables | 对象数组 | 是 | |
| apply_type | number | 是 | 单据类型 |
示例
{
"app_id":2,
"tables":[
{
"zone_id":3,
"table_names":["table_list1", "table_list2"]
},
{
"zone_id":4,
"table_names":["table_list1"]
}
],
"apply_type":1
}
返回参数说明, 返回数组, 数组item对象结构:
| 参数名称 | 类型 | 说明 |
|---|---|---|
| zone_id | number | number |
| table_name | string | 表名称 |
| conflit_applys | object, apply_id是单据ID | 冲突的申请单据 (不可忽略) |
| conflit_tasks | object id是任务ID | 冲突的任务(不可忽略) |
成功返回
{
"code": 0,
"request_id": "e6d5bfe5-8fc0-4478-ac4d-87b931c15f30",
"data": [
{
"zone_id": 3,
"table_name": "table_list1",
"conflit_applys": [
{
"apply_id": 5988,
"apply_type_text": "表添加",
"zone_id": "3",
"app_id": 2,
"table_name": "table_list1",
"execute_status": 0,
"table_type": 0,
"apply_type": 0
}
],
"conflit_tasks": []
},
{
"zone_id": 3,
"table_name": "table_list2",
"conflit_applys": [],
"conflit_tasks": [
{
"id": 5664,
"app_id": 2,
"zone_id": 3,
"type": 283,
"status": 1,
"reason": 0,
"num": 0,
"id_name": "table_list2",
"data": "proxy@;tcapsvr@DM84#1",
"memo": "AddTableManual",
"create_user": "tcaplus",
"create_time": "2022-05-11T04:11:46.000Z",
"update_time": "2022-05-11T04:11:46.000Z",
"can_redo": 1,
"can_suspend": 1,
"can_rollback": 1,
"set_id": 1,
"extend_info": "",
"max_concurrent_count": 10
}
]
}
]
}
29 \"app_id\": 2,
30 \"zone_id\": 3,
31 \"type\": 283,
32 \"status\": 1,
33 \"reason\": 0,
34 \"num\": 0,
35 \"id_name\": \"table_list2\",
36 \"data\": \"proxy@;tcapsvr@DM84#1\",
37 \"memo\": \"AddTableManual\",
38 \"create_user\": \"tcaplus\",
39 \"create_time\": \"2022-05-11T04:11:46.000Z\",
40 \"update_time\": \"2022-05-11T04:11:46.000Z\",
41 \"can_redo\": 1,
42 \"can_suspend\": 1,
43 \"can_rollback\": 1,
44 \"set_id\": 1,
45 \"extend_info\": \"\",
46 \"max_concurrent_count\": 10
47 }
48 ]
49 }
50 ]
51}
失败返回
{width="0.20833333333333334in" height="0.20833333333333334in"}
1{
2
3}