diff --git a/pkg/notify/models/event.go b/pkg/notify/models/event.go index fa3992d37f..f648ba579c 100644 --- a/pkg/notify/models/event.go +++ b/pkg/notify/models/event.go @@ -44,7 +44,7 @@ type SEvent struct { // 资源创建时间 CreatedAt time.Time `nullable:"false" created_at:"true" index:"true" get:"user" list:"user" json:"created_at"` - Message string + Message string `length:"medium"` Event string `width:"64" nullable:"true"` ResourceType string `width:"64" nullable:"true"` Action string `width:"64" nullable:"true"` diff --git a/pkg/notify/models/notification_group.go b/pkg/notify/models/notification_group.go index b8c13e656b..c1abd085b5 100644 --- a/pkg/notify/models/notification_group.go +++ b/pkg/notify/models/notification_group.go @@ -55,7 +55,7 @@ type SNotificationGroup struct { GroupKey string `width:"128" nullable:"false" create:"required" list:"user" get:"user"` Title string // swagger:ignore - Message string + Message string `length:"medium"` ReceiverId string `width:"128" nullable:"false" create:"required" list:"user" get:"user"` Body jsonutils.JSONObject Header jsonutils.JSONObject