1
0

Added NewCategory and GetCategoryByID methods in Mindflow interface.

This commit is contained in:
Alexander Andreev 2023-05-14 03:52:28 +04:00
parent 5ef41d5961
commit b4ba80e02b
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -5,4 +5,6 @@ type Mindflow interface {
Edit(post *Post) error Edit(post *Post) error
Delete(id int64) error Delete(id int64) error
GetAll() ([]Post, error) GetAll() ([]Post, error)
NewCategory(name string) (int64, error)
GetCategoryByID(id int64) (string, error)
} }