Documentation ¶
Index ¶
- func NewBusinessRepo(db *gorm.DB) *businessRepo
- func NewEntrepreneurRepo(db *gorm.DB) *entrepreneurRepo
- func NewEventRepo(db *gorm.DB) *eventRepo
- func NewInstituteRepo(db *gorm.DB) *instituteRepo
- func NewRewardRepo(db *gorm.DB) *rewardRepo
- func NewSolutionRepo(db *gorm.DB) *solutionRepo
- func NewTeamRepo(db *gorm.DB) *teamRepo
- func NewTraineeRepo(db *gorm.DB) *traineeRepo
- func ToEntrepreneurDomain(model infra.Entrepreneur) *core.Entrepreneur
- func ToEntrepreneurPersistence(model core.Entrepreneur) *infra.Entrepreneur
- func ToTraineeDomain(model infra.Trainee) *core.Trainee
- func ToTraineePersistence(model core.Trainee) *infra.Trainee
- func ToUserDomain(model infra.User) *core.User
- type UserRepo
- func (u UserRepo) Add(record *core.User) (*core.User, map[string]string)
- func (u UserRepo) ChangePassword(record core.User) (*core.User, error)
- func (u UserRepo) CreatePassword(record core.User) (*core.User, error)
- func (u UserRepo) Disable(id string) (*core.User, error)
- func (u UserRepo) Edit(record *core.User) (*core.User, map[string]string)
- func (u UserRepo) Enable(id string) (*core.User, error)
- func (u UserRepo) Login(phone string) (*core.User, error)
- func (u UserRepo) Remove(id string) (string, error)
- func (u UserRepo) ResetPassword(phone string) (*core.User, error)
- func (u UserRepo) User(id string) (*core.User, error)
- func (u UserRepo) Users() (*[]core.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBusinessRepo ¶
func NewEntrepreneurRepo ¶
func NewEventRepo ¶
func NewInstituteRepo ¶
func NewRewardRepo ¶
func NewSolutionRepo ¶
func NewTeamRepo ¶
func NewTraineeRepo ¶
func ToEntrepreneurDomain ¶
func ToEntrepreneurDomain(model infra.Entrepreneur) *core.Entrepreneur
func ToEntrepreneurPersistence ¶
func ToEntrepreneurPersistence(model core.Entrepreneur) *infra.Entrepreneur
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (UserRepo) ChangePassword ¶
func (UserRepo) CreatePassword ¶
Click to show internal directories.
Click to hide internal directories.