Skip to content

Commit

Permalink
added delete flag in policy model
Browse files Browse the repository at this point in the history
  • Loading branch information
RutvikS-crest committed Mar 30, 2022
1 parent cb93ade commit 95e99fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Policy struct {
Priority string `json:"priority,omitempty"`
TemplateName string `json:"templateName,omitempty"`
TemplateContentType string `json:"templateContentType,omitempty"`
Deleted bool `json:"deleted,omitempty"`
NVPairs interface{} `json:"nvpairs,omitempty"`
}

Expand All @@ -35,6 +36,8 @@ func (policy *Policy) ToMap() (map[string]interface{}, error) {

A(policyMap, "templateContentType", policy.TemplateContentType)

A(policyMap, "deleted", policy.Deleted)

if policy.NVPairs != nil {
A(policyMap, "nvPairs", policy.NVPairs)
}
Expand Down

0 comments on commit 95e99fa

Please sign in to comment.