Files
d3m0k1d.ru/backend/internal/repositories/interface.go
d3m0k1d c62dd7f421
All checks were successful
Backend ci / build (push) Successful in 3m36s
feat: Add new handlers and repository for oauth2
2026-02-09 23:33:59 +03:00

20 lines
484 B
Go

package repositories
import (
"context"
"gitea.d3m0k1d.ru/d3m0k1d/d3m0k1d.ru/backend/internal/storage"
)
type PostRepository interface {
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
}
type AuthRepository interface {
Test(ctx context.Context)
}