Documentation ¶
Index ¶
- type BaseService
- type BusinessService
- type EntrepreneurService
- type EventService
- type InstituteService
- func (d *InstituteService) Create(centre *core.Institution) (*core.Institution, map[string]string)
- func (d *InstituteService) Get(id string) (*core.Institution, error)
- func (d *InstituteService) List() (*[]core.Institution, error)
- func (d *InstituteService) Update(centre *core.Institution) (string, error)
- type RewardService
- type SolutionRewardRequest
- type SolutionService
- func (s *SolutionService) AddedReward(request *SolutionRewardRequest) (string, error)
- func (s *SolutionService) Create(solution *core.Solution) (*core.Solution, map[string]string)
- func (s *SolutionService) Get(id string) (*core.Solution, error)
- func (s *SolutionService) List(event string) (*[]core.Solution, error)
- func (s *SolutionService) Update(solution *core.Solution) (string, error)
- type TeamRequest
- type TeamService
- type TraineeService
- type User
- func (u User) Add(record *core.User) (*core.User, map[string]string)
- func (u User) ChangePassword(user core.User) (*core.User, error)
- func (u User) Disable(id string) (*core.User, error)
- func (u User) Edit(record *core.User) (*core.User, map[string]string)
- func (u User) Enable(id string) (*core.User, error)
- func (u User) GetPassword(id string) (*core.UserWithPassword, error)
- func (u User) Login(phone, password string) (*core.User, error)
- func (u User) Remove(id string) (string, error)
- func (u User) ResetPassword(phone string) (*core.User, error)
- func (u User) User(id string) (*core.PublicUser, error)
- func (u User) Users() (*[]core.PublicUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService struct { User core.UserRepository Institute core.InstitutionRepo Event core.EventRepo Reward core.RewardRepo Team core.TeamRepo Trainee core.TraineeRepo Solution core.SolutionRepo Entrepreneur core.EntrepreneurRepo }
type BusinessService ¶
type BusinessService struct {
Repo core.BusinessRepo
}
func (BusinessService) List ¶
func (s BusinessService) List()
type EntrepreneurService ¶
type EntrepreneurService struct {
Repo core.EntrepreneurRepo
}
func (EntrepreneurService) Add ¶
func (t EntrepreneurService) Add(record *core.Entrepreneur) (*core.Entrepreneur, map[string]string)
func (EntrepreneurService) Get ¶
func (t EntrepreneurService) Get(id string) (*core.Entrepreneur, error)
func (EntrepreneurService) List ¶
func (t EntrepreneurService) List() (*[]core.Entrepreneur, error)
type EventService ¶
type InstituteService ¶
type InstituteService struct {
Repo core.InstitutionRepo
}
func (*InstituteService) Create ¶
func (d *InstituteService) Create(centre *core.Institution) (*core.Institution, map[string]string)
func (*InstituteService) Get ¶
func (d *InstituteService) Get(id string) (*core.Institution, error)
func (*InstituteService) List ¶
func (d *InstituteService) List() (*[]core.Institution, error)
func (*InstituteService) Update ¶
func (d *InstituteService) Update(centre *core.Institution) (string, error)
type RewardService ¶
type RewardService struct {
Repo core.RewardRepo
}
type SolutionRewardRequest ¶
type SolutionService ¶
type SolutionService struct { Repo core.SolutionRepo RewardRepo core.RewardRepo }
func (*SolutionService) AddedReward ¶
func (s *SolutionService) AddedReward(request *SolutionRewardRequest) (string, error)
type TeamRequest ¶
type TeamService ¶
type TeamService struct { Repo core.TeamRepo TraineeRepo core.TraineeRepo }
func (TeamService) Create ¶
func (t TeamService) Create(param *TeamRequest) (*core.Team, map[string]string)
type TraineeService ¶
type TraineeService struct {
Repo core.TraineeRepo
}
type User ¶
type User struct {
Repo core.UserRepository
}
func (User) GetPassword ¶
func (u User) GetPassword(id string) (*core.UserWithPassword, error)
Click to show internal directories.
Click to hide internal directories.