From 0903f2c2c662c4b83e0da6f44ff28414b356fe5d Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 14 May 2023 03:36:13 +0400 Subject: [PATCH] Changed method signatures for Mindflow interface. --- pkg/mindflow/mindflow.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/mindflow/mindflow.go b/pkg/mindflow/mindflow.go index 9f9ec75..5e2511c 100644 --- a/pkg/mindflow/mindflow.go +++ b/pkg/mindflow/mindflow.go @@ -1,7 +1,8 @@ package mindflow type Mindflow interface { - New(post Post) error - Edit(post Post) error + New(post *Post) error + Edit(post *Post) error Delete(id int64) error + GetAll() ([]Post, error) }