Skip to content

Commit

Permalink
add the Active field to the Rule struct
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-lukyanchyk committed Dec 22, 2023
1 parent 8cfa59f commit 9972db6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rules/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand All @@ -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"`
Expand Down

0 comments on commit 9972db6

Please sign in to comment.