package messages import ( "net/url" "github.com/zitadel/schema" "github.com/zitadel/zitadel/internal/eventstore" "github.com/zitadel/zitadel/internal/notification/channels" ) var _ channels.Message = (*Form)(nil) type Form struct { Serializable any TriggeringEvent eventstore.Event } func (msg *Form) GetContent() (string, error) { values := make(url.Values) err := schema.NewEncoder().Encode(msg.Serializable, values) return values.Encode(), err } func (msg *Form) GetTriggeringEvent() eventstore.Event { return msg.TriggeringEvent }