feat: update handlers in posts
All checks were successful
Backend ci / build (push) Successful in 3m29s

This commit is contained in:
d3m0k1d
2026-02-13 14:46:44 +03:00
parent 15cf6cca8a
commit 2c198e56eb
4 changed files with 69 additions and 5 deletions

View File

@@ -9,6 +9,8 @@ import (
type PostRepository interface {
GetAll(ctx context.Context) ([]storage.PostReq, error)
GetByID(ctx context.Context, id int) (storage.PostReq, error)
GetLastID(ctx context.Context) (int, error)
IsExist(ctx context.Context, id int) bool
Create(ctx context.Context, post storage.Post) error
Update(ctx context.Context, id int, post storage.Post) error
Delete(ctx context.Context, id int) error