service

package
v0.0.0-...-9a05c17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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) GetMentor

func (m *MentorService) GetMentor(ctx context.Context, id int) (model.Mentor, error)

func (*MentorService) UpdateMentor

func (m *MentorService) UpdateMentor(ctx context.Context, mentor model.Mentor) error

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 (s *StudentService) GetStudent(ctx context.Context, id int) (model.Student, error)

func (*StudentService) NewStudent

func (s *StudentService) NewStudent(ctx context.Context, name string, role string) error

func (*StudentService) UpdateStudent

func (s *StudentService) UpdateStudent(ctx context.Context, student model.Student) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL