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

chore:global default rule template add IsDefaultRuleTemplate field #2746

Merged
merged 1 commit into from
Nov 12, 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
7 changes: 4 additions & 3 deletions sqle/api/controller/v1/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,10 @@ type GetRuleTemplatesResV1 struct {
}

type RuleTemplateResV1 struct {
Name string `json:"rule_template_name"`
Desc string `json:"desc"`
DBType string `json:"db_type"`
Name string `json:"rule_template_name"`
Desc string `json:"desc"`
DBType string `json:"db_type"`
IsDefaultRuleTemplate bool `json:"is_default_rule_template"`
}

// @Summary 全局规则模板列表
Expand Down
3 changes: 3 additions & 0 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16351,6 +16351,9 @@ var doc = `{
"desc": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_name": {
"type": "string"
}
Expand Down
3 changes: 3 additions & 0 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -16335,6 +16335,9 @@
"desc": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_name": {
"type": "string"
}
Expand Down
2 changes: 2 additions & 0 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3613,6 +3613,8 @@ definitions:
type: string
desc:
type: string
is_default_rule_template:
type: boolean
rule_template_name:
type: string
type: object
Expand Down
Loading