25 lines
442 B
Go
25 lines
442 B
Go
|
package service
|
||
|
|
||
|
import (
|
||
|
"amocrm/internal/models"
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
func (s *Service) GettingFieldsFromCash(ctx context.Context) (*models.UserListFieldsResp, error) {
|
||
|
|
||
|
response, err := s.repository.GettingFieldsFromCash(ctx)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return response, nil
|
||
|
}
|
||
|
|
||
|
func (s *Service) UpdateListCustom(ctx context.Context) error {
|
||
|
|
||
|
err := s.repository.UpdateListCustom(ctx)
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
return nil
|
||
|
}
|