Documentation ¶
Overview ¶
Package service implement the services required by the rest package
Package service implement the services required by the rest package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entity ¶
type Entity struct { gorm.Model PublicId string `gorm:"UNIQUE;NOT NULL"` FirstName string LastName string ProfilePictureUrl string Birthday *time.Time OrderAmount uint UserID uint }
Entity is the model of a profile in the database
type RepoInterface ¶
type RepoInterface interface { Create(profile Entity) bool FindByID(id uint) (profile Entity, err error) FindByPublicId(publicId string) (profile Entity, err error) Update(profile Entity) error Delete(profile Entity) error }
RepoInterface is the model for the repo package of profile
Click to show internal directories.
Click to hide internal directories.