Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqle/api/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti
v1OpProjectRouter.POST("/:project_name/rule_templates/:rule_template_name/clone", v1.CloneProjectRuleTemplate)

// workflow template
v1OpProjectRouter.PATCH("/:project_name/workflow_template", v1.UpdateWorkflowTemplate)
v1OpProjectRouter.PATCH("/:project_name/workflow_template/:workflow_type/", v1.UpdateWorkflowTemplate)

// report push
v1OpProjectRouter.PUT("/:project_name/report_push_configs/:report_push_config_id/", v1.UpdateReportPushConfig)
Expand Down
4 changes: 2 additions & 2 deletions sqle/api/controller/v1/workflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ type UpdateWorkflowTemplateReqV1 struct {
// @Accept json
// @Produce json
// @Param project_name path string true "project name"
// @Param workflow_type query string true "update by workflow or data export" Enums(workflow,data_export)
// @Param workflow_type path string true "workflow type" Enums(workflow,data_export)
// @Param instance body v1.UpdateWorkflowTemplateReqV1 true "create workflow template"
// @Success 200 {object} controller.BaseRes
// @router /v1/projects/{project_name}/workflow_template [patch]
// @router /v1/projects/{project_name}/workflow_template/{workflow_type}/ [patch]
func UpdateWorkflowTemplate(c echo.Context) error {
return updateWorkflowTemplate(c)
}
Expand Down
8 changes: 5 additions & 3 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7591,7 +7591,9 @@ var doc = `{
}
}
}
},
}
},
"/v1/projects/{project_name}/workflow_template/{workflow_type}/": {
"patch": {
"security": [
{
Expand Down Expand Up @@ -7624,9 +7626,9 @@ var doc = `{
"data_export"
],
"type": "string",
"description": "update by workflow or data export",
"description": "workflow type",
"name": "workflow_type",
"in": "query",
"in": "path",
"required": true
},
{
Expand Down
8 changes: 5 additions & 3 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7575,7 +7575,9 @@
}
}
}
},
}
},
"/v1/projects/{project_name}/workflow_template/{workflow_type}/": {
"patch": {
"security": [
{
Expand Down Expand Up @@ -7608,9 +7610,9 @@
"data_export"
],
"type": "string",
"description": "update by workflow or data export",
"description": "workflow type",
"name": "workflow_type",
"in": "query",
"in": "path",
"required": true
},
{
Expand Down
5 changes: 3 additions & 2 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12974,6 +12974,7 @@ paths:
summary: 获取审批流程模板详情
tags:
- workflow
/v1/projects/{project_name}/workflow_template/{workflow_type}/:
patch:
consumes:
- application/json
Expand All @@ -12985,11 +12986,11 @@ paths:
name: project_name
required: true
type: string
- description: update by workflow or data export
- description: workflow type
enum:
- workflow
- data_export
in: query
in: path
name: workflow_type
required: true
type: string
Expand Down
Loading