Files
mtusi2026lab4/internal/domain/session.go
T
2026-10-15 20:45:29 +03:00

20 lines
230 B
Go

package domain
import (
"time"
"github.com/google/uuid"
)
type Session struct {
Token string
ExpiresAt time.Time
User User
}
type NewSession struct {
TokenHash []byte
UserID uuid.UUID
ExpiresAt time.Time
}