117 lines
2.0 KiB
Go
117 lines
2.0 KiB
Go
package service
|
|
|
|
import (
|
|
"amocrm/internal/repository"
|
|
"context"
|
|
)
|
|
|
|
type DifferentService struct {
|
|
DifferentRepository *repository.DifferentRepository
|
|
}
|
|
|
|
func NewDifferentService(repository *repository.DifferentRepository) *DifferentService {
|
|
return &DifferentService{
|
|
DifferentRepository: repository,
|
|
}
|
|
}
|
|
|
|
func (s *DifferentService) Getlisttags(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Getlisttags(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Updatelisttags(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Updatelisttags(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Webhookcreate(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Webhookcreate(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Webhookdelete(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Webhookdelete(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Getlistcustom(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Getlistcustom(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Updatelistcustom(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Updatelistcustom(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Getlistpipelines(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Getlistpipelines(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Updatelistpipelines(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Updatelistpipelines(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Getliststeps(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Getliststeps(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|
|
|
|
func (s *DifferentService) Updateliststeps(ctx context.Context) error {
|
|
|
|
err := s.DifferentRepository.Updateliststeps(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
|
|
}
|