diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index 736a2a3ee9..aeb9931ca5 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -7040,6 +7040,38 @@ var doc = `{ } } }, + "/v1/workflows_info_of_instances": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get Unfinished Workflows Count Of Instances", + "tags": [ + "workflow" + ], + "summary": "获取实例上未完成的工单数量", + "operationId": "GetUnfinishedWorkflowsCountOfInstances", + "parameters": [ + { + "type": "string", + "description": "instance id", + "name": "instance_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetUnfinishedWorkflowsCountOfInstancesResV1" + } + } + } + } + }, "/v2/audit_files": { "post": { "security": [ @@ -10838,6 +10870,25 @@ var doc = `{ } } }, + "v1.GetUnfinishedWorkflowsCountOfInstancesResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.UnfinishedWorkflowsCountV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetUserTipsResV1": { "type": "object", "properties": { @@ -12788,6 +12839,17 @@ var doc = `{ } } }, + "v1.UnfinishedWorkflowsCountV1": { + "type": "object", + "properties": { + "instance_id": { + "type": "integer" + }, + "unfinished_count": { + "type": "integer" + } + } + }, "v1.UpdateAuditPlanNotifyConfigReqV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index e2a39e0525..befd086d27 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -7024,6 +7024,38 @@ } } }, + "/v1/workflows_info_of_instances": { + "get": { + "security": [ + { + "ApiKeyAuth": [] + } + ], + "description": "Get Unfinished Workflows Count Of Instances", + "tags": [ + "workflow" + ], + "summary": "获取实例上未完成的工单数量", + "operationId": "GetUnfinishedWorkflowsCountOfInstances", + "parameters": [ + { + "type": "string", + "description": "instance id", + "name": "instance_id", + "in": "query", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.GetUnfinishedWorkflowsCountOfInstancesResV1" + } + } + } + } + }, "/v2/audit_files": { "post": { "security": [ @@ -10822,6 +10854,25 @@ } } }, + "v1.GetUnfinishedWorkflowsCountOfInstancesResV1": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "example": 0 + }, + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.UnfinishedWorkflowsCountV1" + } + }, + "message": { + "type": "string", + "example": "ok" + } + } + }, "v1.GetUserTipsResV1": { "type": "object", "properties": { @@ -12772,6 +12823,17 @@ } } }, + "v1.UnfinishedWorkflowsCountV1": { + "type": "object", + "properties": { + "instance_id": { + "type": "integer" + }, + "unfinished_count": { + "type": "integer" + } + } + }, "v1.UpdateAuditPlanNotifyConfigReqV1": { "type": "object", "properties": { diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index 9bbf5b607d..f94cfa6968 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -1700,6 +1700,19 @@ definitions: example: ok type: string type: object + v1.GetUnfinishedWorkflowsCountOfInstancesResV1: + properties: + code: + example: 0 + type: integer + data: + items: + $ref: '#/definitions/v1.UnfinishedWorkflowsCountV1' + type: array + message: + example: ok + type: string + type: object v1.GetUserTipsResV1: properties: code: @@ -3014,6 +3027,13 @@ definitions: example: ok type: string type: object + v1.UnfinishedWorkflowsCountV1: + properties: + instance_id: + type: integer + unfinished_count: + type: integer + type: object v1.UpdateAuditPlanNotifyConfigReqV1: properties: enable_email_notify: @@ -8861,6 +8881,26 @@ paths: summary: 获取全局工单列表 tags: - workflow + /v1/workflows_info_of_instances: + get: + description: Get Unfinished Workflows Count Of Instances + operationId: GetUnfinishedWorkflowsCountOfInstances + parameters: + - description: instance id + in: query + name: instance_id + required: true + type: string + responses: + "200": + description: OK + schema: + $ref: '#/definitions/v1.GetUnfinishedWorkflowsCountOfInstancesResV1' + security: + - ApiKeyAuth: [] + summary: 获取实例上未完成的工单数量 + tags: + - workflow /v2/audit_files: post: description: Direct audit sql from SQL files and MyBatis files