From 589441e967696dd1ca554c9abac360f0e7966a33 Mon Sep 17 00:00:00 2001 From: mostovoy Date: Thu, 2 Oct 2025 13:58:28 +0300 Subject: [PATCH] Add comments to testdata/catalogues --- testdata/catalogue.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testdata/catalogue.go b/testdata/catalogue.go index f7acdc1..c7e1272 100644 --- a/testdata/catalogue.go +++ b/testdata/catalogue.go @@ -30,6 +30,7 @@ type Campaign struct { type CatalogueService struct{ zenrpc.Service } +// Validates the provided groups structure and returns true if valid. func (s CatalogueService) First(groups Groups) (bool, error) { return true, nil } @@ -38,6 +39,7 @@ func (s CatalogueService) Second(campaigns []Campaign) (bool, error) { return true, nil } +// Returns an empty campaign structure. Can be used as a template. func (s CatalogueService) Third() (Campaign, error) { return Campaign{}, nil }