Initial commit

This commit is contained in:
KamilM1205 2025-09-16 13:26:27 +04:00
commit c0cb826917
63 changed files with 2069 additions and 0 deletions

View file

@ -0,0 +1,16 @@
package repository
import (
"58team_blog/internal/domain/entities"
"github.com/google/uuid"
)
type PostRepository interface {
Create(*entities.Post) (*entities.Post, error)
FindById(uuid.UUID) (*entities.Post, error)
FindAllByUserName(string) ([]*entities.Post, error)
GetAll() ([]*entities.Post, error)
Update(*entities.Post) error
Delete(uuid.UUID) error
}