madipo2611 6f5298d420 v0.0.3
2025-05-03 02:37:08 +03:00

24 lines
731 B
Go

package domain
import "time"
type RecoveryRequest struct {
ID int `json:"id"`
UserID int `json:"userId"`
Token string `json:"-"`
NewDevice *Device `json:"newDevice,omitempty"`
Status string `json:"status"` // "pending", "completed", "expired"
CreatedAt time.Time `json:"createdAt"`
ExpiresAt time.Time `json:"expiresAt"`
}
type RecoveryMethod struct {
ID int `json:"id"`
UserID int `json:"userId"`
MethodType string `json:"methodType"` // "email", "phone", "totp"
Value string `json:"value"` // email/phone number
IsPrimary bool `json:"isPrimary"`
VerifiedAt time.Time `json:"verifiedAt"`
CreatedAt time.Time `json:"createdAt"`
}