Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api definition: add oppermission for creating pipeline #2570

Merged
merged 2 commits into from
Aug 30, 2024
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
4 changes: 2 additions & 2 deletions sqle/api/controller/v1/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ type InstanceTipReqV1 struct {
FilterDBType string `json:"filter_db_type" query:"filter_db_type"`
FilterByBusiness string `json:"filter_by_business" query:"filter_by_business"`
FilterWorkflowTemplateId uint32 `json:"filter_workflow_template_id" query:"filter_workflow_template_id"`
FunctionalModule string `json:"functional_module" query:"functional_module" enums:"create_audit_plan,create_workflow,sql_manage,create_optimization" valid:"omitempty,oneof=create_audit_plan create_workflow sql_manage create_optimization"`
FunctionalModule string `json:"functional_module" query:"functional_module" enums:"create_audit_plan,create_workflow,sql_manage,create_optimization,create_pipeline" valid:"omitempty,oneof=create_audit_plan create_workflow sql_manage create_optimization create_pipeline"`
}

type InstanceTipResV1 struct {
Expand All @@ -364,7 +364,7 @@ type GetInstanceTipsResV1 struct {
// @Param filter_db_type query string false "filter db type"
// @Param filter_by_business query string false "filter by business"
// @Param filter_workflow_template_id query string false "filter workflow template id"
// @Param functional_module query string false "functional module" Enums(create_audit_plan,create_workflow,sql_manage,create_optimization)
// @Param functional_module query string false "functional module" Enums(create_audit_plan,create_workflow,sql_manage,create_optimization,create_pipeline)
// @Success 200 {object} v1.GetInstanceTipsResV1
// @router /v1/projects/{project_name}/instance_tips [get]
func GetInstanceTips(c echo.Context) error {
Expand Down
3 changes: 2 additions & 1 deletion sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3087,7 +3087,8 @@ var doc = `{
"create_audit_plan",
"create_workflow",
"sql_manage",
"create_optimization"
"create_optimization",
"create_pipeline"
],
"type": "string",
"description": "functional module",
Expand Down
3 changes: 2 additions & 1 deletion sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3071,7 +3071,8 @@
"create_audit_plan",
"create_workflow",
"sql_manage",
"create_optimization"
"create_optimization",
"create_pipeline"
],
"type": "string",
"description": "functional module",
Expand Down
1 change: 1 addition & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7089,6 +7089,7 @@ paths:
- create_workflow
- sql_manage
- create_optimization
- create_pipeline
in: query
name: functional_module
type: string
Expand Down
Loading