From bd4278980cc62f4d83dea00ab9da4da05f1df5d9 Mon Sep 17 00:00:00 2001 From: "taekyu.kang" Date: Mon, 8 Apr 2024 15:31:06 +0900 Subject: [PATCH] trivial. add is_system to systemNotificationTemplate & Role --- pkg/domain/system-notification-rule.go | 1 + pkg/domain/system-notification-template.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/domain/system-notification-rule.go b/pkg/domain/system-notification-rule.go index 13e1acf3..a170e8fd 100644 --- a/pkg/domain/system-notification-rule.go +++ b/pkg/domain/system-notification-rule.go @@ -39,6 +39,7 @@ type SystemNotificationRuleResponse struct { TargetUsers []SimpleUserResponse `json:"targetUsers"` SystemNotificationTemplate SimpleSystemNotificationTemplateResponse `json:"systemNotificationTemplate"` SystemNotificationCondition SystemNotificationConditionResponse `json:"systemNotificationCondition"` + IsSystem bool `json:"isSystem"` Creator SimpleUserResponse `json:"creator"` Updator SimpleUserResponse `json:"updator"` CreatedAt time.Time `json:"createdAt"` diff --git a/pkg/domain/system-notification-template.go b/pkg/domain/system-notification-template.go index 851fdb95..88430c01 100644 --- a/pkg/domain/system-notification-template.go +++ b/pkg/domain/system-notification-template.go @@ -17,6 +17,7 @@ type SystemNotificationTemplateResponse struct { MetricQuery string `json:"metricQuery" validate:"required"` MetricParameters []SystemNotificationMetricParameterResponse `json:"metricParameters,omitempty"` Organizations []SimpleOrganizationResponse `json:"organizations,omitempty"` + IsSystem bool `json:"isSystem"` Creator SimpleUserResponse `json:"creator"` Updator SimpleUserResponse `json:"updator"` CreatedAt time.Time `json:"createdAt"`