2023-05-10 03:19:02 +04:00
|
|
|
package mindflow
|
|
|
|
|
|
|
|
type Mindflow interface {
|
2023-05-14 03:36:13 +04:00
|
|
|
New(post *Post) error
|
|
|
|
Edit(post *Post) error
|
2023-05-10 03:19:02 +04:00
|
|
|
Delete(id int64) error
|
2023-05-22 05:21:00 +04:00
|
|
|
Posts() ([]Post, error)
|
2023-05-14 03:52:28 +04:00
|
|
|
NewCategory(name string) (int64, error)
|
|
|
|
GetCategoryByID(id int64) (string, error)
|
2023-05-14 20:17:30 +04:00
|
|
|
Close() error
|
2023-05-10 03:19:02 +04:00
|
|
|
}
|