chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s

This commit is contained in:
d3m0k1d
2026-02-03 19:41:18 +03:00
parent 440b836d54
commit 44406b02d3
4 changed files with 43 additions and 9 deletions

View File

@@ -7,8 +7,8 @@ import (
)
type PostRepository interface {
GetAll(ctx context.Context) ([]storage.Post, error)
GetByID(ctx context.Context, id int) (storage.Post, error)
GetAll(ctx context.Context) ([]storage.PostReq, error)
GetByID(ctx context.Context, id int) (storage.PostReq, error)
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