diff --git a/sqle/api/controller/v1/rule.go b/sqle/api/controller/v1/rule.go index 0e209f1e7..2be64f102 100644 --- a/sqle/api/controller/v1/rule.go +++ b/sqle/api/controller/v1/rule.go @@ -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 全局规则模板列表 diff --git a/sqle/docs/docs.go b/sqle/docs/docs.go index e127e981f..b72a3ef3e 100644 --- a/sqle/docs/docs.go +++ b/sqle/docs/docs.go @@ -16351,6 +16351,9 @@ var doc = `{ "desc": { "type": "string" }, + "is_default_rule_template": { + "type": "boolean" + }, "rule_template_name": { "type": "string" } diff --git a/sqle/docs/swagger.json b/sqle/docs/swagger.json index 12bb12b82..6279af238 100644 --- a/sqle/docs/swagger.json +++ b/sqle/docs/swagger.json @@ -16335,6 +16335,9 @@ "desc": { "type": "string" }, + "is_default_rule_template": { + "type": "boolean" + }, "rule_template_name": { "type": "string" } diff --git a/sqle/docs/swagger.yaml b/sqle/docs/swagger.yaml index aa395e105..bcdd0ded8 100644 --- a/sqle/docs/swagger.yaml +++ b/sqle/docs/swagger.yaml @@ -3613,6 +3613,8 @@ definitions: type: string desc: type: string + is_default_rule_template: + type: boolean rule_template_name: type: string type: object