This is page 4 of 5. Use http://codebase.md/ocean-zhc/dolphinscheduler-mcp?lines=true&page={x} to view the full context. # Directory Structure ``` ├── .env.example ├── .gitignore ├── CHANGELOG.md ├── docker-compose.yml ├── Dockerfile ├── docs │ ├── api.md │ └── installation.md ├── ds-restfuleapi-v1.json ├── example_mcp.py ├── examples │ ├── list_projects.py │ ├── manage_resources.py │ ├── simple_client.py │ └── start_workflow.py ├── install_dev.sh ├── mcp-openapi-split │ ├── base │ │ └── 01_base.json │ ├── paths │ │ ├── 01_azure_datafactory_api.json │ │ ├── 02_dynamic_task_type_api.json │ │ ├── 03_kubernetes_namespace_api.json │ │ ├── 04_project_worker_group_api.json │ │ ├── 05_ui_plugin_api.json │ │ ├── 06_worker_group_api.json │ │ ├── 07_project_preference_api.json │ │ ├── 08_task_definition_api.json │ │ ├── 09_task_instance_api.json │ │ ├── 10_task_analysis_api.json │ │ ├── 11_task_group_api.json │ │ ├── 12_favourite_api.json │ │ ├── 13_alert_plugin_instance_api.json │ │ ├── 14_alert_group_api.json │ │ ├── 15_schedule_api.json │ │ ├── 16_audit_log_api.json │ │ ├── 17_process_task_relation_api.json │ │ ├── 18_workflow_lineage_api.json │ │ ├── 19_datasource_api.json │ │ ├── 20_data_quality_api.json │ │ ├── 21_log_api.json │ │ ├── 22_process_definition_api.json │ │ ├── 23_process_instance_api.json │ │ ├── 24_process_execution_api.json │ │ ├── 25_environment_api.json │ │ ├── 26_login_api.json │ │ ├── 27_user_api.json │ │ ├── 28_monitor_api.json │ │ ├── 29_tenant_api.json │ │ ├── 30_token_api.json │ │ ├── 31_resource_api.json │ │ ├── 32_queue_api.json │ │ ├── 33_cluster_api.json │ │ ├── 34_project_parameter_api.json │ │ └── 35_project_api.json │ ├── schemas │ │ ├── 01_alert_schemas.json │ │ ├── 02_cluster_schemas.json │ │ ├── 03_datasource_schemas.json │ │ ├── 04_environment_schemas.json │ │ ├── 05_k8s_schemas.json │ │ ├── 06_project_schemas.json │ │ ├── 07_queue_schemas.json │ │ ├── 08_remaining_1_schemas.json │ │ ├── 09_remaining_10_schemas.json │ │ ├── 10_remaining_11_schemas.json │ │ ├── 11_remaining_12_schemas.json │ │ ├── 12_remaining_13_schemas.json │ │ ├── 13_remaining_2_schemas.json │ │ ├── 14_remaining_3_schemas.json │ │ ├── 15_remaining_4_schemas.json │ │ ├── 16_remaining_5_schemas.json │ │ ├── 17_remaining_6_schemas.json │ │ ├── 18_remaining_7_schemas.json │ │ ├── 19_remaining_8_schemas.json │ │ ├── 20_remaining_9_schemas.json │ │ ├── 21_resource_schemas.json │ │ ├── 22_result_schemas.json │ │ ├── 23_schedule_schemas.json │ │ ├── 24_task_schemas.json │ │ ├── 25_tenant_schemas.json │ │ ├── 26_user_schemas.json │ │ ├── 27_worker_schemas.json │ │ └── 28_workflow_schemas.json │ └── utils │ ├── combine_openapi.py │ └── split_openapi.py ├── pyproject.toml ├── README.md ├── requirements-dev.txt ├── run.bat ├── run.py ├── run.sh ├── src │ ├── __init__.py │ └── dolphinscheduler_mcp │ ├── __init__.py │ ├── __main__.py │ ├── cli.py │ ├── client.py │ ├── config.py │ ├── fastmcp_compat.py │ ├── server.py │ ├── tools │ ├── tools_generated │ │ ├── __init__.py │ │ ├── access_token_tools.py │ │ ├── audit_log_tools.py │ │ ├── azure_data_factory_tools.py │ │ ├── datasource_tools.py │ │ ├── dynamic_task_type_tools.py │ │ ├── environment_check_tools.py │ │ ├── environment_update_tools.py │ │ ├── k8s_namespace_tools.py │ │ ├── lineage_tools.py │ │ ├── process_task_relation_tools.py │ │ ├── project_parameter_tools.py │ │ ├── project_preference_tools.py │ │ ├── project_tools.py │ │ ├── project_worker_group_tools.py │ │ ├── README.md │ │ ├── template_tools.py │ │ ├── ui_plugin_tools.py │ │ └── worker_group_tools.py │ ├── tools_loader.py │ └── tools.py.bak ├── test_create_project.py ├── test_env_settings.py └── tests ├── __init__.py └── test_config.py ``` # Files -------------------------------------------------------------------------------- /mcp-openapi-split/paths/15_schedule_api.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "paths": { 3 | "/projects/{projectCode}/schedules/{id}": { 4 | "put": { 5 | "tags": [ 6 | "定时相关操作" 7 | ], 8 | "summary": "updateSchedule", 9 | "description": "更新定时", 10 | "operationId": "updateSchedule", 11 | "parameters": [ 12 | { 13 | "name": "projectCode", 14 | "in": "path", 15 | "description": "项目Code", 16 | "required": true, 17 | "schema": { 18 | "type": "integer", 19 | "format": "int64" 20 | } 21 | }, 22 | { 23 | "name": "id", 24 | "in": "path", 25 | "description": "定时ID", 26 | "required": true, 27 | "schema": { 28 | "type": "integer", 29 | "format": "int32" 30 | } 31 | }, 32 | { 33 | "name": "schedule", 34 | "in": "query", 35 | "description": "定时", 36 | "required": true, 37 | "schema": { 38 | "type": "string" 39 | } 40 | }, 41 | { 42 | "name": "warningType", 43 | "in": "query", 44 | "description": "发送策略", 45 | "required": false, 46 | "schema": { 47 | "type": "string", 48 | "enum": [ 49 | "NONE", 50 | "SUCCESS", 51 | "FAILURE", 52 | "ALL", 53 | "GLOBAL" 54 | ] 55 | } 56 | }, 57 | { 58 | "name": "warningGroupId", 59 | "in": "query", 60 | "description": "发送组ID", 61 | "required": false, 62 | "schema": { 63 | "type": "integer", 64 | "format": "int32" 65 | } 66 | }, 67 | { 68 | "name": "failureStrategy", 69 | "in": "query", 70 | "description": "失败策略", 71 | "required": false, 72 | "schema": { 73 | "type": "string", 74 | "enum": [ 75 | "END", 76 | "CONTINUE" 77 | ] 78 | } 79 | }, 80 | { 81 | "name": "workerGroup", 82 | "in": "query", 83 | "description": "worker群组", 84 | "required": false, 85 | "schema": { 86 | "type": "string" 87 | } 88 | }, 89 | { 90 | "name": "tenantCode", 91 | "in": "query", 92 | "description": "操作系统租户", 93 | "required": false, 94 | "schema": { 95 | "type": "string" 96 | } 97 | }, 98 | { 99 | "name": "environmentCode", 100 | "in": "query", 101 | "description": "环境代码", 102 | "required": false, 103 | "schema": { 104 | "type": "integer", 105 | "format": "int64" 106 | } 107 | }, 108 | { 109 | "name": "processInstancePriority", 110 | "in": "query", 111 | "description": "流程实例优先级", 112 | "required": false, 113 | "schema": { 114 | "type": "string", 115 | "enum": [ 116 | "HIGHEST", 117 | "HIGH", 118 | "MEDIUM", 119 | "LOW", 120 | "LOWEST" 121 | ] 122 | } 123 | } 124 | ], 125 | "responses": { 126 | "200": { 127 | "description": "OK", 128 | "content": { 129 | "*/*": { 130 | "schema": { 131 | "$ref": "#/components/schemas/Result" 132 | } 133 | } 134 | } 135 | } 136 | } 137 | }, 138 | "delete": { 139 | "tags": [ 140 | "定时相关操作" 141 | ], 142 | "summary": "deleteScheduleById", 143 | "description": "根据定时id删除定时数据", 144 | "operationId": "deleteScheduleById", 145 | "parameters": [ 146 | { 147 | "name": "projectCode", 148 | "in": "path", 149 | "description": "项目Code", 150 | "required": true, 151 | "schema": { 152 | "type": "integer", 153 | "format": "int64" 154 | } 155 | }, 156 | { 157 | "name": "id", 158 | "in": "path", 159 | "description": "定时ID", 160 | "required": true, 161 | "schema": { 162 | "type": "integer", 163 | "format": "int32" 164 | } 165 | } 166 | ], 167 | "responses": { 168 | "200": { 169 | "description": "OK", 170 | "content": { 171 | "*/*": { 172 | "schema": { 173 | "$ref": "#/components/schemas/Result" 174 | } 175 | } 176 | } 177 | } 178 | } 179 | } 180 | }, 181 | "/projects/{projectCode}/schedules/update/{code}": { 182 | "put": { 183 | "tags": [ 184 | "定时相关操作" 185 | ], 186 | "summary": "updateScheduleByProcessDefinitionCode", 187 | "description": "UPDATE_SCHEDULE_BY_PROCESS_DEFINITION_CODE_NOTES", 188 | "operationId": "updateScheduleByProcessDefinitionCode", 189 | "parameters": [ 190 | { 191 | "name": "projectCode", 192 | "in": "path", 193 | "description": "项目Code", 194 | "required": true, 195 | "schema": { 196 | "type": "integer", 197 | "format": "int64" 198 | } 199 | }, 200 | { 201 | "name": "code", 202 | "in": "path", 203 | "required": true, 204 | "schema": { 205 | "type": "integer", 206 | "format": "int64" 207 | } 208 | }, 209 | { 210 | "name": "schedule", 211 | "in": "query", 212 | "description": "定时", 213 | "required": true, 214 | "schema": { 215 | "type": "string" 216 | } 217 | }, 218 | { 219 | "name": "warningType", 220 | "in": "query", 221 | "description": "发送策略", 222 | "required": false, 223 | "schema": { 224 | "type": "string", 225 | "enum": [ 226 | "NONE", 227 | "SUCCESS", 228 | "FAILURE", 229 | "ALL", 230 | "GLOBAL" 231 | ] 232 | } 233 | }, 234 | { 235 | "name": "warningGroupId", 236 | "in": "query", 237 | "description": "发送组ID", 238 | "required": false, 239 | "schema": { 240 | "type": "integer", 241 | "format": "int32" 242 | } 243 | }, 244 | { 245 | "name": "failureStrategy", 246 | "in": "query", 247 | "description": "失败策略", 248 | "required": false, 249 | "schema": { 250 | "type": "string", 251 | "enum": [ 252 | "END", 253 | "CONTINUE" 254 | ] 255 | } 256 | }, 257 | { 258 | "name": "workerGroup", 259 | "in": "query", 260 | "description": "worker群组", 261 | "required": false, 262 | "schema": { 263 | "type": "string" 264 | } 265 | }, 266 | { 267 | "name": "tenantCode", 268 | "in": "query", 269 | "description": "操作系统租户", 270 | "required": false, 271 | "schema": { 272 | "type": "string" 273 | } 274 | }, 275 | { 276 | "name": "environmentCode", 277 | "in": "query", 278 | "description": "环境代码", 279 | "required": false, 280 | "schema": { 281 | "type": "integer", 282 | "format": "int64" 283 | } 284 | }, 285 | { 286 | "name": "processInstancePriority", 287 | "in": "query", 288 | "description": "流程实例优先级", 289 | "required": false, 290 | "schema": { 291 | "type": "string", 292 | "enum": [ 293 | "HIGHEST", 294 | "HIGH", 295 | "MEDIUM", 296 | "LOW", 297 | "LOWEST" 298 | ] 299 | } 300 | }, 301 | { 302 | "name": "processDefinitionCode", 303 | "description": "流程定义编码", 304 | "required": true, 305 | "schema": { 306 | "type": "integer", 307 | "format": "int64" 308 | } 309 | } 310 | ], 311 | "responses": { 312 | "200": { 313 | "description": "OK", 314 | "content": { 315 | "*/*": { 316 | "schema": { 317 | "$ref": "#/components/schemas/Result" 318 | } 319 | } 320 | } 321 | } 322 | } 323 | } 324 | }, 325 | "/projects/{projectCode}/schedules": { 326 | "get": { 327 | "tags": [ 328 | "定时相关操作" 329 | ], 330 | "summary": "queryScheduleListPaging", 331 | "description": "分页查询定时", 332 | "operationId": "queryScheduleListPaging", 333 | "parameters": [ 334 | { 335 | "name": "projectCode", 336 | "in": "path", 337 | "description": "项目Code", 338 | "required": true, 339 | "schema": { 340 | "type": "integer", 341 | "format": "int64" 342 | } 343 | }, 344 | { 345 | "name": "processDefinitionCode", 346 | "in": "query", 347 | "required": false, 348 | "schema": { 349 | "type": "integer", 350 | "format": "int64", 351 | "default": 0 352 | } 353 | }, 354 | { 355 | "name": "searchVal", 356 | "in": "query", 357 | "description": "搜索值", 358 | "required": false, 359 | "schema": { 360 | "type": "string" 361 | } 362 | }, 363 | { 364 | "name": "pageNo", 365 | "in": "query", 366 | "description": "页码号", 367 | "required": true, 368 | "schema": { 369 | "type": "integer", 370 | "format": "int32" 371 | } 372 | }, 373 | { 374 | "name": "pageSize", 375 | "in": "query", 376 | "description": "页大小", 377 | "required": true, 378 | "schema": { 379 | "type": "integer", 380 | "format": "int32" 381 | } 382 | }, 383 | { 384 | "name": "processDefinitionId", 385 | "description": "流程定义ID", 386 | "required": true, 387 | "schema": { 388 | "type": "integer", 389 | "format": "int32" 390 | } 391 | } 392 | ], 393 | "responses": { 394 | "200": { 395 | "description": "OK", 396 | "content": { 397 | "*/*": { 398 | "schema": { 399 | "$ref": "#/components/schemas/Result" 400 | } 401 | } 402 | } 403 | } 404 | } 405 | }, 406 | "post": { 407 | "tags": [ 408 | "定时相关操作" 409 | ], 410 | "summary": "createSchedule", 411 | "description": "创建定时", 412 | "operationId": "createSchedule", 413 | "parameters": [ 414 | { 415 | "name": "projectCode", 416 | "in": "path", 417 | "description": "项目Code", 418 | "required": true, 419 | "schema": { 420 | "type": "integer", 421 | "format": "int64" 422 | } 423 | }, 424 | { 425 | "name": "processDefinitionCode", 426 | "in": "query", 427 | "description": "流程定义编码", 428 | "required": true, 429 | "schema": { 430 | "type": "integer", 431 | "format": "int64" 432 | } 433 | }, 434 | { 435 | "name": "schedule", 436 | "in": "query", 437 | "description": "定时", 438 | "required": true, 439 | "schema": { 440 | "type": "string" 441 | } 442 | }, 443 | { 444 | "name": "warningType", 445 | "in": "query", 446 | "description": "发送策略", 447 | "required": false, 448 | "schema": { 449 | "type": "string", 450 | "enum": [ 451 | "NONE", 452 | "SUCCESS", 453 | "FAILURE", 454 | "ALL", 455 | "GLOBAL" 456 | ] 457 | } 458 | }, 459 | { 460 | "name": "warningGroupId", 461 | "in": "query", 462 | "description": "发送组ID", 463 | "required": false, 464 | "schema": { 465 | "type": "integer", 466 | "format": "int32" 467 | } 468 | }, 469 | { 470 | "name": "failureStrategy", 471 | "in": "query", 472 | "description": "失败策略", 473 | "required": false, 474 | "schema": { 475 | "type": "string", 476 | "enum": [ 477 | "END", 478 | "CONTINUE" 479 | ] 480 | } 481 | }, 482 | { 483 | "name": "workerGroup", 484 | "in": "query", 485 | "description": "worker群组", 486 | "required": false, 487 | "schema": { 488 | "type": "string" 489 | } 490 | }, 491 | { 492 | "name": "tenantCode", 493 | "in": "query", 494 | "description": "操作系统租户", 495 | "required": false, 496 | "schema": { 497 | "type": "string" 498 | } 499 | }, 500 | { 501 | "name": "environmentCode", 502 | "in": "query", 503 | "description": "环境代码", 504 | "required": false, 505 | "schema": { 506 | "type": "integer", 507 | "format": "int64" 508 | } 509 | }, 510 | { 511 | "name": "processInstancePriority", 512 | "in": "query", 513 | "description": "流程实例优先级", 514 | "required": false, 515 | "schema": { 516 | "type": "string", 517 | "enum": [ 518 | "HIGHEST", 519 | "HIGH", 520 | "MEDIUM", 521 | "LOW", 522 | "LOWEST" 523 | ] 524 | } 525 | } 526 | ], 527 | "responses": { 528 | "201": { 529 | "description": "Created", 530 | "content": { 531 | "*/*": { 532 | "schema": { 533 | "$ref": "#/components/schemas/Result" 534 | } 535 | } 536 | } 537 | } 538 | } 539 | } 540 | }, 541 | "/projects/{projectCode}/schedules/{id}/online": { 542 | "post": { 543 | "tags": [ 544 | "定时相关操作" 545 | ], 546 | "summary": "online", 547 | "description": "定时上线", 548 | "operationId": "publishScheduleOnline", 549 | "parameters": [ 550 | { 551 | "name": "projectCode", 552 | "in": "path", 553 | "description": "项目Code", 554 | "required": true, 555 | "schema": { 556 | "type": "integer", 557 | "format": "int64" 558 | } 559 | }, 560 | { 561 | "name": "id", 562 | "in": "path", 563 | "description": "定时ID", 564 | "required": true, 565 | "schema": { 566 | "type": "integer", 567 | "format": "int32" 568 | } 569 | } 570 | ], 571 | "responses": { 572 | "200": { 573 | "description": "OK", 574 | "content": { 575 | "*/*": { 576 | "schema": { 577 | "$ref": "#/components/schemas/ResultBoolean" 578 | } 579 | } 580 | } 581 | } 582 | } 583 | } 584 | }, 585 | "/projects/{projectCode}/schedules/{id}/offline": { 586 | "post": { 587 | "tags": [ 588 | "定时相关操作" 589 | ], 590 | "summary": "offline", 591 | "description": "定时下线", 592 | "operationId": "offlineSchedule", 593 | "parameters": [ 594 | { 595 | "name": "projectCode", 596 | "in": "path", 597 | "description": "项目Code", 598 | "required": true, 599 | "schema": { 600 | "type": "integer", 601 | "format": "int64" 602 | } 603 | }, 604 | { 605 | "name": "id", 606 | "in": "path", 607 | "description": "定时ID", 608 | "required": true, 609 | "schema": { 610 | "type": "integer", 611 | "format": "int32" 612 | } 613 | } 614 | ], 615 | "responses": { 616 | "200": { 617 | "description": "OK", 618 | "content": { 619 | "*/*": { 620 | "schema": { 621 | "$ref": "#/components/schemas/ResultBoolean" 622 | } 623 | } 624 | } 625 | } 626 | } 627 | } 628 | }, 629 | "/projects/{projectCode}/schedules/preview": { 630 | "post": { 631 | "tags": [ 632 | "定时相关操作" 633 | ], 634 | "summary": "previewSchedule", 635 | "description": "定时调度预览", 636 | "operationId": "previewSchedule", 637 | "parameters": [ 638 | { 639 | "name": "schedule", 640 | "in": "query", 641 | "description": "定时", 642 | "required": true, 643 | "schema": { 644 | "type": "string" 645 | } 646 | } 647 | ], 648 | "responses": { 649 | "201": { 650 | "description": "Created", 651 | "content": { 652 | "*/*": { 653 | "schema": { 654 | "$ref": "#/components/schemas/Result" 655 | } 656 | } 657 | } 658 | } 659 | } 660 | } 661 | }, 662 | "/projects/{projectCode}/schedules/list": { 663 | "post": { 664 | "tags": [ 665 | "定时相关操作" 666 | ], 667 | "summary": "queryScheduleList", 668 | "description": "查询定时列表", 669 | "operationId": "queryScheduleList", 670 | "parameters": [ 671 | { 672 | "name": "projectCode", 673 | "in": "path", 674 | "description": "项目Code", 675 | "required": true, 676 | "schema": { 677 | "type": "integer", 678 | "format": "int64" 679 | } 680 | } 681 | ], 682 | "responses": { 683 | "200": { 684 | "description": "OK", 685 | "content": { 686 | "*/*": { 687 | "schema": { 688 | "$ref": "#/components/schemas/Result" 689 | } 690 | } 691 | } 692 | } 693 | } 694 | } 695 | } 696 | } 697 | } ``` -------------------------------------------------------------------------------- /mcp-openapi-split/schemas/28_workflow_schemas.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "components": { 3 | "schemas": { 4 | "ProcessDefinition": { 5 | "type": "object", 6 | "properties": { 7 | "id": { 8 | "type": "integer", 9 | "format": "int32" 10 | }, 11 | "code": { 12 | "type": "integer", 13 | "format": "int64" 14 | }, 15 | "name": { 16 | "type": "string" 17 | }, 18 | "version": { 19 | "type": "integer", 20 | "format": "int32" 21 | }, 22 | "releaseState": { 23 | "type": "string", 24 | "enum": [ 25 | "OFFLINE", 26 | "ONLINE" 27 | ] 28 | }, 29 | "projectCode": { 30 | "type": "integer", 31 | "format": "int64" 32 | }, 33 | "description": { 34 | "type": "string" 35 | }, 36 | "globalParams": { 37 | "type": "string" 38 | }, 39 | "globalParamList": { 40 | "type": "array", 41 | "items": { 42 | "$ref": "#/components/schemas/Property" 43 | } 44 | }, 45 | "globalParamMap": { 46 | "type": "object", 47 | "additionalProperties": { 48 | "type": "string" 49 | } 50 | }, 51 | "createTime": { 52 | "type": "string", 53 | "format": "date-time" 54 | }, 55 | "updateTime": { 56 | "type": "string", 57 | "format": "date-time" 58 | }, 59 | "flag": { 60 | "type": "string", 61 | "enum": [ 62 | "NO", 63 | "YES" 64 | ] 65 | }, 66 | "userId": { 67 | "type": "integer", 68 | "format": "int32" 69 | }, 70 | "userName": { 71 | "type": "string" 72 | }, 73 | "projectName": { 74 | "type": "string" 75 | }, 76 | "locations": { 77 | "type": "string" 78 | }, 79 | "scheduleReleaseState": { 80 | "type": "string", 81 | "enum": [ 82 | "OFFLINE", 83 | "ONLINE" 84 | ] 85 | }, 86 | "schedule": { 87 | "$ref": "#/components/schemas/Schedule" 88 | }, 89 | "timeout": { 90 | "type": "integer", 91 | "format": "int32" 92 | }, 93 | "modifyBy": { 94 | "type": "string" 95 | }, 96 | "warningGroupId": { 97 | "type": "integer", 98 | "format": "int32" 99 | }, 100 | "executionType": { 101 | "type": "string", 102 | "enum": [ 103 | "PARALLEL", 104 | "SERIAL_WAIT", 105 | "SERIAL_DISCARD", 106 | "SERIAL_PRIORITY" 107 | ] 108 | } 109 | } 110 | }, 111 | "ProcessInstance": { 112 | "type": "object", 113 | "properties": { 114 | "id": { 115 | "type": "integer", 116 | "format": "int32" 117 | }, 118 | "processDefinitionCode": { 119 | "type": "integer", 120 | "format": "int64" 121 | }, 122 | "processDefinitionVersion": { 123 | "type": "integer", 124 | "format": "int32" 125 | }, 126 | "projectCode": { 127 | "type": "integer", 128 | "format": "int64" 129 | }, 130 | "state": { 131 | "type": "string", 132 | "enum": [ 133 | "WorkflowExecutionStatus{code=0, desc='submit success'}", 134 | "WorkflowExecutionStatus{code=1, desc='running'}", 135 | "WorkflowExecutionStatus{code=2, desc='ready pause'}", 136 | "WorkflowExecutionStatus{code=3, desc='pause'}", 137 | "WorkflowExecutionStatus{code=4, desc='ready stop'}", 138 | "WorkflowExecutionStatus{code=5, desc='stop'}", 139 | "WorkflowExecutionStatus{code=6, desc='failure'}", 140 | "WorkflowExecutionStatus{code=7, desc='success'}", 141 | "WorkflowExecutionStatus{code=12, desc='delay execution'}", 142 | "WorkflowExecutionStatus{code=14, desc='serial wait'}", 143 | "WorkflowExecutionStatus{code=15, desc='ready block'}", 144 | "WorkflowExecutionStatus{code=16, desc='block'}", 145 | "WorkflowExecutionStatus{code=17, desc='wait to run'}" 146 | ] 147 | }, 148 | "stateHistory": { 149 | "type": "string" 150 | }, 151 | "stateDescList": { 152 | "type": "array", 153 | "items": { 154 | "$ref": "#/components/schemas/StateDesc" 155 | } 156 | }, 157 | "recovery": { 158 | "type": "string", 159 | "enum": [ 160 | "NO", 161 | "YES" 162 | ] 163 | }, 164 | "startTime": { 165 | "type": "string", 166 | "format": "date-time" 167 | }, 168 | "endTime": { 169 | "type": "string", 170 | "format": "date-time" 171 | }, 172 | "runTimes": { 173 | "type": "integer", 174 | "format": "int32" 175 | }, 176 | "name": { 177 | "type": "string" 178 | }, 179 | "host": { 180 | "type": "string" 181 | }, 182 | "processDefinition": { 183 | "$ref": "#/components/schemas/ProcessDefinition" 184 | }, 185 | "commandType": { 186 | "type": "string", 187 | "enum": [ 188 | "START_PROCESS", 189 | "START_CURRENT_TASK_PROCESS", 190 | "RECOVER_TOLERANCE_FAULT_PROCESS", 191 | "RECOVER_SUSPENDED_PROCESS", 192 | "START_FAILURE_TASK_PROCESS", 193 | "COMPLEMENT_DATA", 194 | "SCHEDULER", 195 | "REPEAT_RUNNING", 196 | "PAUSE", 197 | "STOP", 198 | "RECOVER_WAITING_THREAD", 199 | "RECOVER_SERIAL_WAIT", 200 | "EXECUTE_TASK", 201 | "DYNAMIC_GENERATION" 202 | ] 203 | }, 204 | "commandParam": { 205 | "type": "string" 206 | }, 207 | "taskDependType": { 208 | "type": "string", 209 | "enum": [ 210 | "TASK_ONLY", 211 | "TASK_PRE", 212 | "TASK_POST" 213 | ] 214 | }, 215 | "maxTryTimes": { 216 | "type": "integer", 217 | "format": "int32" 218 | }, 219 | "failureStrategy": { 220 | "type": "string", 221 | "enum": [ 222 | "END", 223 | "CONTINUE" 224 | ] 225 | }, 226 | "warningType": { 227 | "type": "string", 228 | "enum": [ 229 | "NONE", 230 | "SUCCESS", 231 | "FAILURE", 232 | "ALL", 233 | "GLOBAL" 234 | ] 235 | }, 236 | "warningGroupId": { 237 | "type": "integer", 238 | "format": "int32" 239 | }, 240 | "scheduleTime": { 241 | "type": "string", 242 | "format": "date-time" 243 | }, 244 | "commandStartTime": { 245 | "type": "string", 246 | "format": "date-time" 247 | }, 248 | "globalParams": { 249 | "type": "string" 250 | }, 251 | "dagData": { 252 | "$ref": "#/components/schemas/DagData" 253 | }, 254 | "executorId": { 255 | "type": "integer", 256 | "format": "int32" 257 | }, 258 | "executorName": { 259 | "type": "string" 260 | }, 261 | "tenantCode": { 262 | "type": "string" 263 | }, 264 | "queue": { 265 | "type": "string" 266 | }, 267 | "isSubProcess": { 268 | "type": "string", 269 | "enum": [ 270 | "NO", 271 | "YES" 272 | ] 273 | }, 274 | "locations": { 275 | "type": "string" 276 | }, 277 | "historyCmd": { 278 | "type": "string" 279 | }, 280 | "dependenceScheduleTimes": { 281 | "type": "string" 282 | }, 283 | "duration": { 284 | "type": "string" 285 | }, 286 | "processInstancePriority": { 287 | "type": "string", 288 | "enum": [ 289 | "HIGHEST", 290 | "HIGH", 291 | "MEDIUM", 292 | "LOW", 293 | "LOWEST" 294 | ] 295 | }, 296 | "workerGroup": { 297 | "type": "string" 298 | }, 299 | "environmentCode": { 300 | "type": "integer", 301 | "format": "int64" 302 | }, 303 | "timeout": { 304 | "type": "integer", 305 | "format": "int32" 306 | }, 307 | "varPool": { 308 | "type": "string" 309 | }, 310 | "nextProcessInstanceId": { 311 | "type": "integer", 312 | "format": "int32" 313 | }, 314 | "dryRun": { 315 | "type": "integer", 316 | "format": "int32" 317 | }, 318 | "restartTime": { 319 | "type": "string", 320 | "format": "date-time" 321 | }, 322 | "testFlag": { 323 | "type": "integer", 324 | "format": "int32" 325 | }, 326 | "complementData": { 327 | "type": "boolean" 328 | }, 329 | "cmdTypeIfComplement": { 330 | "type": "string", 331 | "enum": [ 332 | "START_PROCESS", 333 | "START_CURRENT_TASK_PROCESS", 334 | "RECOVER_TOLERANCE_FAULT_PROCESS", 335 | "RECOVER_SUSPENDED_PROCESS", 336 | "START_FAILURE_TASK_PROCESS", 337 | "COMPLEMENT_DATA", 338 | "SCHEDULER", 339 | "REPEAT_RUNNING", 340 | "PAUSE", 341 | "STOP", 342 | "RECOVER_WAITING_THREAD", 343 | "RECOVER_SERIAL_WAIT", 344 | "EXECUTE_TASK", 345 | "DYNAMIC_GENERATION" 346 | ] 347 | }, 348 | "blocked": { 349 | "type": "boolean" 350 | } 351 | } 352 | }, 353 | "ProcessTaskRelation": { 354 | "type": "object", 355 | "properties": { 356 | "id": { 357 | "type": "integer", 358 | "format": "int32" 359 | }, 360 | "name": { 361 | "type": "string" 362 | }, 363 | "processDefinitionVersion": { 364 | "type": "integer", 365 | "format": "int32" 366 | }, 367 | "projectCode": { 368 | "type": "integer", 369 | "format": "int64" 370 | }, 371 | "processDefinitionCode": { 372 | "type": "integer", 373 | "format": "int64" 374 | }, 375 | "preTaskCode": { 376 | "type": "integer", 377 | "format": "int64" 378 | }, 379 | "preTaskVersion": { 380 | "type": "integer", 381 | "format": "int32" 382 | }, 383 | "postTaskCode": { 384 | "type": "integer", 385 | "format": "int64" 386 | }, 387 | "postTaskVersion": { 388 | "type": "integer", 389 | "format": "int32" 390 | }, 391 | "conditionType": { 392 | "type": "string", 393 | "enum": [ 394 | "NONE", 395 | "JUDGE", 396 | "DELAY" 397 | ] 398 | }, 399 | "conditionParams": { 400 | "type": "string" 401 | }, 402 | "createTime": { 403 | "type": "string", 404 | "format": "date-time" 405 | }, 406 | "updateTime": { 407 | "type": "string", 408 | "format": "date-time" 409 | } 410 | } 411 | }, 412 | "ResultProcessInstance": { 413 | "type": "object", 414 | "properties": { 415 | "code": { 416 | "type": "integer", 417 | "format": "int32" 418 | }, 419 | "msg": { 420 | "type": "string" 421 | }, 422 | "data": { 423 | "$ref": "#/components/schemas/ProcessInstance" 424 | }, 425 | "failed": { 426 | "type": "boolean" 427 | }, 428 | "success": { 429 | "type": "boolean" 430 | } 431 | } 432 | }, 433 | "DynamicSubWorkflowDto": { 434 | "type": "object", 435 | "properties": { 436 | "processInstanceId": { 437 | "type": "integer", 438 | "format": "int64" 439 | }, 440 | "name": { 441 | "type": "string" 442 | }, 443 | "index": { 444 | "type": "integer", 445 | "format": "int64" 446 | }, 447 | "parameters": { 448 | "type": "object", 449 | "additionalProperties": { 450 | "type": "string" 451 | } 452 | }, 453 | "state": { 454 | "type": "string", 455 | "enum": [ 456 | "WorkflowExecutionStatus{code=0, desc='submit success'}", 457 | "WorkflowExecutionStatus{code=1, desc='running'}", 458 | "WorkflowExecutionStatus{code=2, desc='ready pause'}", 459 | "WorkflowExecutionStatus{code=3, desc='pause'}", 460 | "WorkflowExecutionStatus{code=4, desc='ready stop'}", 461 | "WorkflowExecutionStatus{code=5, desc='stop'}", 462 | "WorkflowExecutionStatus{code=6, desc='failure'}", 463 | "WorkflowExecutionStatus{code=7, desc='success'}", 464 | "WorkflowExecutionStatus{code=12, desc='delay execution'}", 465 | "WorkflowExecutionStatus{code=14, desc='serial wait'}", 466 | "WorkflowExecutionStatus{code=15, desc='ready block'}", 467 | "WorkflowExecutionStatus{code=16, desc='block'}", 468 | "WorkflowExecutionStatus{code=17, desc='wait to run'}" 469 | ] 470 | } 471 | } 472 | }, 473 | "ResultListDynamicSubWorkflowDto": { 474 | "type": "object", 475 | "properties": { 476 | "code": { 477 | "type": "integer", 478 | "format": "int32" 479 | }, 480 | "msg": { 481 | "type": "string" 482 | }, 483 | "data": { 484 | "type": "array", 485 | "items": { 486 | "$ref": "#/components/schemas/DynamicSubWorkflowDto" 487 | } 488 | }, 489 | "failed": { 490 | "type": "boolean" 491 | }, 492 | "success": { 493 | "type": "boolean" 494 | } 495 | } 496 | }, 497 | "PageInfoProcessDefinition": { 498 | "type": "object", 499 | "properties": { 500 | "totalList": { 501 | "type": "array", 502 | "items": { 503 | "$ref": "#/components/schemas/ProcessDefinition" 504 | } 505 | }, 506 | "total": { 507 | "type": "integer", 508 | "format": "int32" 509 | }, 510 | "totalPage": { 511 | "type": "integer", 512 | "format": "int32" 513 | }, 514 | "pageSize": { 515 | "type": "integer", 516 | "format": "int32" 517 | }, 518 | "currentPage": { 519 | "type": "integer", 520 | "format": "int32" 521 | }, 522 | "pageNo": { 523 | "type": "integer", 524 | "format": "int32" 525 | } 526 | } 527 | }, 528 | "ResultPageInfoProcessDefinition": { 529 | "type": "object", 530 | "properties": { 531 | "code": { 532 | "type": "integer", 533 | "format": "int32" 534 | }, 535 | "msg": { 536 | "type": "string" 537 | }, 538 | "data": { 539 | "$ref": "#/components/schemas/PageInfoProcessDefinition" 540 | }, 541 | "failed": { 542 | "type": "boolean" 543 | }, 544 | "success": { 545 | "type": "boolean" 546 | } 547 | } 548 | }, 549 | "ResultProcessDefinition": { 550 | "type": "object", 551 | "properties": { 552 | "code": { 553 | "type": "integer", 554 | "format": "int32" 555 | }, 556 | "msg": { 557 | "type": "string" 558 | }, 559 | "data": { 560 | "$ref": "#/components/schemas/ProcessDefinition" 561 | }, 562 | "failed": { 563 | "type": "boolean" 564 | }, 565 | "success": { 566 | "type": "boolean" 567 | } 568 | } 569 | }, 570 | "ResultWorkflowInstanceCountVO": { 571 | "type": "object", 572 | "properties": { 573 | "code": { 574 | "type": "integer", 575 | "format": "int32" 576 | }, 577 | "msg": { 578 | "type": "string" 579 | }, 580 | "data": { 581 | "$ref": "#/components/schemas/WorkflowInstanceCountVO" 582 | }, 583 | "failed": { 584 | "type": "boolean" 585 | }, 586 | "success": { 587 | "type": "boolean" 588 | } 589 | } 590 | }, 591 | "WorkflowInstanceCountVO": { 592 | "type": "object", 593 | "properties": { 594 | "totalCount": { 595 | "type": "integer", 596 | "format": "int32" 597 | }, 598 | "workflowInstanceStatusCounts": { 599 | "type": "array", 600 | "items": { 601 | "$ref": "#/components/schemas/WorkflowInstanceStatusCountDto" 602 | } 603 | } 604 | } 605 | }, 606 | "WorkflowInstanceStatusCountDto": { 607 | "type": "object", 608 | "properties": { 609 | "state": { 610 | "type": "string", 611 | "enum": [ 612 | "WorkflowExecutionStatus{code=0, desc='submit success'}", 613 | "WorkflowExecutionStatus{code=1, desc='running'}", 614 | "WorkflowExecutionStatus{code=2, desc='ready pause'}", 615 | "WorkflowExecutionStatus{code=3, desc='pause'}", 616 | "WorkflowExecutionStatus{code=4, desc='ready stop'}", 617 | "WorkflowExecutionStatus{code=5, desc='stop'}", 618 | "WorkflowExecutionStatus{code=6, desc='failure'}", 619 | "WorkflowExecutionStatus{code=7, desc='success'}", 620 | "WorkflowExecutionStatus{code=12, desc='delay execution'}", 621 | "WorkflowExecutionStatus{code=14, desc='serial wait'}", 622 | "WorkflowExecutionStatus{code=15, desc='ready block'}", 623 | "WorkflowExecutionStatus{code=16, desc='block'}", 624 | "WorkflowExecutionStatus{code=17, desc='wait to run'}" 625 | ] 626 | }, 627 | "count": { 628 | "type": "integer", 629 | "format": "int32" 630 | } 631 | } 632 | }, 633 | "ResultWorkflowDefinitionCountVO": { 634 | "type": "object", 635 | "properties": { 636 | "code": { 637 | "type": "integer", 638 | "format": "int32" 639 | }, 640 | "msg": { 641 | "type": "string" 642 | }, 643 | "data": { 644 | "$ref": "#/components/schemas/WorkflowDefinitionCountVO" 645 | }, 646 | "failed": { 647 | "type": "boolean" 648 | }, 649 | "success": { 650 | "type": "boolean" 651 | } 652 | } 653 | }, 654 | "WorkflowDefinitionCountDto": { 655 | "type": "object", 656 | "properties": { 657 | "userName": { 658 | "type": "string" 659 | }, 660 | "userId": { 661 | "type": "integer", 662 | "format": "int32" 663 | }, 664 | "count": { 665 | "type": "integer", 666 | "format": "int32" 667 | } 668 | } 669 | }, 670 | "WorkflowDefinitionCountVO": { 671 | "type": "object", 672 | "properties": { 673 | "count": { 674 | "type": "integer", 675 | "format": "int32" 676 | }, 677 | "userList": { 678 | "type": "array", 679 | "items": { 680 | "$ref": "#/components/schemas/WorkflowDefinitionCountDto" 681 | } 682 | } 683 | } 684 | } 685 | } 686 | } 687 | } ``` -------------------------------------------------------------------------------- /mcp-openapi-split/paths/23_process_instance_api.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "paths": { 3 | "/projects/{projectCode}/process-instances/{id}": { 4 | "get": { 5 | "tags": [ 6 | "流程实例相关操作" 7 | ], 8 | "summary": "queryProcessInstanceById", 9 | "description": "通过流程实例ID查询流程实例", 10 | "operationId": "queryProcessInstanceById", 11 | "parameters": [ 12 | { 13 | "name": "projectCode", 14 | "in": "path", 15 | "description": "项目Code", 16 | "required": true, 17 | "schema": { 18 | "type": "integer", 19 | "format": "int64" 20 | } 21 | }, 22 | { 23 | "name": "id", 24 | "in": "path", 25 | "description": "流程实例ID", 26 | "required": true, 27 | "schema": { 28 | "type": "integer", 29 | "format": "int32" 30 | } 31 | } 32 | ], 33 | "responses": { 34 | "200": { 35 | "description": "OK", 36 | "content": { 37 | "*/*": { 38 | "schema": { 39 | "$ref": "#/components/schemas/Result" 40 | } 41 | } 42 | } 43 | } 44 | } 45 | }, 46 | "put": { 47 | "tags": [ 48 | "流程实例相关操作" 49 | ], 50 | "summary": "updateProcessInstance", 51 | "description": "更新流程实例", 52 | "operationId": "updateProcessInstance", 53 | "parameters": [ 54 | { 55 | "name": "projectCode", 56 | "in": "path", 57 | "description": "项目Code", 58 | "required": true, 59 | "schema": { 60 | "type": "integer", 61 | "format": "int64" 62 | } 63 | }, 64 | { 65 | "name": "taskRelationJson", 66 | "in": "query", 67 | "description": "TASK_RELATION_JSON", 68 | "required": true, 69 | "schema": { 70 | "type": "string" 71 | } 72 | }, 73 | { 74 | "name": "taskDefinitionJson", 75 | "in": "query", 76 | "description": "任务定义JSON", 77 | "required": true, 78 | "schema": { 79 | "type": "string" 80 | } 81 | }, 82 | { 83 | "name": "id", 84 | "in": "path", 85 | "description": "流程实例ID", 86 | "required": true, 87 | "schema": { 88 | "type": "integer", 89 | "format": "int32" 90 | } 91 | }, 92 | { 93 | "name": "scheduleTime", 94 | "in": "query", 95 | "description": "定时时间,空字符串表示当前天", 96 | "required": false, 97 | "schema": { 98 | "type": "string" 99 | } 100 | }, 101 | { 102 | "name": "syncDefine", 103 | "in": "query", 104 | "description": "更新流程实例的信息是否同步到流程定义", 105 | "required": true, 106 | "schema": { 107 | "type": "boolean" 108 | } 109 | }, 110 | { 111 | "name": "globalParams", 112 | "in": "query", 113 | "description": "PROCESS_GLOBAL_PARAMS", 114 | "required": false, 115 | "schema": { 116 | "type": "string" 117 | } 118 | }, 119 | { 120 | "name": "locations", 121 | "in": "query", 122 | "description": "流程实例节点坐标位置信息(json格式)", 123 | "required": false, 124 | "schema": { 125 | "type": "string" 126 | } 127 | }, 128 | { 129 | "name": "timeout", 130 | "in": "query", 131 | "description": "PROCESS_TIMEOUT", 132 | "required": false, 133 | "schema": { 134 | "type": "integer", 135 | "format": "int32" 136 | } 137 | } 138 | ], 139 | "responses": { 140 | "200": { 141 | "description": "OK", 142 | "content": { 143 | "*/*": { 144 | "schema": { 145 | "$ref": "#/components/schemas/Result" 146 | } 147 | } 148 | } 149 | } 150 | } 151 | }, 152 | "delete": { 153 | "tags": [ 154 | "流程实例相关操作" 155 | ], 156 | "summary": "deleteProcessInstanceById", 157 | "description": "通过流程实例ID删除流程实例", 158 | "operationId": "deleteProcessInstanceById", 159 | "parameters": [ 160 | { 161 | "name": "projectCode", 162 | "in": "path", 163 | "description": "项目Code", 164 | "required": true, 165 | "schema": { 166 | "type": "integer", 167 | "format": "int64" 168 | } 169 | }, 170 | { 171 | "name": "id", 172 | "in": "path", 173 | "description": "流程实例ID", 174 | "required": true, 175 | "schema": { 176 | "type": "integer", 177 | "format": "int32" 178 | } 179 | } 180 | ], 181 | "responses": { 182 | "200": { 183 | "description": "OK", 184 | "content": { 185 | "*/*": { 186 | "schema": { 187 | "$ref": "#/components/schemas/ResultVoid" 188 | } 189 | } 190 | } 191 | } 192 | } 193 | } 194 | }, 195 | "/projects/{projectCode}/process-instances/batch-delete": { 196 | "post": { 197 | "tags": [ 198 | "流程实例相关操作" 199 | ], 200 | "summary": "batchDeleteProcessInstanceByIds", 201 | "description": "通过流程实例ID集合批量删除流程实例", 202 | "operationId": "batchDeleteProcessInstanceByIds", 203 | "parameters": [ 204 | { 205 | "name": "projectCode", 206 | "in": "path", 207 | "description": "项目Code", 208 | "required": true, 209 | "schema": { 210 | "type": "integer", 211 | "format": "int32" 212 | } 213 | }, 214 | { 215 | "name": "processInstanceIds", 216 | "in": "query", 217 | "description": "流程实例ID集合,如果有多个流程实例则用 \",\" 分隔", 218 | "required": true, 219 | "schema": { 220 | "type": "string" 221 | } 222 | } 223 | ], 224 | "responses": { 225 | "200": { 226 | "description": "OK", 227 | "content": { 228 | "*/*": { 229 | "schema": { 230 | "$ref": "#/components/schemas/Result" 231 | } 232 | } 233 | } 234 | } 235 | } 236 | } 237 | }, 238 | "/projects/{projectCode}/process-instances": { 239 | "get": { 240 | "tags": [ 241 | "流程实例相关操作" 242 | ], 243 | "summary": "queryProcessInstanceListPaging", 244 | "description": "查询流程实例列表", 245 | "operationId": "queryProcessInstanceList", 246 | "parameters": [ 247 | { 248 | "name": "projectCode", 249 | "in": "path", 250 | "description": "项目Code", 251 | "required": true, 252 | "schema": { 253 | "type": "integer", 254 | "format": "int64" 255 | } 256 | }, 257 | { 258 | "name": "processDefineCode", 259 | "in": "query", 260 | "description": "流程定义编码", 261 | "required": false, 262 | "schema": { 263 | "type": "integer", 264 | "format": "int64" 265 | } 266 | }, 267 | { 268 | "name": "searchVal", 269 | "in": "query", 270 | "description": "搜索值", 271 | "required": false, 272 | "schema": { 273 | "type": "string" 274 | } 275 | }, 276 | { 277 | "name": "executorName", 278 | "in": "query", 279 | "description": "流程名称", 280 | "required": false, 281 | "schema": { 282 | "type": "string" 283 | } 284 | }, 285 | { 286 | "name": "stateType", 287 | "in": "query", 288 | "description": "工作流和任务节点的运行状态", 289 | "required": false, 290 | "schema": { 291 | "type": "string", 292 | "enum": [ 293 | "WorkflowExecutionStatus{code=0, desc='submit success'}", 294 | "WorkflowExecutionStatus{code=1, desc='running'}", 295 | "WorkflowExecutionStatus{code=2, desc='ready pause'}", 296 | "WorkflowExecutionStatus{code=3, desc='pause'}", 297 | "WorkflowExecutionStatus{code=4, desc='ready stop'}", 298 | "WorkflowExecutionStatus{code=5, desc='stop'}", 299 | "WorkflowExecutionStatus{code=6, desc='failure'}", 300 | "WorkflowExecutionStatus{code=7, desc='success'}", 301 | "WorkflowExecutionStatus{code=12, desc='delay execution'}", 302 | "WorkflowExecutionStatus{code=14, desc='serial wait'}", 303 | "WorkflowExecutionStatus{code=15, desc='ready block'}", 304 | "WorkflowExecutionStatus{code=16, desc='block'}", 305 | "WorkflowExecutionStatus{code=17, desc='wait to run'}" 306 | ] 307 | } 308 | }, 309 | { 310 | "name": "host", 311 | "in": "query", 312 | "description": "运行任务的主机IP地址", 313 | "required": false, 314 | "schema": { 315 | "type": "string" 316 | } 317 | }, 318 | { 319 | "name": "startDate", 320 | "in": "query", 321 | "description": "开始时间", 322 | "required": false, 323 | "schema": { 324 | "type": "string" 325 | } 326 | }, 327 | { 328 | "name": "endDate", 329 | "in": "query", 330 | "description": "结束时间", 331 | "required": false, 332 | "schema": { 333 | "type": "string" 334 | } 335 | }, 336 | { 337 | "name": "otherParamsJson", 338 | "in": "query", 339 | "required": false, 340 | "schema": { 341 | "type": "string" 342 | } 343 | }, 344 | { 345 | "name": "pageNo", 346 | "in": "query", 347 | "description": "页码号", 348 | "required": true, 349 | "schema": { 350 | "type": "integer", 351 | "format": "int32" 352 | } 353 | }, 354 | { 355 | "name": "pageSize", 356 | "in": "query", 357 | "description": "页大小", 358 | "required": true, 359 | "schema": { 360 | "type": "integer", 361 | "format": "int32" 362 | } 363 | } 364 | ], 365 | "responses": { 366 | "200": { 367 | "description": "OK", 368 | "content": { 369 | "*/*": { 370 | "schema": { 371 | "$ref": "#/components/schemas/Result" 372 | } 373 | } 374 | } 375 | } 376 | } 377 | } 378 | }, 379 | "/projects/{projectCode}/process-instances/{id}/view-variables": { 380 | "get": { 381 | "tags": [ 382 | "流程实例相关操作" 383 | ], 384 | "summary": "viewVariables", 385 | "description": "查询流程实例全局变量和局部变量", 386 | "operationId": "viewVariables", 387 | "parameters": [ 388 | { 389 | "name": "projectCode", 390 | "in": "path", 391 | "description": "项目Code", 392 | "required": true, 393 | "schema": { 394 | "type": "integer", 395 | "format": "int64" 396 | } 397 | }, 398 | { 399 | "name": "id", 400 | "in": "path", 401 | "description": "流程实例ID", 402 | "required": true, 403 | "schema": { 404 | "type": "integer", 405 | "format": "int32" 406 | } 407 | } 408 | ], 409 | "responses": { 410 | "200": { 411 | "description": "OK", 412 | "content": { 413 | "*/*": { 414 | "schema": { 415 | "$ref": "#/components/schemas/Result" 416 | } 417 | } 418 | } 419 | } 420 | } 421 | } 422 | }, 423 | "/projects/{projectCode}/process-instances/{id}/view-gantt": { 424 | "get": { 425 | "tags": [ 426 | "流程实例相关操作" 427 | ], 428 | "summary": "vieGanttTree", 429 | "description": "浏览Gantt图", 430 | "operationId": "viewTree", 431 | "parameters": [ 432 | { 433 | "name": "projectCode", 434 | "in": "path", 435 | "description": "项目Code", 436 | "required": true, 437 | "schema": { 438 | "type": "integer", 439 | "format": "int64" 440 | } 441 | }, 442 | { 443 | "name": "id", 444 | "in": "path", 445 | "description": "流程实例ID", 446 | "required": true, 447 | "schema": { 448 | "type": "integer", 449 | "format": "int32" 450 | } 451 | } 452 | ], 453 | "responses": { 454 | "200": { 455 | "description": "OK", 456 | "content": { 457 | "*/*": { 458 | "schema": { 459 | "$ref": "#/components/schemas/Result" 460 | } 461 | } 462 | } 463 | } 464 | } 465 | } 466 | }, 467 | "/projects/{projectCode}/process-instances/{id}/tasks": { 468 | "get": { 469 | "tags": [ 470 | "流程实例相关操作" 471 | ], 472 | "summary": "queryTaskListByProcessId", 473 | "description": "通过流程实例ID查询任务列表", 474 | "operationId": "queryTaskListByProcessId", 475 | "parameters": [ 476 | { 477 | "name": "projectCode", 478 | "in": "path", 479 | "description": "项目Code", 480 | "required": true, 481 | "schema": { 482 | "type": "integer", 483 | "format": "int64" 484 | } 485 | }, 486 | { 487 | "name": "id", 488 | "in": "path", 489 | "description": "流程实例ID", 490 | "required": true, 491 | "schema": { 492 | "type": "integer", 493 | "format": "int32" 494 | } 495 | } 496 | ], 497 | "responses": { 498 | "200": { 499 | "description": "OK", 500 | "content": { 501 | "*/*": { 502 | "schema": { 503 | "$ref": "#/components/schemas/Result" 504 | } 505 | } 506 | } 507 | } 508 | } 509 | } 510 | }, 511 | "/projects/{projectCode}/process-instances/trigger": { 512 | "get": { 513 | "tags": [ 514 | "流程实例相关操作" 515 | ], 516 | "summary": "queryProcessInstanceListByTrigger", 517 | "description": "QUERY_PROCESS_INSTANCE_BY_TRIGGER_NOTES", 518 | "operationId": "queryProcessInstancesByTriggerCode", 519 | "parameters": [ 520 | { 521 | "name": "projectCode", 522 | "in": "path", 523 | "description": "项目Code", 524 | "required": true, 525 | "schema": { 526 | "type": "integer", 527 | "format": "int64" 528 | } 529 | }, 530 | { 531 | "name": "triggerCode", 532 | "in": "query", 533 | "description": "TRIGGER_CODE", 534 | "required": true, 535 | "schema": { 536 | "type": "integer", 537 | "format": "int64" 538 | } 539 | } 540 | ], 541 | "responses": { 542 | "200": { 543 | "description": "OK", 544 | "content": { 545 | "*/*": { 546 | "schema": { 547 | "$ref": "#/components/schemas/Result" 548 | } 549 | } 550 | } 551 | } 552 | } 553 | } 554 | }, 555 | "/projects/{projectCode}/process-instances/top-n": { 556 | "get": { 557 | "tags": [ 558 | "流程实例相关操作" 559 | ], 560 | "summary": "queryTopNLongestRunningProcessInstance", 561 | "description": "查询topN最长运行流程实例", 562 | "operationId": "queryTopNLongestRunningProcessInstance", 563 | "parameters": [ 564 | { 565 | "name": "projectCode", 566 | "in": "path", 567 | "description": "项目Code", 568 | "required": true, 569 | "schema": { 570 | "type": "integer", 571 | "format": "int64" 572 | } 573 | }, 574 | { 575 | "name": "size", 576 | "in": "query", 577 | "description": "流程实例个数", 578 | "required": true, 579 | "schema": { 580 | "type": "integer", 581 | "format": "int32" 582 | } 583 | }, 584 | { 585 | "name": "startTime", 586 | "in": "query", 587 | "description": "流程实例启动时间", 588 | "required": true, 589 | "schema": { 590 | "type": "string" 591 | } 592 | }, 593 | { 594 | "name": "endTime", 595 | "in": "query", 596 | "description": "流程实例结束时间", 597 | "required": true, 598 | "schema": { 599 | "type": "string" 600 | } 601 | } 602 | ], 603 | "responses": { 604 | "200": { 605 | "description": "OK", 606 | "content": { 607 | "*/*": { 608 | "schema": { 609 | "$ref": "#/components/schemas/ResultProcessInstance" 610 | } 611 | } 612 | } 613 | } 614 | } 615 | } 616 | }, 617 | "/projects/{projectCode}/process-instances/query-sub-by-parent": { 618 | "get": { 619 | "tags": [ 620 | "流程实例相关操作" 621 | ], 622 | "summary": "querySubProcessInstanceByTaskCode", 623 | "description": "QUERY_SUBPROCESS_INSTANCE_BY_TASK_CODE_NOTES", 624 | "operationId": "querySubProcessInstanceByTaskId", 625 | "parameters": [ 626 | { 627 | "name": "projectCode", 628 | "in": "path", 629 | "description": "项目Code", 630 | "required": true, 631 | "schema": { 632 | "type": "integer", 633 | "format": "int64" 634 | } 635 | }, 636 | { 637 | "name": "taskId", 638 | "in": "query", 639 | "required": true, 640 | "schema": { 641 | "type": "integer", 642 | "format": "int32" 643 | } 644 | }, 645 | { 646 | "name": "taskCode", 647 | "description": "TASK_CODE", 648 | "required": true, 649 | "schema": { 650 | "type": "integer", 651 | "format": "int64" 652 | } 653 | } 654 | ], 655 | "responses": { 656 | "200": { 657 | "description": "OK", 658 | "content": { 659 | "*/*": { 660 | "schema": { 661 | "$ref": "#/components/schemas/Result" 662 | } 663 | } 664 | } 665 | } 666 | } 667 | } 668 | }, 669 | "/projects/{projectCode}/process-instances/query-parent-by-sub": { 670 | "get": { 671 | "tags": [ 672 | "流程实例相关操作" 673 | ], 674 | "summary": "queryParentInstanceBySubId", 675 | "description": "通过子流程实例ID查询父流程实例信息", 676 | "operationId": "queryParentInstanceBySubId", 677 | "parameters": [ 678 | { 679 | "name": "projectCode", 680 | "in": "path", 681 | "description": "项目Code", 682 | "required": true, 683 | "schema": { 684 | "type": "integer", 685 | "format": "int64" 686 | } 687 | }, 688 | { 689 | "name": "subId", 690 | "in": "query", 691 | "description": "子流程实例ID", 692 | "required": true, 693 | "schema": { 694 | "type": "integer", 695 | "format": "int32" 696 | } 697 | } 698 | ], 699 | "responses": { 700 | "200": { 701 | "description": "OK", 702 | "content": { 703 | "*/*": { 704 | "schema": { 705 | "$ref": "#/components/schemas/Result" 706 | } 707 | } 708 | } 709 | } 710 | } 711 | } 712 | }, 713 | "/projects/{projectCode}/process-instances/query-dynamic-sub-workflows": { 714 | "get": { 715 | "tags": [ 716 | "流程实例相关操作" 717 | ], 718 | "summary": "queryDynamicSubWorkflowInstances", 719 | "description": "QUERY_DYNAMIC_SUBPROCESS_INSTANCE_BY_TASK_CODE_NOTES", 720 | "operationId": "queryDynamicSubWorkflowInstances", 721 | "parameters": [ 722 | { 723 | "name": "taskId", 724 | "in": "query", 725 | "description": "taskInstanceId", 726 | "required": true, 727 | "schema": { 728 | "type": "integer", 729 | "format": "int32" 730 | } 731 | } 732 | ], 733 | "responses": { 734 | "200": { 735 | "description": "OK", 736 | "content": { 737 | "*/*": { 738 | "schema": { 739 | "$ref": "#/components/schemas/ResultListDynamicSubWorkflowDto" 740 | } 741 | } 742 | } 743 | } 744 | } 745 | } 746 | } 747 | } 748 | } ``` -------------------------------------------------------------------------------- /mcp-openapi-split/paths/27_user_api.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "paths": { 3 | "/users/update": { 4 | "post": { 5 | "tags": [ 6 | "用户相关操作" 7 | ], 8 | "summary": "updateUser", 9 | "description": "更新用户", 10 | "operationId": "updateUser", 11 | "parameters": [ 12 | { 13 | "name": "id", 14 | "in": "query", 15 | "description": "用户ID", 16 | "required": true, 17 | "schema": { 18 | "type": "integer", 19 | "format": "int32" 20 | } 21 | }, 22 | { 23 | "name": "userName", 24 | "in": "query", 25 | "description": "用户名", 26 | "required": true, 27 | "schema": { 28 | "type": "string" 29 | } 30 | }, 31 | { 32 | "name": "userPassword", 33 | "in": "query", 34 | "description": "用户密码", 35 | "required": true, 36 | "schema": { 37 | "type": "string" 38 | } 39 | }, 40 | { 41 | "name": "queue", 42 | "in": "query", 43 | "description": "使用的队列", 44 | "required": false, 45 | "schema": { 46 | "type": "string" 47 | } 48 | }, 49 | { 50 | "name": "email", 51 | "in": "query", 52 | "description": "邮箱", 53 | "required": true, 54 | "schema": { 55 | "type": "string" 56 | } 57 | }, 58 | { 59 | "name": "tenantId", 60 | "in": "query", 61 | "description": "租户ID", 62 | "required": true, 63 | "schema": { 64 | "type": "integer", 65 | "format": "int32" 66 | } 67 | }, 68 | { 69 | "name": "phone", 70 | "in": "query", 71 | "description": "手机号", 72 | "required": false, 73 | "schema": { 74 | "type": "string" 75 | } 76 | }, 77 | { 78 | "name": "state", 79 | "in": "query", 80 | "description": "状态", 81 | "required": false, 82 | "schema": { 83 | "type": "integer", 84 | "format": "int32" 85 | } 86 | }, 87 | { 88 | "name": "timeZone", 89 | "in": "query", 90 | "required": false, 91 | "schema": { 92 | "type": "string" 93 | } 94 | } 95 | ], 96 | "responses": { 97 | "200": { 98 | "description": "OK", 99 | "content": { 100 | "*/*": { 101 | "schema": { 102 | "$ref": "#/components/schemas/ResultUser" 103 | } 104 | } 105 | } 106 | } 107 | } 108 | } 109 | }, 110 | "/users/revoke-project": { 111 | "post": { 112 | "tags": [ 113 | "用户相关操作" 114 | ], 115 | "summary": "revokeProject", 116 | "description": "撤销用户的项目权限", 117 | "operationId": "revokeProject", 118 | "parameters": [ 119 | { 120 | "name": "userId", 121 | "in": "query", 122 | "description": "用户ID", 123 | "required": true, 124 | "schema": { 125 | "type": "integer", 126 | "format": "int32" 127 | } 128 | }, 129 | { 130 | "name": "projectCode", 131 | "in": "query", 132 | "description": "项目Code", 133 | "required": true, 134 | "schema": { 135 | "type": "integer", 136 | "format": "int64" 137 | } 138 | } 139 | ], 140 | "responses": { 141 | "200": { 142 | "description": "OK", 143 | "content": { 144 | "*/*": { 145 | "schema": { 146 | "$ref": "#/components/schemas/Result" 147 | } 148 | } 149 | } 150 | } 151 | } 152 | } 153 | }, 154 | "/users/revoke-project-by-id": { 155 | "post": { 156 | "tags": [ 157 | "用户相关操作" 158 | ], 159 | "summary": "revokeProjectById", 160 | "description": "撤销用户的项目权限", 161 | "operationId": "revokeProjectById", 162 | "parameters": [ 163 | { 164 | "name": "userId", 165 | "in": "query", 166 | "description": "用户ID", 167 | "required": true, 168 | "schema": { 169 | "type": "integer", 170 | "format": "int32" 171 | } 172 | }, 173 | { 174 | "name": "projectIds", 175 | "in": "query", 176 | "description": "项目IDS(字符串格式,多个项目以\",\"分割)", 177 | "required": true, 178 | "schema": { 179 | "type": "string" 180 | } 181 | } 182 | ], 183 | "responses": { 184 | "200": { 185 | "description": "OK", 186 | "content": { 187 | "*/*": { 188 | "schema": { 189 | "$ref": "#/components/schemas/Result" 190 | } 191 | } 192 | } 193 | } 194 | } 195 | } 196 | }, 197 | "/users/register": { 198 | "post": { 199 | "tags": [ 200 | "用户相关操作" 201 | ], 202 | "summary": "registerUser", 203 | "description": "用户注册", 204 | "operationId": "registerUser", 205 | "parameters": [ 206 | { 207 | "name": "userName", 208 | "in": "query", 209 | "description": "用户名", 210 | "required": true, 211 | "schema": { 212 | "type": "string" 213 | } 214 | }, 215 | { 216 | "name": "userPassword", 217 | "in": "query", 218 | "description": "用户密码", 219 | "required": true, 220 | "schema": { 221 | "type": "string" 222 | } 223 | }, 224 | { 225 | "name": "repeatPassword", 226 | "in": "query", 227 | "description": "重复密码", 228 | "required": true, 229 | "schema": { 230 | "type": "string" 231 | } 232 | }, 233 | { 234 | "name": "email", 235 | "in": "query", 236 | "description": "邮箱", 237 | "required": true, 238 | "schema": { 239 | "type": "string" 240 | } 241 | } 242 | ], 243 | "responses": { 244 | "200": { 245 | "description": "OK", 246 | "content": { 247 | "*/*": { 248 | "schema": { 249 | "$ref": "#/components/schemas/ResultObject" 250 | } 251 | } 252 | } 253 | } 254 | } 255 | } 256 | }, 257 | "/users/grant-udf-func": { 258 | "post": { 259 | "tags": [ 260 | "用户相关操作" 261 | ], 262 | "summary": "grantUDFFunc", 263 | "description": "授权udf函数", 264 | "operationId": "grantUDFFunc", 265 | "parameters": [ 266 | { 267 | "name": "userId", 268 | "in": "query", 269 | "description": "用户ID", 270 | "required": true, 271 | "schema": { 272 | "type": "integer", 273 | "format": "int32" 274 | } 275 | }, 276 | { 277 | "name": "udfIds", 278 | "in": "query", 279 | "description": "udf函数id列表(字符串格式,多个udf函数ID以\",\"分割)", 280 | "required": true, 281 | "schema": { 282 | "type": "string" 283 | } 284 | } 285 | ], 286 | "responses": { 287 | "200": { 288 | "description": "OK", 289 | "content": { 290 | "*/*": { 291 | "schema": { 292 | "$ref": "#/components/schemas/Result" 293 | } 294 | } 295 | } 296 | } 297 | } 298 | } 299 | }, 300 | "/users/grant-project": { 301 | "post": { 302 | "tags": [ 303 | "用户相关操作" 304 | ], 305 | "summary": "grantProject", 306 | "description": "授权项目", 307 | "operationId": "grantProject", 308 | "parameters": [ 309 | { 310 | "name": "userId", 311 | "in": "query", 312 | "description": "用户ID", 313 | "required": true, 314 | "schema": { 315 | "type": "integer", 316 | "format": "int32" 317 | } 318 | }, 319 | { 320 | "name": "projectIds", 321 | "in": "query", 322 | "description": "项目IDS(字符串格式,多个项目以\",\"分割)", 323 | "required": true, 324 | "schema": { 325 | "type": "string" 326 | } 327 | } 328 | ], 329 | "responses": { 330 | "200": { 331 | "description": "OK", 332 | "content": { 333 | "*/*": { 334 | "schema": { 335 | "$ref": "#/components/schemas/Result" 336 | } 337 | } 338 | } 339 | } 340 | } 341 | } 342 | }, 343 | "/users/grant-project-with-read-perm": { 344 | "post": { 345 | "tags": [ 346 | "用户相关操作" 347 | ], 348 | "summary": "grantProjectWithReadPerm", 349 | "description": "GRANT_PROJECT_WITH_READ_PERM_NOTES", 350 | "operationId": "grantProjectWithReadPerm", 351 | "parameters": [ 352 | { 353 | "name": "userId", 354 | "in": "query", 355 | "description": "用户ID", 356 | "required": true, 357 | "schema": { 358 | "type": "integer", 359 | "format": "int32" 360 | } 361 | }, 362 | { 363 | "name": "projectIds", 364 | "in": "query", 365 | "description": "项目IDS(字符串格式,多个项目以\",\"分割)", 366 | "required": true, 367 | "schema": { 368 | "type": "string" 369 | } 370 | } 371 | ], 372 | "responses": { 373 | "200": { 374 | "description": "OK", 375 | "content": { 376 | "*/*": { 377 | "schema": { 378 | "$ref": "#/components/schemas/Result" 379 | } 380 | } 381 | } 382 | } 383 | } 384 | } 385 | }, 386 | "/users/grant-project-by-code": { 387 | "post": { 388 | "tags": [ 389 | "用户相关操作" 390 | ], 391 | "summary": "grantProjectByCode", 392 | "description": "授权项目", 393 | "operationId": "grantProjectByCode", 394 | "parameters": [ 395 | { 396 | "name": "userId", 397 | "in": "query", 398 | "description": "用户ID", 399 | "required": true, 400 | "schema": { 401 | "type": "integer", 402 | "format": "int32" 403 | } 404 | }, 405 | { 406 | "name": "projectCode", 407 | "in": "query", 408 | "description": "项目Code", 409 | "required": true, 410 | "schema": { 411 | "type": "integer", 412 | "format": "int64" 413 | } 414 | } 415 | ], 416 | "responses": { 417 | "200": { 418 | "description": "OK", 419 | "content": { 420 | "*/*": { 421 | "schema": { 422 | "$ref": "#/components/schemas/Result" 423 | } 424 | } 425 | } 426 | } 427 | } 428 | } 429 | }, 430 | "/users/grant-namespace": { 431 | "post": { 432 | "tags": [ 433 | "用户相关操作" 434 | ], 435 | "summary": "grantNamespace", 436 | "description": "GRANT_NAMESPACE_NOTES", 437 | "operationId": "grantNamespace", 438 | "parameters": [ 439 | { 440 | "name": "userId", 441 | "in": "query", 442 | "description": "用户ID", 443 | "required": true, 444 | "schema": { 445 | "type": "integer", 446 | "format": "int32" 447 | } 448 | }, 449 | { 450 | "name": "namespaceIds", 451 | "in": "query", 452 | "description": "NAMESPACE_IDS", 453 | "required": true, 454 | "schema": { 455 | "type": "string" 456 | } 457 | } 458 | ], 459 | "responses": { 460 | "200": { 461 | "description": "OK", 462 | "content": { 463 | "*/*": { 464 | "schema": { 465 | "$ref": "#/components/schemas/Result" 466 | } 467 | } 468 | } 469 | } 470 | } 471 | } 472 | }, 473 | "/users/grant-datasource": { 474 | "post": { 475 | "tags": [ 476 | "用户相关操作" 477 | ], 478 | "summary": "grantDataSource", 479 | "description": "授权数据源", 480 | "operationId": "grantDataSource", 481 | "parameters": [ 482 | { 483 | "name": "userId", 484 | "in": "query", 485 | "description": "用户ID", 486 | "required": true, 487 | "schema": { 488 | "type": "integer", 489 | "format": "int32" 490 | } 491 | }, 492 | { 493 | "name": "datasourceIds", 494 | "in": "query", 495 | "description": "数据源ID列表(字符串格式,多个数据源ID以\",\"分割)", 496 | "required": true, 497 | "schema": { 498 | "type": "string" 499 | } 500 | } 501 | ], 502 | "responses": { 503 | "200": { 504 | "description": "OK", 505 | "content": { 506 | "*/*": { 507 | "schema": { 508 | "$ref": "#/components/schemas/Result" 509 | } 510 | } 511 | } 512 | } 513 | } 514 | } 515 | }, 516 | "/users/delete": { 517 | "post": { 518 | "tags": [ 519 | "用户相关操作" 520 | ], 521 | "summary": "delUserById", 522 | "description": "删除用户通过ID", 523 | "operationId": "delUserById", 524 | "parameters": [ 525 | { 526 | "name": "id", 527 | "in": "query", 528 | "description": "用户ID", 529 | "required": true, 530 | "schema": { 531 | "type": "integer", 532 | "format": "int32" 533 | } 534 | } 535 | ], 536 | "responses": { 537 | "200": { 538 | "description": "OK", 539 | "content": { 540 | "*/*": { 541 | "schema": { 542 | "$ref": "#/components/schemas/Result" 543 | } 544 | } 545 | } 546 | } 547 | } 548 | } 549 | }, 550 | "/users/create": { 551 | "post": { 552 | "tags": [ 553 | "用户相关操作" 554 | ], 555 | "summary": "createUser", 556 | "description": "创建用户", 557 | "operationId": "createUser", 558 | "parameters": [ 559 | { 560 | "name": "userName", 561 | "in": "query", 562 | "description": "用户名", 563 | "required": true, 564 | "schema": { 565 | "type": "string" 566 | } 567 | }, 568 | { 569 | "name": "userPassword", 570 | "in": "query", 571 | "description": "用户密码", 572 | "required": true, 573 | "schema": { 574 | "type": "string" 575 | } 576 | }, 577 | { 578 | "name": "tenantId", 579 | "in": "query", 580 | "description": "租户ID", 581 | "required": true, 582 | "schema": { 583 | "type": "integer", 584 | "format": "int32" 585 | } 586 | }, 587 | { 588 | "name": "queue", 589 | "in": "query", 590 | "description": "使用的队列", 591 | "required": false, 592 | "schema": { 593 | "type": "string" 594 | } 595 | }, 596 | { 597 | "name": "email", 598 | "in": "query", 599 | "description": "邮箱", 600 | "required": true, 601 | "schema": { 602 | "type": "string" 603 | } 604 | }, 605 | { 606 | "name": "phone", 607 | "in": "query", 608 | "description": "手机号", 609 | "required": false, 610 | "schema": { 611 | "type": "string" 612 | } 613 | }, 614 | { 615 | "name": "state", 616 | "in": "query", 617 | "description": "状态", 618 | "required": false, 619 | "schema": { 620 | "type": "integer", 621 | "format": "int32" 622 | } 623 | } 624 | ], 625 | "responses": { 626 | "201": { 627 | "description": "Created", 628 | "content": { 629 | "*/*": { 630 | "schema": { 631 | "$ref": "#/components/schemas/Result" 632 | } 633 | } 634 | } 635 | } 636 | } 637 | } 638 | }, 639 | "/users/batch/activate": { 640 | "post": { 641 | "tags": [ 642 | "用户相关操作" 643 | ], 644 | "summary": "batchActivateUser", 645 | "description": "批量激活用户", 646 | "operationId": "batchActivateUser", 647 | "parameters": [ 648 | { 649 | "name": "userNames", 650 | "description": "多个用户名", 651 | "required": true, 652 | "schema": { 653 | "type": "string" 654 | } 655 | } 656 | ], 657 | "requestBody": { 658 | "content": { 659 | "application/json": { 660 | "schema": { 661 | "type": "string", 662 | "description": "多个用户名" 663 | } 664 | } 665 | }, 666 | "required": true 667 | }, 668 | "responses": { 669 | "200": { 670 | "description": "OK", 671 | "content": { 672 | "*/*": { 673 | "schema": { 674 | "$ref": "#/components/schemas/ResultObject" 675 | } 676 | } 677 | } 678 | } 679 | } 680 | } 681 | }, 682 | "/users/activate": { 683 | "post": { 684 | "tags": [ 685 | "用户相关操作" 686 | ], 687 | "summary": "activateUser", 688 | "description": "激活用户", 689 | "operationId": "activateUser", 690 | "parameters": [ 691 | { 692 | "name": "userName", 693 | "in": "query", 694 | "description": "用户名", 695 | "required": true, 696 | "schema": { 697 | "type": "string" 698 | } 699 | } 700 | ], 701 | "responses": { 702 | "200": { 703 | "description": "OK", 704 | "content": { 705 | "*/*": { 706 | "schema": { 707 | "$ref": "#/components/schemas/ResultObject" 708 | } 709 | } 710 | } 711 | } 712 | } 713 | } 714 | }, 715 | "/users/verify-user-name": { 716 | "get": { 717 | "tags": [ 718 | "用户相关操作" 719 | ], 720 | "summary": "verifyUserName", 721 | "description": "验证用户名", 722 | "operationId": "verifyUserName", 723 | "parameters": [ 724 | { 725 | "name": "userName", 726 | "in": "query", 727 | "description": "用户名", 728 | "required": true, 729 | "schema": { 730 | "type": "string" 731 | } 732 | } 733 | ], 734 | "responses": { 735 | "200": { 736 | "description": "OK", 737 | "content": { 738 | "*/*": { 739 | "schema": { 740 | "$ref": "#/components/schemas/Result" 741 | } 742 | } 743 | } 744 | } 745 | } 746 | } 747 | }, 748 | "/users/unauth-user": { 749 | "get": { 750 | "tags": [ 751 | "用户相关操作" 752 | ], 753 | "summary": "unauthorizedUser", 754 | "description": "取消授权", 755 | "operationId": "unauthorizedUser", 756 | "parameters": [ 757 | { 758 | "name": "alertgroupId", 759 | "in": "query", 760 | "description": "告警组ID", 761 | "required": true, 762 | "schema": { 763 | "type": "string" 764 | } 765 | } 766 | ], 767 | "responses": { 768 | "200": { 769 | "description": "OK", 770 | "content": { 771 | "*/*": { 772 | "schema": { 773 | "$ref": "#/components/schemas/Result" 774 | } 775 | } 776 | } 777 | } 778 | } 779 | } 780 | }, 781 | "/users/list": { 782 | "get": { 783 | "tags": [ 784 | "用户相关操作" 785 | ], 786 | "summary": "listUser", 787 | "description": "用户列表", 788 | "operationId": "listUser", 789 | "responses": { 790 | "200": { 791 | "description": "OK", 792 | "content": { 793 | "*/*": { 794 | "schema": { 795 | "$ref": "#/components/schemas/Result" 796 | } 797 | } 798 | } 799 | } 800 | } 801 | } 802 | }, 803 | "/users/list-paging": { 804 | "get": { 805 | "tags": [ 806 | "用户相关操作" 807 | ], 808 | "summary": "queryUserList", 809 | "description": "查询用户列表", 810 | "operationId": "queryUserList", 811 | "parameters": [ 812 | { 813 | "name": "pageNo", 814 | "in": "query", 815 | "description": "页码号", 816 | "required": true, 817 | "schema": { 818 | "type": "integer", 819 | "format": "int32" 820 | } 821 | }, 822 | { 823 | "name": "pageSize", 824 | "in": "query", 825 | "description": "页大小", 826 | "required": true, 827 | "schema": { 828 | "type": "integer", 829 | "format": "int32" 830 | } 831 | }, 832 | { 833 | "name": "searchVal", 834 | "in": "query", 835 | "description": "搜索值", 836 | "required": false, 837 | "schema": { 838 | "type": "string" 839 | } 840 | } 841 | ], 842 | "responses": { 843 | "200": { 844 | "description": "OK", 845 | "content": { 846 | "*/*": { 847 | "schema": { 848 | "$ref": "#/components/schemas/Result" 849 | } 850 | } 851 | } 852 | } 853 | } 854 | } 855 | }, 856 | "/users/list-all": { 857 | "get": { 858 | "tags": [ 859 | "用户相关操作" 860 | ], 861 | "operationId": "listAll", 862 | "responses": { 863 | "200": { 864 | "description": "OK", 865 | "content": { 866 | "*/*": { 867 | "schema": { 868 | "$ref": "#/components/schemas/Result" 869 | } 870 | } 871 | } 872 | } 873 | } 874 | } 875 | }, 876 | "/users/get-user-info": { 877 | "get": { 878 | "tags": [ 879 | "用户相关操作" 880 | ], 881 | "summary": "getUserInfo", 882 | "description": "获取用户信息", 883 | "operationId": "getUserInfo", 884 | "responses": { 885 | "200": { 886 | "description": "OK", 887 | "content": { 888 | "*/*": { 889 | "schema": { 890 | "$ref": "#/components/schemas/Result" 891 | } 892 | } 893 | } 894 | } 895 | } 896 | } 897 | }, 898 | "/users/authed-user": { 899 | "get": { 900 | "tags": [ 901 | "用户相关操作" 902 | ], 903 | "summary": "authorizedUser", 904 | "description": "授权用户", 905 | "operationId": "authorizedUser", 906 | "parameters": [ 907 | { 908 | "name": "alertgroupId", 909 | "in": "query", 910 | "description": "告警组ID", 911 | "required": true, 912 | "schema": { 913 | "type": "string" 914 | } 915 | } 916 | ], 917 | "responses": { 918 | "200": { 919 | "description": "OK", 920 | "content": { 921 | "*/*": { 922 | "schema": { 923 | "$ref": "#/components/schemas/Result" 924 | } 925 | } 926 | } 927 | } 928 | } 929 | } 930 | } 931 | } 932 | } ``` -------------------------------------------------------------------------------- /mcp-openapi-split/paths/24_process_execution_api.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "paths": { 3 | "/projects/{projectCode}/executors/task-instance/{code}/start": { 4 | "post": { 5 | "tags": [ 6 | "流程相关操作" 7 | ], 8 | "summary": "startTaskInstance", 9 | "description": "运行任务实例", 10 | "operationId": "startStreamTaskInstance", 11 | "parameters": [ 12 | { 13 | "name": "projectCode", 14 | "in": "path", 15 | "description": "项目Code", 16 | "required": true, 17 | "schema": { 18 | "type": "integer", 19 | "format": "int64" 20 | } 21 | }, 22 | { 23 | "name": "code", 24 | "in": "path", 25 | "description": "TASK_CODE", 26 | "required": true, 27 | "schema": { 28 | "type": "integer", 29 | "format": "int64" 30 | } 31 | }, 32 | { 33 | "name": "version", 34 | "in": "query", 35 | "description": "版本号", 36 | "required": true, 37 | "schema": { 38 | "type": "integer", 39 | "format": "int32" 40 | } 41 | }, 42 | { 43 | "name": "warningGroupId", 44 | "in": "query", 45 | "description": "发送组ID", 46 | "required": false, 47 | "schema": { 48 | "type": "integer", 49 | "format": "int32" 50 | } 51 | }, 52 | { 53 | "name": "workerGroup", 54 | "in": "query", 55 | "description": "worker群组", 56 | "required": false, 57 | "schema": { 58 | "type": "string" 59 | } 60 | }, 61 | { 62 | "name": "tenantCode", 63 | "in": "query", 64 | "description": "操作系统租户", 65 | "required": false, 66 | "schema": { 67 | "type": "string" 68 | } 69 | }, 70 | { 71 | "name": "environmentCode", 72 | "in": "query", 73 | "description": "环境代码", 74 | "required": false, 75 | "schema": { 76 | "type": "integer", 77 | "format": "int64" 78 | } 79 | }, 80 | { 81 | "name": "startParams", 82 | "in": "query", 83 | "required": false, 84 | "schema": { 85 | "type": "string" 86 | } 87 | }, 88 | { 89 | "name": "dryRun", 90 | "in": "query", 91 | "description": "是否空跑", 92 | "required": false, 93 | "schema": { 94 | "type": "integer", 95 | "format": "int32" 96 | } 97 | }, 98 | { 99 | "name": "failureStrategy", 100 | "description": "失败策略", 101 | "required": true, 102 | "schema": { 103 | "type": "string", 104 | "enum": [ 105 | "END", 106 | "CONTINUE" 107 | ] 108 | } 109 | }, 110 | { 111 | "name": "execType", 112 | "description": "指令类型", 113 | "schema": { 114 | "type": "string", 115 | "enum": [ 116 | "START_PROCESS", 117 | "START_CURRENT_TASK_PROCESS", 118 | "RECOVER_TOLERANCE_FAULT_PROCESS", 119 | "RECOVER_SUSPENDED_PROCESS", 120 | "START_FAILURE_TASK_PROCESS", 121 | "COMPLEMENT_DATA", 122 | "SCHEDULER", 123 | "REPEAT_RUNNING", 124 | "PAUSE", 125 | "STOP", 126 | "RECOVER_WAITING_THREAD", 127 | "RECOVER_SERIAL_WAIT", 128 | "EXECUTE_TASK", 129 | "DYNAMIC_GENERATION" 130 | ] 131 | } 132 | }, 133 | { 134 | "name": "warningType", 135 | "description": "发送策略", 136 | "required": true, 137 | "schema": { 138 | "type": "string", 139 | "enum": [ 140 | "NONE", 141 | "SUCCESS", 142 | "FAILURE", 143 | "ALL", 144 | "GLOBAL" 145 | ] 146 | } 147 | }, 148 | { 149 | "name": "timeout", 150 | "description": "超时时间", 151 | "schema": { 152 | "type": "integer", 153 | "format": "int32" 154 | } 155 | } 156 | ], 157 | "responses": { 158 | "200": { 159 | "description": "OK", 160 | "content": { 161 | "*/*": { 162 | "schema": { 163 | "$ref": "#/components/schemas/ResultBoolean" 164 | } 165 | } 166 | } 167 | } 168 | } 169 | } 170 | }, 171 | "/projects/{projectCode}/executors/start-process-instance": { 172 | "post": { 173 | "tags": [ 174 | "流程相关操作" 175 | ], 176 | "summary": "startProcessInstance", 177 | "description": "运行流程实例", 178 | "operationId": "startProcessInstance", 179 | "parameters": [ 180 | { 181 | "name": "projectCode", 182 | "in": "path", 183 | "description": "项目Code", 184 | "required": true, 185 | "schema": { 186 | "type": "integer", 187 | "format": "int64" 188 | } 189 | }, 190 | { 191 | "name": "processDefinitionCode", 192 | "in": "query", 193 | "description": "流程定义编码", 194 | "required": true, 195 | "schema": { 196 | "type": "integer", 197 | "format": "int64" 198 | }, 199 | "example": 100 200 | }, 201 | { 202 | "name": "scheduleTime", 203 | "in": "query", 204 | "description": "定时时间,空字符串表示当前天", 205 | "required": true, 206 | "schema": { 207 | "type": "string" 208 | }, 209 | "example": "2022-04-06 00:00:00,2022-04-06 00:00:00" 210 | }, 211 | { 212 | "name": "failureStrategy", 213 | "in": "query", 214 | "description": "失败策略", 215 | "required": true, 216 | "schema": { 217 | "type": "string", 218 | "enum": [ 219 | "END", 220 | "CONTINUE" 221 | ] 222 | } 223 | }, 224 | { 225 | "name": "startNodeList", 226 | "in": "query", 227 | "description": "开始节点列表(节点name)", 228 | "required": false, 229 | "schema": { 230 | "type": "string" 231 | } 232 | }, 233 | { 234 | "name": "taskDependType", 235 | "in": "query", 236 | "description": "任务依赖类型", 237 | "required": false, 238 | "schema": { 239 | "type": "string", 240 | "enum": [ 241 | "TASK_ONLY", 242 | "TASK_PRE", 243 | "TASK_POST" 244 | ] 245 | } 246 | }, 247 | { 248 | "name": "execType", 249 | "in": "query", 250 | "description": "指令类型", 251 | "required": false, 252 | "schema": { 253 | "type": "string", 254 | "enum": [ 255 | "START_PROCESS", 256 | "START_CURRENT_TASK_PROCESS", 257 | "RECOVER_TOLERANCE_FAULT_PROCESS", 258 | "RECOVER_SUSPENDED_PROCESS", 259 | "START_FAILURE_TASK_PROCESS", 260 | "COMPLEMENT_DATA", 261 | "SCHEDULER", 262 | "REPEAT_RUNNING", 263 | "PAUSE", 264 | "STOP", 265 | "RECOVER_WAITING_THREAD", 266 | "RECOVER_SERIAL_WAIT", 267 | "EXECUTE_TASK", 268 | "DYNAMIC_GENERATION" 269 | ] 270 | } 271 | }, 272 | { 273 | "name": "warningType", 274 | "in": "query", 275 | "description": "发送策略", 276 | "required": true, 277 | "schema": { 278 | "type": "string", 279 | "enum": [ 280 | "NONE", 281 | "SUCCESS", 282 | "FAILURE", 283 | "ALL", 284 | "GLOBAL" 285 | ] 286 | } 287 | }, 288 | { 289 | "name": "warningGroupId", 290 | "in": "query", 291 | "description": "发送组ID", 292 | "required": false, 293 | "schema": { 294 | "type": "integer", 295 | "format": "int32" 296 | } 297 | }, 298 | { 299 | "name": "runMode", 300 | "in": "query", 301 | "description": "运行模式", 302 | "required": false, 303 | "schema": { 304 | "type": "string", 305 | "enum": [ 306 | "RUN_MODE_SERIAL", 307 | "RUN_MODE_PARALLEL" 308 | ] 309 | } 310 | }, 311 | { 312 | "name": "processInstancePriority", 313 | "in": "query", 314 | "description": "流程实例优先级", 315 | "required": true, 316 | "schema": { 317 | "type": "string", 318 | "enum": [ 319 | "HIGHEST", 320 | "HIGH", 321 | "MEDIUM", 322 | "LOW", 323 | "LOWEST" 324 | ] 325 | } 326 | }, 327 | { 328 | "name": "workerGroup", 329 | "in": "query", 330 | "description": "worker群组", 331 | "required": false, 332 | "schema": { 333 | "type": "string" 334 | } 335 | }, 336 | { 337 | "name": "tenantCode", 338 | "in": "query", 339 | "description": "操作系统租户", 340 | "required": false, 341 | "schema": { 342 | "type": "string" 343 | } 344 | }, 345 | { 346 | "name": "environmentCode", 347 | "in": "query", 348 | "description": "环境代码", 349 | "required": false, 350 | "schema": { 351 | "type": "integer", 352 | "format": "int64" 353 | } 354 | }, 355 | { 356 | "name": "timeout", 357 | "in": "query", 358 | "description": "超时时间", 359 | "required": false, 360 | "schema": { 361 | "type": "integer", 362 | "format": "int32" 363 | } 364 | }, 365 | { 366 | "name": "startParams", 367 | "in": "query", 368 | "required": false, 369 | "schema": { 370 | "type": "string" 371 | } 372 | }, 373 | { 374 | "name": "expectedParallelismNumber", 375 | "in": "query", 376 | "description": "补数任务自定义并行度", 377 | "required": false, 378 | "schema": { 379 | "type": "integer", 380 | "format": "int32" 381 | } 382 | }, 383 | { 384 | "name": "dryRun", 385 | "in": "query", 386 | "description": "是否空跑", 387 | "required": false, 388 | "schema": { 389 | "type": "integer", 390 | "format": "int32" 391 | } 392 | }, 393 | { 394 | "name": "testFlag", 395 | "in": "query", 396 | "description": "测试标识", 397 | "required": false, 398 | "schema": { 399 | "type": "integer", 400 | "format": "int32" 401 | } 402 | }, 403 | { 404 | "name": "complementDependentMode", 405 | "in": "query", 406 | "description": "补数依赖的类型", 407 | "required": false, 408 | "schema": { 409 | "type": "string", 410 | "enum": [ 411 | "OFF_MODE", 412 | "ALL_DEPENDENT" 413 | ] 414 | } 415 | }, 416 | { 417 | "name": "version", 418 | "in": "query", 419 | "required": false, 420 | "schema": { 421 | "type": "integer", 422 | "format": "int32" 423 | } 424 | }, 425 | { 426 | "name": "allLevelDependent", 427 | "in": "query", 428 | "description": "ALL_LEVEL_DEPENDENT", 429 | "required": false, 430 | "schema": { 431 | "type": "boolean" 432 | } 433 | }, 434 | { 435 | "name": "executionOrder", 436 | "in": "query", 437 | "description": "EXECUTION_ORDER", 438 | "required": false, 439 | "schema": { 440 | "type": "string", 441 | "enum": [ 442 | "DESC_ORDER", 443 | "ASC_ORDER" 444 | ] 445 | } 446 | } 447 | ], 448 | "responses": { 449 | "200": { 450 | "description": "OK", 451 | "content": { 452 | "*/*": { 453 | "schema": { 454 | "$ref": "#/components/schemas/Result" 455 | } 456 | } 457 | } 458 | } 459 | } 460 | } 461 | }, 462 | "/projects/{projectCode}/executors/start-check": { 463 | "post": { 464 | "tags": [ 465 | "流程相关操作" 466 | ], 467 | "summary": "startCheckProcessDefinition", 468 | "description": "检查流程定义", 469 | "operationId": "startCheckProcessDefinition", 470 | "parameters": [ 471 | { 472 | "name": "processDefinitionCode", 473 | "in": "query", 474 | "description": "流程定义编码", 475 | "required": true, 476 | "schema": { 477 | "type": "integer", 478 | "format": "int64" 479 | } 480 | } 481 | ], 482 | "responses": { 483 | "200": { 484 | "description": "OK", 485 | "content": { 486 | "*/*": { 487 | "schema": { 488 | "$ref": "#/components/schemas/Result" 489 | } 490 | } 491 | } 492 | } 493 | } 494 | } 495 | }, 496 | "/projects/{projectCode}/executors/execute": { 497 | "post": { 498 | "tags": [ 499 | "流程相关操作" 500 | ], 501 | "summary": "execute", 502 | "description": "执行流程实例的各种操作(暂停、停止、重跑、恢复等)", 503 | "operationId": "execute", 504 | "parameters": [ 505 | { 506 | "name": "projectCode", 507 | "in": "path", 508 | "description": "项目Code", 509 | "required": true, 510 | "schema": { 511 | "type": "integer", 512 | "format": "int64" 513 | } 514 | }, 515 | { 516 | "name": "processInstanceId", 517 | "in": "query", 518 | "description": "流程实例ID", 519 | "required": true, 520 | "schema": { 521 | "type": "integer", 522 | "format": "int32" 523 | } 524 | }, 525 | { 526 | "name": "executeType", 527 | "in": "query", 528 | "description": "执行类型", 529 | "required": true, 530 | "schema": { 531 | "type": "string", 532 | "enum": [ 533 | "NONE", 534 | "REPEAT_RUNNING", 535 | "RECOVER_SUSPENDED_PROCESS", 536 | "START_FAILURE_TASK_PROCESS", 537 | "STOP", 538 | "PAUSE", 539 | "EXECUTE_TASK" 540 | ] 541 | } 542 | } 543 | ], 544 | "responses": { 545 | "200": { 546 | "description": "OK", 547 | "content": { 548 | "*/*": { 549 | "schema": { 550 | "$ref": "#/components/schemas/Result" 551 | } 552 | } 553 | } 554 | } 555 | } 556 | } 557 | }, 558 | "/projects/{projectCode}/executors/execute-task": { 559 | "post": { 560 | "tags": [ 561 | "流程相关操作" 562 | ], 563 | "summary": "execute-task", 564 | "description": "执行流程实例的各种操作(暂停、停止、重跑、恢复等)", 565 | "operationId": "executeTask", 566 | "parameters": [ 567 | { 568 | "name": "projectCode", 569 | "in": "path", 570 | "description": "项目Code", 571 | "required": true, 572 | "schema": { 573 | "type": "integer", 574 | "format": "int64" 575 | } 576 | }, 577 | { 578 | "name": "processInstanceId", 579 | "in": "query", 580 | "description": "流程实例ID", 581 | "required": true, 582 | "schema": { 583 | "type": "integer", 584 | "format": "int32" 585 | } 586 | }, 587 | { 588 | "name": "startNodeList", 589 | "in": "query", 590 | "description": "开始节点列表(节点name)", 591 | "required": true, 592 | "schema": { 593 | "type": "string" 594 | } 595 | }, 596 | { 597 | "name": "taskDependType", 598 | "in": "query", 599 | "description": "任务依赖类型", 600 | "required": true, 601 | "schema": { 602 | "type": "string", 603 | "enum": [ 604 | "TASK_ONLY", 605 | "TASK_PRE", 606 | "TASK_POST" 607 | ] 608 | } 609 | } 610 | ], 611 | "responses": { 612 | "200": { 613 | "description": "OK", 614 | "content": { 615 | "*/*": { 616 | "schema": { 617 | "$ref": "#/components/schemas/Result" 618 | } 619 | } 620 | } 621 | } 622 | } 623 | } 624 | }, 625 | "/projects/{projectCode}/executors/batch-start-process-instance": { 626 | "post": { 627 | "tags": [ 628 | "流程相关操作" 629 | ], 630 | "summary": "batchStartProcessInstance", 631 | "description": "批量运行流程实例(其中有任意一个processDefinitionCode找不到,则返回失败信息并且状态置为失败,成功的任务会正常运行,不会停止)", 632 | "operationId": "batchStartProcessInstance", 633 | "parameters": [ 634 | { 635 | "name": "projectCode", 636 | "in": "path", 637 | "description": "项目Code", 638 | "required": true, 639 | "schema": { 640 | "type": "integer", 641 | "format": "int64" 642 | } 643 | }, 644 | { 645 | "name": "processDefinitionCodes", 646 | "in": "query", 647 | "description": "流程定义编码列表", 648 | "required": true, 649 | "schema": { 650 | "type": "string" 651 | } 652 | }, 653 | { 654 | "name": "scheduleTime", 655 | "in": "query", 656 | "description": "定时时间,空字符串表示当前天", 657 | "required": true, 658 | "schema": { 659 | "type": "string" 660 | } 661 | }, 662 | { 663 | "name": "failureStrategy", 664 | "in": "query", 665 | "description": "失败策略", 666 | "required": true, 667 | "schema": { 668 | "type": "string", 669 | "enum": [ 670 | "END", 671 | "CONTINUE" 672 | ] 673 | } 674 | }, 675 | { 676 | "name": "startNodeList", 677 | "in": "query", 678 | "description": "开始节点列表(节点name)", 679 | "required": false, 680 | "schema": { 681 | "type": "string" 682 | } 683 | }, 684 | { 685 | "name": "taskDependType", 686 | "in": "query", 687 | "description": "任务依赖类型", 688 | "required": false, 689 | "schema": { 690 | "type": "string", 691 | "enum": [ 692 | "TASK_ONLY", 693 | "TASK_PRE", 694 | "TASK_POST" 695 | ] 696 | } 697 | }, 698 | { 699 | "name": "execType", 700 | "in": "query", 701 | "description": "指令类型", 702 | "required": false, 703 | "schema": { 704 | "type": "string", 705 | "enum": [ 706 | "START_PROCESS", 707 | "START_CURRENT_TASK_PROCESS", 708 | "RECOVER_TOLERANCE_FAULT_PROCESS", 709 | "RECOVER_SUSPENDED_PROCESS", 710 | "START_FAILURE_TASK_PROCESS", 711 | "COMPLEMENT_DATA", 712 | "SCHEDULER", 713 | "REPEAT_RUNNING", 714 | "PAUSE", 715 | "STOP", 716 | "RECOVER_WAITING_THREAD", 717 | "RECOVER_SERIAL_WAIT", 718 | "EXECUTE_TASK", 719 | "DYNAMIC_GENERATION" 720 | ] 721 | } 722 | }, 723 | { 724 | "name": "warningType", 725 | "in": "query", 726 | "description": "发送策略", 727 | "required": true, 728 | "schema": { 729 | "type": "string", 730 | "enum": [ 731 | "NONE", 732 | "SUCCESS", 733 | "FAILURE", 734 | "ALL", 735 | "GLOBAL" 736 | ] 737 | } 738 | }, 739 | { 740 | "name": "warningGroupId", 741 | "in": "query", 742 | "description": "发送组ID", 743 | "required": true, 744 | "schema": { 745 | "type": "integer", 746 | "format": "int32" 747 | } 748 | }, 749 | { 750 | "name": "runMode", 751 | "in": "query", 752 | "description": "运行模式", 753 | "required": false, 754 | "schema": { 755 | "type": "string", 756 | "enum": [ 757 | "RUN_MODE_SERIAL", 758 | "RUN_MODE_PARALLEL" 759 | ] 760 | } 761 | }, 762 | { 763 | "name": "processInstancePriority", 764 | "in": "query", 765 | "description": "流程实例优先级", 766 | "required": true, 767 | "schema": { 768 | "type": "string", 769 | "enum": [ 770 | "HIGHEST", 771 | "HIGH", 772 | "MEDIUM", 773 | "LOW", 774 | "LOWEST" 775 | ] 776 | } 777 | }, 778 | { 779 | "name": "workerGroup", 780 | "in": "query", 781 | "description": "worker群组", 782 | "required": false, 783 | "schema": { 784 | "type": "string" 785 | } 786 | }, 787 | { 788 | "name": "tenantCode", 789 | "in": "query", 790 | "description": "操作系统租户", 791 | "required": false, 792 | "schema": { 793 | "type": "string" 794 | } 795 | }, 796 | { 797 | "name": "environmentCode", 798 | "in": "query", 799 | "description": "环境代码", 800 | "required": false, 801 | "schema": { 802 | "type": "integer", 803 | "format": "int64" 804 | } 805 | }, 806 | { 807 | "name": "timeout", 808 | "in": "query", 809 | "description": "超时时间", 810 | "required": false, 811 | "schema": { 812 | "type": "integer", 813 | "format": "int32" 814 | } 815 | }, 816 | { 817 | "name": "startParams", 818 | "in": "query", 819 | "required": false, 820 | "schema": { 821 | "type": "string" 822 | } 823 | }, 824 | { 825 | "name": "expectedParallelismNumber", 826 | "in": "query", 827 | "description": "补数任务自定义并行度", 828 | "required": false, 829 | "schema": { 830 | "type": "integer", 831 | "format": "int32" 832 | } 833 | }, 834 | { 835 | "name": "dryRun", 836 | "in": "query", 837 | "description": "是否空跑", 838 | "required": false, 839 | "schema": { 840 | "type": "integer", 841 | "format": "int32" 842 | } 843 | }, 844 | { 845 | "name": "testFlag", 846 | "in": "query", 847 | "description": "测试标识", 848 | "required": false, 849 | "schema": { 850 | "type": "integer", 851 | "format": "int32" 852 | } 853 | }, 854 | { 855 | "name": "complementDependentMode", 856 | "in": "query", 857 | "description": "补数依赖的类型", 858 | "required": false, 859 | "schema": { 860 | "type": "string", 861 | "enum": [ 862 | "OFF_MODE", 863 | "ALL_DEPENDENT" 864 | ] 865 | } 866 | }, 867 | { 868 | "name": "allLevelDependent", 869 | "in": "query", 870 | "description": "ALL_LEVEL_DEPENDENT", 871 | "required": false, 872 | "schema": { 873 | "type": "boolean" 874 | } 875 | }, 876 | { 877 | "name": "executionOrder", 878 | "in": "query", 879 | "description": "EXECUTION_ORDER", 880 | "required": false, 881 | "schema": { 882 | "type": "string", 883 | "enum": [ 884 | "DESC_ORDER", 885 | "ASC_ORDER" 886 | ] 887 | } 888 | } 889 | ], 890 | "responses": { 891 | "200": { 892 | "description": "OK", 893 | "content": { 894 | "*/*": { 895 | "schema": { 896 | "$ref": "#/components/schemas/Result" 897 | } 898 | } 899 | } 900 | } 901 | } 902 | } 903 | }, 904 | "/projects/{projectCode}/executors/batch-execute": { 905 | "post": { 906 | "tags": [ 907 | "流程相关操作" 908 | ], 909 | "summary": "batchExecute", 910 | "description": "批量修改工作流实例状态(当实例id找不到时会报对应id的错误,当部分实例更改状态不符合预期会说明这部分的具体原因)", 911 | "operationId": "batchExecute", 912 | "parameters": [ 913 | { 914 | "name": "projectCode", 915 | "in": "path", 916 | "description": "项目Code", 917 | "required": true, 918 | "schema": { 919 | "type": "integer", 920 | "format": "int32" 921 | } 922 | }, 923 | { 924 | "name": "processInstanceIds", 925 | "in": "query", 926 | "description": "流程实例ID集合,如果有多个流程实例则用 \",\" 分隔", 927 | "required": true, 928 | "schema": { 929 | "type": "string" 930 | } 931 | }, 932 | { 933 | "name": "executeType", 934 | "in": "query", 935 | "description": "执行类型", 936 | "required": true, 937 | "schema": { 938 | "type": "string", 939 | "enum": [ 940 | "NONE", 941 | "REPEAT_RUNNING", 942 | "RECOVER_SUSPENDED_PROCESS", 943 | "START_FAILURE_TASK_PROCESS", 944 | "STOP", 945 | "PAUSE", 946 | "EXECUTE_TASK" 947 | ] 948 | } 949 | } 950 | ], 951 | "responses": { 952 | "200": { 953 | "description": "OK", 954 | "content": { 955 | "*/*": { 956 | "schema": { 957 | "$ref": "#/components/schemas/Result" 958 | } 959 | } 960 | } 961 | } 962 | } 963 | } 964 | }, 965 | "/projects/{projectCode}/executors/query-executing-workflow": { 966 | "get": { 967 | "tags": [ 968 | "流程相关操作" 969 | ], 970 | "summary": "queryExecutingWorkflow", 971 | "description": "查询工作流执行数据", 972 | "operationId": "queryExecutingWorkflow", 973 | "parameters": [ 974 | { 975 | "name": "id", 976 | "in": "query", 977 | "required": true, 978 | "schema": { 979 | "type": "integer", 980 | "format": "int32" 981 | } 982 | }, 983 | { 984 | "name": "processInstanceId", 985 | "description": "流程实例ID", 986 | "required": true, 987 | "schema": { 988 | "type": "integer", 989 | "format": "int32" 990 | } 991 | } 992 | ], 993 | "responses": { 994 | "200": { 995 | "description": "OK", 996 | "content": { 997 | "*/*": { 998 | "schema": { 999 | "$ref": "#/components/schemas/Result" 1000 | } 1001 | } 1002 | } 1003 | } 1004 | } 1005 | } 1006 | } 1007 | } 1008 | } ``` -------------------------------------------------------------------------------- /mcp-openapi-split/schemas/22_result_schemas.json: -------------------------------------------------------------------------------- ```json 1 | { 2 | "components": { 3 | "schemas": { 4 | "ResultBoolean": { 5 | "type": "object", 6 | "properties": { 7 | "code": { 8 | "type": "integer", 9 | "format": "int32" 10 | }, 11 | "msg": { 12 | "type": "string" 13 | }, 14 | "data": { 15 | "type": "boolean" 16 | }, 17 | "failed": { 18 | "type": "boolean" 19 | }, 20 | "success": { 21 | "type": "boolean" 22 | } 23 | } 24 | }, 25 | "ResultObject": { 26 | "type": "object", 27 | "properties": { 28 | "code": { 29 | "type": "integer", 30 | "format": "int32" 31 | }, 32 | "msg": { 33 | "type": "string" 34 | }, 35 | "data": { 36 | "type": "object" 37 | }, 38 | "failed": { 39 | "type": "boolean" 40 | }, 41 | "success": { 42 | "type": "boolean" 43 | } 44 | } 45 | }, 46 | "Result": { 47 | "type": "object", 48 | "properties": { 49 | "code": { 50 | "type": "integer", 51 | "format": "int32" 52 | }, 53 | "msg": { 54 | "type": "string" 55 | }, 56 | "data": { 57 | "type": "object" 58 | }, 59 | "failed": { 60 | "type": "boolean" 61 | }, 62 | "success": { 63 | "type": "boolean" 64 | } 65 | } 66 | }, 67 | "ResultQueue": { 68 | "type": "object", 69 | "properties": { 70 | "code": { 71 | "type": "integer", 72 | "format": "int32" 73 | }, 74 | "msg": { 75 | "type": "string" 76 | }, 77 | "data": { 78 | "$ref": "#/components/schemas/Queue" 79 | }, 80 | "failed": { 81 | "type": "boolean" 82 | }, 83 | "success": { 84 | "type": "boolean" 85 | } 86 | } 87 | }, 88 | "ResultDataSource": { 89 | "type": "object", 90 | "properties": { 91 | "code": { 92 | "type": "integer", 93 | "format": "int32" 94 | }, 95 | "msg": { 96 | "type": "string" 97 | }, 98 | "data": { 99 | "$ref": "#/components/schemas/DataSource" 100 | }, 101 | "failed": { 102 | "type": "boolean" 103 | }, 104 | "success": { 105 | "type": "boolean" 106 | } 107 | } 108 | }, 109 | "ResultAlertPluginInstance": { 110 | "type": "object", 111 | "properties": { 112 | "code": { 113 | "type": "integer", 114 | "format": "int32" 115 | }, 116 | "msg": { 117 | "type": "string" 118 | }, 119 | "data": { 120 | "$ref": "#/components/schemas/AlertPluginInstance" 121 | }, 122 | "failed": { 123 | "type": "boolean" 124 | }, 125 | "success": { 126 | "type": "boolean" 127 | } 128 | } 129 | }, 130 | "ResultAlertGroup": { 131 | "type": "object", 132 | "properties": { 133 | "code": { 134 | "type": "integer", 135 | "format": "int32" 136 | }, 137 | "msg": { 138 | "type": "string" 139 | }, 140 | "data": { 141 | "$ref": "#/components/schemas/AlertGroup" 142 | }, 143 | "failed": { 144 | "type": "boolean" 145 | }, 146 | "success": { 147 | "type": "boolean" 148 | } 149 | } 150 | }, 151 | "ResultAccessToken": { 152 | "type": "object", 153 | "properties": { 154 | "code": { 155 | "type": "integer", 156 | "format": "int32" 157 | }, 158 | "msg": { 159 | "type": "string" 160 | }, 161 | "data": { 162 | "$ref": "#/components/schemas/AccessToken" 163 | }, 164 | "failed": { 165 | "type": "boolean" 166 | }, 167 | "success": { 168 | "type": "boolean" 169 | } 170 | } 171 | }, 172 | "ResultUser": { 173 | "type": "object", 174 | "properties": { 175 | "code": { 176 | "type": "integer", 177 | "format": "int32" 178 | }, 179 | "msg": { 180 | "type": "string" 181 | }, 182 | "data": { 183 | "$ref": "#/components/schemas/User" 184 | }, 185 | "failed": { 186 | "type": "boolean" 187 | }, 188 | "success": { 189 | "type": "boolean" 190 | } 191 | } 192 | }, 193 | "ResultTenant": { 194 | "type": "object", 195 | "properties": { 196 | "code": { 197 | "type": "integer", 198 | "format": "int32" 199 | }, 200 | "msg": { 201 | "type": "string" 202 | }, 203 | "data": { 204 | "$ref": "#/components/schemas/Tenant" 205 | }, 206 | "failed": { 207 | "type": "boolean" 208 | }, 209 | "success": { 210 | "type": "boolean" 211 | } 212 | } 213 | }, 214 | "ResultVoid": { 215 | "type": "object", 216 | "properties": { 217 | "code": { 218 | "type": "integer", 219 | "format": "int32" 220 | }, 221 | "msg": { 222 | "type": "string" 223 | }, 224 | "data": { 225 | "type": "object" 226 | }, 227 | "failed": { 228 | "type": "boolean" 229 | }, 230 | "success": { 231 | "type": "boolean" 232 | } 233 | } 234 | }, 235 | "ResultEnvironment": { 236 | "type": "object", 237 | "properties": { 238 | "code": { 239 | "type": "integer", 240 | "format": "int32" 241 | }, 242 | "msg": { 243 | "type": "string" 244 | }, 245 | "data": { 246 | "$ref": "#/components/schemas/Environment" 247 | }, 248 | "failed": { 249 | "type": "boolean" 250 | }, 251 | "success": { 252 | "type": "boolean" 253 | } 254 | } 255 | }, 256 | "ResultLong": { 257 | "type": "object", 258 | "properties": { 259 | "code": { 260 | "type": "integer", 261 | "format": "int32" 262 | }, 263 | "msg": { 264 | "type": "string" 265 | }, 266 | "data": { 267 | "type": "integer", 268 | "format": "int64" 269 | }, 270 | "failed": { 271 | "type": "boolean" 272 | }, 273 | "success": { 274 | "type": "boolean" 275 | } 276 | } 277 | }, 278 | "ResultCluster": { 279 | "type": "object", 280 | "properties": { 281 | "code": { 282 | "type": "integer", 283 | "format": "int32" 284 | }, 285 | "msg": { 286 | "type": "string" 287 | }, 288 | "data": { 289 | "$ref": "#/components/schemas/Cluster" 290 | }, 291 | "failed": { 292 | "type": "boolean" 293 | }, 294 | "success": { 295 | "type": "boolean" 296 | } 297 | } 298 | }, 299 | "ResultString": { 300 | "type": "object", 301 | "properties": { 302 | "code": { 303 | "type": "integer", 304 | "format": "int32" 305 | }, 306 | "msg": { 307 | "type": "string" 308 | }, 309 | "data": { 310 | "type": "string" 311 | }, 312 | "failed": { 313 | "type": "boolean" 314 | }, 315 | "success": { 316 | "type": "boolean" 317 | } 318 | } 319 | }, 320 | "ResultPageInfoTenant": { 321 | "type": "object", 322 | "properties": { 323 | "code": { 324 | "type": "integer", 325 | "format": "int32" 326 | }, 327 | "msg": { 328 | "type": "string" 329 | }, 330 | "data": { 331 | "$ref": "#/components/schemas/PageInfoTenant" 332 | }, 333 | "failed": { 334 | "type": "boolean" 335 | }, 336 | "success": { 337 | "type": "boolean" 338 | } 339 | } 340 | }, 341 | "ResultListTenant": { 342 | "type": "object", 343 | "properties": { 344 | "code": { 345 | "type": "integer", 346 | "format": "int32" 347 | }, 348 | "msg": { 349 | "type": "string" 350 | }, 351 | "data": { 352 | "type": "array", 353 | "items": { 354 | "$ref": "#/components/schemas/Tenant" 355 | } 356 | }, 357 | "failed": { 358 | "type": "boolean" 359 | }, 360 | "success": { 361 | "type": "boolean" 362 | } 363 | } 364 | }, 365 | "ResultPageInfoStorageEntity": { 366 | "type": "object", 367 | "properties": { 368 | "code": { 369 | "type": "integer", 370 | "format": "int32" 371 | }, 372 | "msg": { 373 | "type": "string" 374 | }, 375 | "data": { 376 | "$ref": "#/components/schemas/PageInfoStorageEntity" 377 | }, 378 | "failed": { 379 | "type": "boolean" 380 | }, 381 | "success": { 382 | "type": "boolean" 383 | } 384 | } 385 | }, 386 | "ResultPageInfoQueue": { 387 | "type": "object", 388 | "properties": { 389 | "code": { 390 | "type": "integer", 391 | "format": "int32" 392 | }, 393 | "msg": { 394 | "type": "string" 395 | }, 396 | "data": { 397 | "$ref": "#/components/schemas/PageInfoQueue" 398 | }, 399 | "failed": { 400 | "type": "boolean" 401 | }, 402 | "success": { 403 | "type": "boolean" 404 | } 405 | } 406 | }, 407 | "ResultListQueue": { 408 | "type": "object", 409 | "properties": { 410 | "code": { 411 | "type": "integer", 412 | "format": "int32" 413 | }, 414 | "msg": { 415 | "type": "string" 416 | }, 417 | "data": { 418 | "type": "array", 419 | "items": { 420 | "$ref": "#/components/schemas/Queue" 421 | } 422 | }, 423 | "failed": { 424 | "type": "boolean" 425 | }, 426 | "success": { 427 | "type": "boolean" 428 | } 429 | } 430 | }, 431 | "ResultProcessInstance": { 432 | "type": "object", 433 | "properties": { 434 | "code": { 435 | "type": "integer", 436 | "format": "int32" 437 | }, 438 | "msg": { 439 | "type": "string" 440 | }, 441 | "data": { 442 | "$ref": "#/components/schemas/ProcessInstance" 443 | }, 444 | "failed": { 445 | "type": "boolean" 446 | }, 447 | "success": { 448 | "type": "boolean" 449 | } 450 | } 451 | }, 452 | "ResultListDynamicSubWorkflowDto": { 453 | "type": "object", 454 | "properties": { 455 | "code": { 456 | "type": "integer", 457 | "format": "int32" 458 | }, 459 | "msg": { 460 | "type": "string" 461 | }, 462 | "data": { 463 | "type": "array", 464 | "items": { 465 | "$ref": "#/components/schemas/DynamicSubWorkflowDto" 466 | } 467 | }, 468 | "failed": { 469 | "type": "boolean" 470 | }, 471 | "success": { 472 | "type": "boolean" 473 | } 474 | } 475 | }, 476 | "ResultPageInfoProcessDefinition": { 477 | "type": "object", 478 | "properties": { 479 | "code": { 480 | "type": "integer", 481 | "format": "int32" 482 | }, 483 | "msg": { 484 | "type": "string" 485 | }, 486 | "data": { 487 | "$ref": "#/components/schemas/PageInfoProcessDefinition" 488 | }, 489 | "failed": { 490 | "type": "boolean" 491 | }, 492 | "success": { 493 | "type": "boolean" 494 | } 495 | } 496 | }, 497 | "ResultProcessDefinition": { 498 | "type": "object", 499 | "properties": { 500 | "code": { 501 | "type": "integer", 502 | "format": "int32" 503 | }, 504 | "msg": { 505 | "type": "string" 506 | }, 507 | "data": { 508 | "$ref": "#/components/schemas/ProcessDefinition" 509 | }, 510 | "failed": { 511 | "type": "boolean" 512 | }, 513 | "success": { 514 | "type": "boolean" 515 | } 516 | } 517 | }, 518 | "ResultMapStringObject": { 519 | "type": "object", 520 | "properties": { 521 | "code": { 522 | "type": "integer", 523 | "format": "int32" 524 | }, 525 | "msg": { 526 | "type": "string" 527 | }, 528 | "data": { 529 | "type": "object", 530 | "additionalProperties": { 531 | "type": "object" 532 | } 533 | }, 534 | "failed": { 535 | "type": "boolean" 536 | }, 537 | "success": { 538 | "type": "boolean" 539 | } 540 | } 541 | }, 542 | "ResultListWorkFlowLineage": { 543 | "type": "object", 544 | "properties": { 545 | "code": { 546 | "type": "integer", 547 | "format": "int32" 548 | }, 549 | "msg": { 550 | "type": "string" 551 | }, 552 | "data": { 553 | "type": "array", 554 | "items": { 555 | "$ref": "#/components/schemas/WorkFlowLineage" 556 | } 557 | }, 558 | "failed": { 559 | "type": "boolean" 560 | }, 561 | "success": { 562 | "type": "boolean" 563 | } 564 | } 565 | }, 566 | "ResultListAuditOperationTypeDto": { 567 | "type": "object", 568 | "properties": { 569 | "code": { 570 | "type": "integer", 571 | "format": "int32" 572 | }, 573 | "msg": { 574 | "type": "string" 575 | }, 576 | "data": { 577 | "type": "array", 578 | "items": { 579 | "$ref": "#/components/schemas/AuditOperationTypeDto" 580 | } 581 | }, 582 | "failed": { 583 | "type": "boolean" 584 | }, 585 | "success": { 586 | "type": "boolean" 587 | } 588 | } 589 | }, 590 | "ResultListAuditModelTypeDto": { 591 | "type": "object", 592 | "properties": { 593 | "code": { 594 | "type": "integer", 595 | "format": "int32" 596 | }, 597 | "msg": { 598 | "type": "string" 599 | }, 600 | "data": { 601 | "type": "array", 602 | "items": { 603 | "$ref": "#/components/schemas/AuditModelTypeDto" 604 | } 605 | }, 606 | "failed": { 607 | "type": "boolean" 608 | }, 609 | "success": { 610 | "type": "boolean" 611 | } 612 | } 613 | }, 614 | "ResultPageInfoAuditDto": { 615 | "type": "object", 616 | "properties": { 617 | "code": { 618 | "type": "integer", 619 | "format": "int32" 620 | }, 621 | "msg": { 622 | "type": "string" 623 | }, 624 | "data": { 625 | "$ref": "#/components/schemas/PageInfoAuditDto" 626 | }, 627 | "failed": { 628 | "type": "boolean" 629 | }, 630 | "success": { 631 | "type": "boolean" 632 | } 633 | } 634 | }, 635 | "ResultTaskInstanceCountVO": { 636 | "type": "object", 637 | "properties": { 638 | "code": { 639 | "type": "integer", 640 | "format": "int32" 641 | }, 642 | "msg": { 643 | "type": "string" 644 | }, 645 | "data": { 646 | "$ref": "#/components/schemas/TaskInstanceCountVO" 647 | }, 648 | "failed": { 649 | "type": "boolean" 650 | }, 651 | "success": { 652 | "type": "boolean" 653 | } 654 | } 655 | }, 656 | "ResultMapStringInteger": { 657 | "type": "object", 658 | "properties": { 659 | "code": { 660 | "type": "integer", 661 | "format": "int32" 662 | }, 663 | "msg": { 664 | "type": "string" 665 | }, 666 | "data": { 667 | "type": "object", 668 | "additionalProperties": { 669 | "type": "integer", 670 | "format": "int32" 671 | } 672 | }, 673 | "failed": { 674 | "type": "boolean" 675 | }, 676 | "success": { 677 | "type": "boolean" 678 | } 679 | } 680 | }, 681 | "ResultWorkflowInstanceCountVO": { 682 | "type": "object", 683 | "properties": { 684 | "code": { 685 | "type": "integer", 686 | "format": "int32" 687 | }, 688 | "msg": { 689 | "type": "string" 690 | }, 691 | "data": { 692 | "$ref": "#/components/schemas/WorkflowInstanceCountVO" 693 | }, 694 | "failed": { 695 | "type": "boolean" 696 | }, 697 | "success": { 698 | "type": "boolean" 699 | } 700 | } 701 | }, 702 | "ResultPageInfoErrorCommand": { 703 | "type": "object", 704 | "properties": { 705 | "code": { 706 | "type": "integer", 707 | "format": "int32" 708 | }, 709 | "msg": { 710 | "type": "string" 711 | }, 712 | "data": { 713 | "$ref": "#/components/schemas/PageInfoErrorCommand" 714 | }, 715 | "failed": { 716 | "type": "boolean" 717 | }, 718 | "success": { 719 | "type": "boolean" 720 | } 721 | } 722 | }, 723 | "ResultPageInfoCommand": { 724 | "type": "object", 725 | "properties": { 726 | "code": { 727 | "type": "integer", 728 | "format": "int32" 729 | }, 730 | "msg": { 731 | "type": "string" 732 | }, 733 | "data": { 734 | "$ref": "#/components/schemas/PageInfoCommand" 735 | }, 736 | "failed": { 737 | "type": "boolean" 738 | }, 739 | "success": { 740 | "type": "boolean" 741 | } 742 | } 743 | }, 744 | "ResultWorkflowDefinitionCountVO": { 745 | "type": "object", 746 | "properties": { 747 | "code": { 748 | "type": "integer", 749 | "format": "int32" 750 | }, 751 | "msg": { 752 | "type": "string" 753 | }, 754 | "data": { 755 | "$ref": "#/components/schemas/WorkflowDefinitionCountVO" 756 | }, 757 | "failed": { 758 | "type": "boolean" 759 | }, 760 | "success": { 761 | "type": "boolean" 762 | } 763 | } 764 | }, 765 | "ResultListCommandStateCount": { 766 | "type": "object", 767 | "properties": { 768 | "code": { 769 | "type": "integer", 770 | "format": "int32" 771 | }, 772 | "msg": { 773 | "type": "string" 774 | }, 775 | "data": { 776 | "type": "array", 777 | "items": { 778 | "$ref": "#/components/schemas/CommandStateCount" 779 | } 780 | }, 781 | "failed": { 782 | "type": "boolean" 783 | }, 784 | "success": { 785 | "type": "boolean" 786 | } 787 | } 788 | }, 789 | "ResultListOAuth2ClientProperties": { 790 | "type": "object", 791 | "properties": { 792 | "code": { 793 | "type": "integer", 794 | "format": "int32" 795 | }, 796 | "msg": { 797 | "type": "string" 798 | }, 799 | "data": { 800 | "type": "array", 801 | "items": { 802 | "$ref": "#/components/schemas/OAuth2ClientProperties" 803 | } 804 | }, 805 | "failed": { 806 | "type": "boolean" 807 | }, 808 | "success": { 809 | "type": "boolean" 810 | } 811 | } 812 | }, 813 | "ResultListServer": { 814 | "type": "object", 815 | "properties": { 816 | "code": { 817 | "type": "integer", 818 | "format": "int32" 819 | }, 820 | "msg": { 821 | "type": "string" 822 | }, 823 | "data": { 824 | "type": "array", 825 | "items": { 826 | "$ref": "#/components/schemas/Server" 827 | } 828 | }, 829 | "failed": { 830 | "type": "boolean" 831 | }, 832 | "success": { 833 | "type": "boolean" 834 | } 835 | } 836 | }, 837 | "ResultListDatabaseMetrics": { 838 | "type": "object", 839 | "properties": { 840 | "code": { 841 | "type": "integer", 842 | "format": "int32" 843 | }, 844 | "msg": { 845 | "type": "string" 846 | }, 847 | "data": { 848 | "type": "array", 849 | "items": { 850 | "$ref": "#/components/schemas/DatabaseMetrics" 851 | } 852 | }, 853 | "failed": { 854 | "type": "boolean" 855 | }, 856 | "success": { 857 | "type": "boolean" 858 | } 859 | } 860 | }, 861 | "ResultResponseTaskLog": { 862 | "type": "object", 863 | "properties": { 864 | "code": { 865 | "type": "integer", 866 | "format": "int32" 867 | }, 868 | "msg": { 869 | "type": "string" 870 | }, 871 | "data": { 872 | "$ref": "#/components/schemas/ResponseTaskLog" 873 | }, 874 | "failed": { 875 | "type": "boolean" 876 | }, 877 | "success": { 878 | "type": "boolean" 879 | } 880 | } 881 | }, 882 | "ResultListDqRule": { 883 | "type": "object", 884 | "properties": { 885 | "code": { 886 | "type": "integer", 887 | "format": "int32" 888 | }, 889 | "msg": { 890 | "type": "string" 891 | }, 892 | "data": { 893 | "type": "array", 894 | "items": { 895 | "$ref": "#/components/schemas/DqRule" 896 | } 897 | }, 898 | "failed": { 899 | "type": "boolean" 900 | }, 901 | "success": { 902 | "type": "boolean" 903 | } 904 | } 905 | }, 906 | "ResultPageInfoDqRule": { 907 | "type": "object", 908 | "properties": { 909 | "code": { 910 | "type": "integer", 911 | "format": "int32" 912 | }, 913 | "msg": { 914 | "type": "string" 915 | }, 916 | "data": { 917 | "$ref": "#/components/schemas/PageInfoDqRule" 918 | }, 919 | "failed": { 920 | "type": "boolean" 921 | }, 922 | "success": { 923 | "type": "boolean" 924 | } 925 | } 926 | }, 927 | "ResultPageInfoDqExecuteResult": { 928 | "type": "object", 929 | "properties": { 930 | "code": { 931 | "type": "integer", 932 | "format": "int32" 933 | }, 934 | "msg": { 935 | "type": "string" 936 | }, 937 | "data": { 938 | "$ref": "#/components/schemas/PageInfoDqExecuteResult" 939 | }, 940 | "failed": { 941 | "type": "boolean" 942 | }, 943 | "success": { 944 | "type": "boolean" 945 | } 946 | } 947 | }, 948 | "ResultListParamsOptions": { 949 | "type": "object", 950 | "properties": { 951 | "code": { 952 | "type": "integer", 953 | "format": "int32" 954 | }, 955 | "msg": { 956 | "type": "string" 957 | }, 958 | "data": { 959 | "type": "array", 960 | "items": { 961 | "$ref": "#/components/schemas/ParamsOptions" 962 | } 963 | }, 964 | "failed": { 965 | "type": "boolean" 966 | }, 967 | "success": { 968 | "type": "boolean" 969 | } 970 | } 971 | }, 972 | "ResultListClusterDto": { 973 | "type": "object", 974 | "properties": { 975 | "code": { 976 | "type": "integer", 977 | "format": "int32" 978 | }, 979 | "msg": { 980 | "type": "string" 981 | }, 982 | "data": { 983 | "type": "array", 984 | "items": { 985 | "$ref": "#/components/schemas/ClusterDto" 986 | } 987 | }, 988 | "failed": { 989 | "type": "boolean" 990 | }, 991 | "success": { 992 | "type": "boolean" 993 | } 994 | } 995 | }, 996 | "ResultClusterDto": { 997 | "type": "object", 998 | "properties": { 999 | "code": { 1000 | "type": "integer", 1001 | "format": "int32" 1002 | }, 1003 | "msg": { 1004 | "type": "string" 1005 | }, 1006 | "data": { 1007 | "$ref": "#/components/schemas/ClusterDto" 1008 | }, 1009 | "failed": { 1010 | "type": "boolean" 1011 | }, 1012 | "success": { 1013 | "type": "boolean" 1014 | } 1015 | } 1016 | }, 1017 | "ResultPageInfoClusterDto": { 1018 | "type": "object", 1019 | "properties": { 1020 | "code": { 1021 | "type": "integer", 1022 | "format": "int32" 1023 | }, 1024 | "msg": { 1025 | "type": "string" 1026 | }, 1027 | "data": { 1028 | "$ref": "#/components/schemas/PageInfoClusterDto" 1029 | }, 1030 | "failed": { 1031 | "type": "boolean" 1032 | }, 1033 | "success": { 1034 | "type": "boolean" 1035 | } 1036 | } 1037 | }, 1038 | "ResultPageInfoAlertPluginInstanceVO": { 1039 | "type": "object", 1040 | "properties": { 1041 | "code": { 1042 | "type": "integer", 1043 | "format": "int32" 1044 | }, 1045 | "msg": { 1046 | "type": "string" 1047 | }, 1048 | "data": { 1049 | "$ref": "#/components/schemas/PageInfoAlertPluginInstanceVO" 1050 | }, 1051 | "failed": { 1052 | "type": "boolean" 1053 | }, 1054 | "success": { 1055 | "type": "boolean" 1056 | } 1057 | } 1058 | }, 1059 | "ResultListAlertPluginInstanceVO": { 1060 | "type": "object", 1061 | "properties": { 1062 | "code": { 1063 | "type": "integer", 1064 | "format": "int32" 1065 | }, 1066 | "msg": { 1067 | "type": "string" 1068 | }, 1069 | "data": { 1070 | "type": "array", 1071 | "items": { 1072 | "$ref": "#/components/schemas/AlertPluginInstanceVO" 1073 | } 1074 | }, 1075 | "failed": { 1076 | "type": "boolean" 1077 | }, 1078 | "success": { 1079 | "type": "boolean" 1080 | } 1081 | } 1082 | }, 1083 | "ResultPageInfoAlertGroup": { 1084 | "type": "object", 1085 | "properties": { 1086 | "code": { 1087 | "type": "integer", 1088 | "format": "int32" 1089 | }, 1090 | "msg": { 1091 | "type": "string" 1092 | }, 1093 | "data": { 1094 | "$ref": "#/components/schemas/PageInfoAlertGroup" 1095 | }, 1096 | "failed": { 1097 | "type": "boolean" 1098 | }, 1099 | "success": { 1100 | "type": "boolean" 1101 | } 1102 | } 1103 | }, 1104 | "ResultListAlertGroup": { 1105 | "type": "object", 1106 | "properties": { 1107 | "code": { 1108 | "type": "integer", 1109 | "format": "int32" 1110 | }, 1111 | "msg": { 1112 | "type": "string" 1113 | }, 1114 | "data": { 1115 | "type": "array", 1116 | "items": { 1117 | "$ref": "#/components/schemas/AlertGroup" 1118 | } 1119 | }, 1120 | "failed": { 1121 | "type": "boolean" 1122 | }, 1123 | "success": { 1124 | "type": "boolean" 1125 | } 1126 | } 1127 | }, 1128 | "ResultPageInfoAccessToken": { 1129 | "type": "object", 1130 | "properties": { 1131 | "code": { 1132 | "type": "integer", 1133 | "format": "int32" 1134 | }, 1135 | "msg": { 1136 | "type": "string" 1137 | }, 1138 | "data": { 1139 | "$ref": "#/components/schemas/PageInfoAccessToken" 1140 | }, 1141 | "failed": { 1142 | "type": "boolean" 1143 | }, 1144 | "success": { 1145 | "type": "boolean" 1146 | } 1147 | } 1148 | }, 1149 | "ResultListAccessToken": { 1150 | "type": "object", 1151 | "properties": { 1152 | "code": { 1153 | "type": "integer", 1154 | "format": "int32" 1155 | }, 1156 | "msg": { 1157 | "type": "string" 1158 | }, 1159 | "data": { 1160 | "type": "array", 1161 | "items": { 1162 | "$ref": "#/components/schemas/AccessToken" 1163 | } 1164 | }, 1165 | "failed": { 1166 | "type": "boolean" 1167 | }, 1168 | "success": { 1169 | "type": "boolean" 1170 | } 1171 | } 1172 | } 1173 | } 1174 | } 1175 | } ```