Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListToCore ¶
func ListToCore(dataModel []Participant) []participant.ParticipantCore
func New ¶
func New(db *gorm.DB) participant.RepositoryInterface
Types ¶
type Participant ¶
type Participant struct { gorm.Model Name string Phone string `gorm:"unique"` Age int Photo string }
func FromCore ¶
func FromCore(dataCore participant.ParticipantCore) Participant
func (*Participant) ToCore ¶
func (dataModel *Participant) ToCore() participant.ParticipantCore
Click to show internal directories.
Click to hide internal directories.