请求地址

/v2/webservice/apply/apply-delete-table

请求方法

Post

请求参数说明

参数名称 类型 是否必填 说明
app_id number
tables 对象数组
memo string 备注信息
attention_man string[] 关注人/协作人, 允许其他开发角色执行此单据生成的任务,(不需要指定项目管理员为关注人, 因为项目管理员本身就拥有执行任务的权限)

tables数组元素字段说明

参数名称 类型 是否必填 说明
zone_id number
table_name string

请求示例

{
    "app_id": 2,
    "tables": [
        {
            "zone_id": 4,
            "table_name": "ListTableDemo"
        }
    ]
}

返回参数说明

参数名称 类型 说明
check_result number 审核结果,0表示成功
apply_list 对象数组 单据列表
task_list 对象数组 任务列表

apply_list数组元素字段说明

参数名称 类型 说明
apply_id number 单据ID
app_id number 项目ID
zone_id number 区ID
table_name number 表名

task_list数组元素字段说明

参数名称 类型 说明
apply_id number 单据ID
result number 创建任务结果,0表示成功
task_id number 任务ID

成功返回

{
    "code": 0,
    "request_id": "6243c442-a48c-4c71-bf43-c3d91bb1f522",
    "data": {
        "check_result": 0,
        "app_id": 5,
        "apply_list": [
            {
                "apply_id": 76033,
                "apply_type_text": "表删除",
                "zone_id": "2",
                "app_id": 5,
                "table_name": "DetailTable",
                "execute_status": 1,
                "table_type": 0,
                "tdr": "-1",
                "apply_type": 1
            }
        ],
        "task_list": [
            {
                "apply_id": 76033,
                "apply_type_text": "表删除",
                "zone_id": "2",
                "app_id": 5,
                "table_name": "DetailTable",
                "table_type": 0,
                "apply_type": 1,
                "task_id": 168854,
                "result": 0,
                "msg": "审核成功, 请查看生成的任务"
            }
        ],
        "apply_user": "v_jxlin",
        "check_user": "v_jxlin",
        "apply_begin_time": "2025-08-12 15:48:15",
        "apply_finishi_time": "2025-08-12 15:48:15",
        "check_finish_time": "2025-08-12 15:48:16",
        "msg": "提交申请成功, 请查看审核结果或任务执行状态",
        "execute_task_user": "v_jxlin",
        "is_auto_check": 1
    }
}

失败返回

{
"request_id": "353d5fce-5716-42c7-a75e-4c25a2d002e6",
    "code": 102,
    "message": "表不存在",
    "debug_message": [
        "DetailTable"
    ]
}

results matching ""

    No results matching ""