增加部分请求定义

This commit is contained in:
samwaf
2022-10-09 17:51:40 +08:00
parent a8517daad3
commit ffd1d07f1f
5 changed files with 18 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
package request
type WafRuleAddReq struct {
ruleJson string
}
+5
View File
@@ -0,0 +1,5 @@
package request
type WafRuleDetailReq struct {
CODE string `json:"code"`
}
+7
View File
@@ -0,0 +1,7 @@
package request
import "SamWaf/model/common/request"
type WafRuleSearchReq struct {
request.PageInfo
}
+1
View File
@@ -4,6 +4,7 @@ type Rules struct {
Id int `gorm:"primary_key" json:" - "` //
Tenant_id string `json:"tenant_id"` //
Code string `json:"code"` //
Rule_Code string `json:"rule_code"` //规则的唯一码
Rulename string `json:"rulename"` //规则名称
Rulecontent string `json:"rulecontent"` //规则内容
RulecontentJSON string `json:"rulecontent_json"` //规则JSON内容