Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-10 14:00:23 +04:00
parent 992ab642ea
commit 2cb58d0e32
2 changed files with 9 additions and 9 deletions

View File

@@ -77,10 +77,10 @@ type (
UpdateCookieCategoryRequest struct {
CookieCategoryID gid.GID
Name *string
Description *string
Rank *int
Cookies *coredata.CookieItems
Name *string
Description *string
Rank *int
Cookies *coredata.CookieItems
}
)

View File

@@ -17,10 +17,10 @@ package cookiebanner
import "errors"
var (
ErrBannerNotFound = errors.New("cookie banner not found")
ErrCategoryNotFound = errors.New("cookie category not found")
ErrBannerNotDraft = errors.New("cookie banner is not in draft state")
ErrBannerAlreadyPublished = errors.New("cookie banner is already published")
ErrBannerAlreadyDisabled = errors.New("cookie banner is already disabled")
ErrBannerNotFound = errors.New("cookie banner not found")
ErrCategoryNotFound = errors.New("cookie category not found")
ErrBannerNotDraft = errors.New("cookie banner is not in draft state")
ErrBannerAlreadyPublished = errors.New("cookie banner is already published")
ErrBannerAlreadyDisabled = errors.New("cookie banner is already disabled")
ErrCannotDeleteRequiredCategory = errors.New("cannot delete required cookie category")
)