Skip to content

Commit

Permalink
Merge pull request #45 from G-Core/add-active-field-to-rule
Browse files Browse the repository at this point in the history
add the Active field to the Rule struct
  • Loading branch information
andrei-lukyanchyk authored Dec 22, 2023
2 parents 8cfa59f + 9972db6 commit 16a344d
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 16a344d

Please sign in to comment.