feat: update handlers in posts
All checks were successful
Backend ci / build (push) Successful in 3m29s
All checks were successful
Backend ci / build (push) Successful in 3m29s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user