chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s
Some checks failed
Backend ci / build (push) Failing after 36m27s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user