Introduce pkg/mail.Addr

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-12 15:32:46 +01:00
parent cab9d6f2ed
commit c0b2a5702d
85 changed files with 842 additions and 646 deletions

View File

@@ -18,9 +18,10 @@ import (
"fmt"
"net/http"
"go.gearno.de/kit/httpserver"
"go.probo.inc/probo/pkg/authz"
"go.probo.inc/probo/pkg/gid"
"go.gearno.de/kit/httpserver"
"go.probo.inc/probo/pkg/mail"
)
type (
@@ -30,7 +31,7 @@ type (
InvitationResponse struct {
ID gid.GID `json:"id"`
Email string `json:"email"`
Email mail.Addr `json:"email"`
FullName string `json:"fullName"`
Role string `json:"role"`
ExpiresAt string `json:"expiresAt"`