mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-10-31 02:01:44 +08:00
增加部分请求定义
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package request
|
||||
|
||||
type WafRuleAddReq struct {
|
||||
ruleJson string
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package request
|
||||
|
||||
type WafRuleDetailReq struct {
|
||||
CODE string `json:"code"`
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package request
|
||||
|
||||
import "SamWaf/model/common/request"
|
||||
|
||||
type WafRuleSearchReq struct {
|
||||
request.PageInfo
|
||||
}
|
||||
@@ -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内容
|
||||
|
||||
Reference in New Issue
Block a user