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
14 changes: 7 additions & 7 deletions sqle/api/controller/v1/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,10 +396,9 @@ type GetRuleTemplatesResV1 struct {
}

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

// @Summary 全局规则模板列表
Expand Down Expand Up @@ -607,9 +606,10 @@ type RuleTemplateTipReqV1 struct {
}

type RuleTemplateTipResV1 struct {
ID string `json:"rule_template_id"`
Name string `json:"rule_template_name"`
DBType string `json:"db_type"`
ID string `json:"rule_template_id"`
Name string `json:"rule_template_name"`
DBType string `json:"db_type"`
IsDefaultRuleTemplate bool `json:"is_default_rule_template"`
}

type GetRuleTemplateTipsResV1 struct {
Expand Down
6 changes: 3 additions & 3 deletions sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16357,9 +16357,6 @@ var doc = `{
"desc": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_name": {
"type": "string"
}
Expand All @@ -16371,6 +16368,9 @@ var doc = `{
"db_type": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_id": {
"type": "string"
},
Expand Down
6 changes: 3 additions & 3 deletions sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -16341,9 +16341,6 @@
"desc": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_name": {
"type": "string"
}
Expand All @@ -16355,6 +16352,9 @@
"db_type": {
"type": "string"
},
"is_default_rule_template": {
"type": "boolean"
},
"rule_template_id": {
"type": "string"
},
Expand Down
4 changes: 2 additions & 2 deletions sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3618,15 +3618,15 @@ definitions:
type: string
desc:
type: string
is_default_rule_template:
type: boolean
rule_template_name:
type: string
type: object
v1.RuleTemplateTipResV1:
properties:
db_type:
type: string
is_default_rule_template:
type: boolean
rule_template_id:
type: string
rule_template_name:
Expand Down