mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
16 lines
416 B
Go
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,
|
|
}
|
|
}
|