package course_management import ( "Yimaru-Backend/internal/domain" "context" ) func (s *Service) CreatePractice( ctx context.Context, ownerType string, ownerID int64, title string, description *string, bannerImage *string, persona *string, isActive *bool, ) (domain.Practice, error) { return s.courseStore.CreatePractice(ctx, ownerType, ownerID, title, description, bannerImage, persona, isActive) } func (s *Service) GetPracticesByOwner( ctx context.Context, ownerType string, ownerID int64, ) ([]domain.Practice, error) { return s.courseStore.GetPracticesByOwner(ctx, ownerType, ownerID) } func (s *Service) UpdatePractice( ctx context.Context, id int64, title *string, description *string, bannerImage *string, persona *string, isActive *bool, ) error { return s.courseStore.UpdatePractice(ctx, id, title, description, bannerImage, persona, isActive) } func (s *Service) DeletePractice( ctx context.Context, id int64, ) error { return s.courseStore.DeletePractice(ctx, id) }