Documentation ¶
Index ¶
- Variables
- type IPost
- type Post
- func (p *Post) Create(ctx context.Context, req *dto.CreatePostDTO, userID int64) (*entity.Post, error)
- func (p *Post) Edit(ctx context.Context, req *dto.EditPostDTO, userID int64) (*entity.Post, error)
- func (p *Post) Feed(ctx context.Context, req *dto.FeedPostDTO) ([]*entity.Post, int64, error)
- func (p *Post) List(ctx context.Context, req *dto.ListPostDTO, userID int64) ([]*entity.Post, int64, error)
- func (p *Post) PublicGet(ctx context.Context, id int64) (*entity.Post, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrorPostNotFound = errors.New("post not found")
)
Functions ¶
This section is empty.
Types ¶
type IPost ¶
type IPost interface { Feed(ctx context.Context, req *dto.FeedPostDTO) ([]*entity.Post, int64, error) PublicGet(ctx context.Context, id int64) (*entity.Post, error) Create(ctx context.Context, req *dto.CreatePostDTO, userID int64) (*entity.Post, error) Edit(ctx context.Context, req *dto.EditPostDTO, userID int64) (*entity.Post, error) List(ctx context.Context, req *dto.ListPostDTO, userID int64) ([]*entity.Post, int64, error) }
Click to show internal directories.
Click to hide internal directories.