From 9972db67696a4c8066e2b374a69533c7396dd83a Mon Sep 17 00:00:00 2001 From: Andrei Lukyanchyk Date: Fri, 22 Dec 2023 09:54:38 +0100 Subject: [PATCH] add the Active field to the Rule struct --- rules/rules.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/rules.go b/rules/rules.go index 3b41b6b..01173c5 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -15,6 +15,7 @@ type RulesService interface { type CreateRequest struct { Name string `json:"name,omitempty"` + Active bool `json:"active"` Rule string `json:"rule,omitempty"` RuleType int `json:"ruleType"` OriginGroup *int `json:"originGroup"` @@ -25,6 +26,7 @@ type CreateRequest struct { type UpdateRequest struct { Name string `json:"name,omitempty"` + Active bool `json:"active"` Rule string `json:"rule,omitempty"` RuleType int `json:"ruleType"` Weight int `json:"weight,omitempty"` @@ -36,6 +38,7 @@ type UpdateRequest struct { type Rule struct { ID int64 `json:"id"` Name string `json:"name"` + Active bool `json:"active"` Deleted bool `json:"deleted"` OriginGroup *int `json:"originGroup"` OriginProtocol string `json:"originProtocol"`