Documentation ¶
Index ¶
- type MentorService
- func (m *MentorService) CreateMentor(ctx context.Context, name string) error
- func (m *MentorService) DeleteMentor(ctx context.Context, id int) error
- func (m *MentorService) GetMentor(ctx context.Context, id int) (model.Mentor, error)
- func (m *MentorService) UpdateMentor(ctx context.Context, mentor model.Mentor) error
- type StudentService
- func (s *StudentService) DeleteStudent(ctx context.Context, id int) error
- func (s *StudentService) GetStudent(ctx context.Context, id int) (model.Student, error)
- func (s *StudentService) NewStudent(ctx context.Context, name string, role string) error
- func (s *StudentService) UpdateStudent(ctx context.Context, student model.Student) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MentorService ¶
type MentorService struct {
// contains filtered or unexported fields
}
func NewMentorService ¶
func NewMentorService(logger *zap.Logger, repo *repo.MentorRepository) *MentorService
func (*MentorService) CreateMentor ¶
func (m *MentorService) CreateMentor(ctx context.Context, name string) error
func (*MentorService) DeleteMentor ¶
func (m *MentorService) DeleteMentor(ctx context.Context, id int) error
func (*MentorService) UpdateMentor ¶
type StudentService ¶
type StudentService struct {
// contains filtered or unexported fields
}
func NewStudentService ¶
func NewStudentService(logger *zap.Logger, repo *repo.StudentRepo) *StudentService
func (*StudentService) DeleteStudent ¶
func (s *StudentService) DeleteStudent(ctx context.Context, id int) error
func (*StudentService) GetStudent ¶
func (*StudentService) NewStudent ¶
func (*StudentService) UpdateStudent ¶
Click to show internal directories.
Click to hide internal directories.