From b4ba80e02bdaa25c2fb8bb20651088efcb682ab6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 14 May 2023 03:52:28 +0400 Subject: [PATCH] Added NewCategory and GetCategoryByID methods in Mindflow interface. --- pkg/mindflow/mindflow.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/mindflow/mindflow.go b/pkg/mindflow/mindflow.go index 5e2511c..0334b04 100644 --- a/pkg/mindflow/mindflow.go +++ b/pkg/mindflow/mindflow.go @@ -5,4 +5,6 @@ type Mindflow interface { Edit(post *Post) error Delete(id int64) error GetAll() ([]Post, error) + NewCategory(name string) (int64, error) + GetCategoryByID(id int64) (string, error) }