mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:57:35 +00:00
chore: move the go code into a subfolder
This commit is contained in:
29
apps/api/internal/notification/messages/sms.go
Normal file
29
apps/api/internal/notification/messages/sms.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package messages
|
||||
|
||||
import (
|
||||
"github.com/zitadel/zitadel/internal/eventstore"
|
||||
"github.com/zitadel/zitadel/internal/notification/channels"
|
||||
)
|
||||
|
||||
var _ channels.Message = (*SMS)(nil)
|
||||
|
||||
type SMS struct {
|
||||
SenderPhoneNumber string
|
||||
RecipientPhoneNumber string
|
||||
Content string
|
||||
TriggeringEventType eventstore.EventType
|
||||
|
||||
// VerificationID is set by the sender
|
||||
VerificationID *string
|
||||
InstanceID string
|
||||
JobID string
|
||||
UserID string
|
||||
}
|
||||
|
||||
func (msg *SMS) GetContent() (string, error) {
|
||||
return msg.Content, nil
|
||||
}
|
||||
|
||||
func (msg *SMS) GetTriggeringEventType() eventstore.EventType {
|
||||
return msg.TriggeringEventType
|
||||
}
|
Reference in New Issue
Block a user