mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
24
apps/api/internal/notification/senders/code_verifier.go
Normal file
24
apps/api/internal/notification/senders/code_verifier.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package senders
|
||||
|
||||
type CodeGenerator interface {
|
||||
VerifyCode(verificationID, code string) error
|
||||
}
|
||||
|
||||
type CodeGeneratorInfo struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
VerificationID string `json:"verificationId,omitempty"`
|
||||
}
|
||||
|
||||
func (c *CodeGeneratorInfo) GetID() string {
|
||||
if c == nil {
|
||||
return ""
|
||||
}
|
||||
return c.ID
|
||||
}
|
||||
|
||||
func (c *CodeGeneratorInfo) GetVerificationID() string {
|
||||
if c == nil {
|
||||
return ""
|
||||
}
|
||||
return c.VerificationID
|
||||
}
|
Reference in New Issue
Block a user