Files
phishingclub/backend/model/recipientView.go
2025-08-21 16:14:09 +02:00

16 lines
416 B
Go

package model
// RecipientView extends Recipient with additional presentation fields
type RecipientView struct {
*Recipient // Embed the base Recipient model
IsRepeatOffender bool `json:"isRepeatOffender"`
}
// NewRecipientView creates a RecipientView from a Recipient
func NewRecipientView(r *Recipient) *RecipientView {
return &RecipientView{
Recipient: r,
IsRepeatOffender: false,
}
}