Files
mtusi2026lab5/internal/domain/session.go
T
2026-10-29 23:36:12 +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
}