package checkoutfields import "context" type Service struct { repo Repository } func NewService(repo Repository) *Service { return &Service{repo: repo} } func (s *Service) Get(ctx context.Context) (*CheckoutField, error) { return s.repo.Get(ctx) } // Update remplace tous les réglages. Le nom du client est toujours demandé // (et obligatoire) : il n'est donc pas un réglage. func (s *Service) Update(ctx context.Context, f *CheckoutField) (*CheckoutField, error) { return s.repo.Update(ctx, f) }