Documentation ¶
Index ¶
- type Comment
- func (r *Comment) Create(ctx context.Context, req *model.CreateCommentRequestRepository) (int64, error)
- func (r *Comment) GetCommentsByPostID(ctx context.Context, req *model.GetComment) ([]*model.CommentResponse, error)
- func (r *Comment) GetLastComment(ctx context.Context, id int64) (*model.CommentResponse, error)
- func (r *Comment) GetTotalComments(ctx context.Context, userPostID int64) (*int64, error)
- type UserPost
- func (r *UserPost) AddLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
- func (r *UserPost) CheckHealthReadiness(ctx context.Context) error
- func (r *UserPost) CheckIsExistLikeOnPostBy(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) (bool, error)
- func (r *UserPost) GetActor(ctx context.Context, id int64) (*model.UserResponse, error)
- func (r *UserPost) GetDetailPost(ctx context.Context, id int64) (*model.PostResponse, error)
- func (r *UserPost) GetListPost(ctx context.Context, request *model.UserPostRequest) ([]*model.PostResponse, error)
- func (r *UserPost) GetListPostByMe(ctx context.Context, request *model.UserPostByMeRequest) ([]*model.PostResponse, error)
- func (r *UserPost) GetMetadataPost(ctx context.Context, request *model.UserPostRequest) (*int64, error)
- func (r *UserPost) GetMetadataPostByMe(ctx context.Context, request *model.UserPostByMeRequest) (*int64, error)
- func (r *UserPost) InsertPost(ctx context.Context, request *model.CreateNewPostRequestRepository) error
- func (r *UserPost) RemoveLikeOnPost(ctx context.Context, request *model.AddOrRemoveLikeOnPostRequest) error
- func (r *UserPost) UpdateDetailOfUserPost(ctx context.Context, request *model.UpdatePostRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
// contains filtered or unexported fields
}
func NewComment ¶
func (*Comment) GetCommentsByPostID ¶
func (r *Comment) GetCommentsByPostID(ctx context.Context, req *model.GetComment) ([]*model.CommentResponse, error)
func (*Comment) GetLastComment ¶
type UserPost ¶
type UserPost struct {
// contains filtered or unexported fields
}
func NewUserPost ¶
func (*UserPost) AddLikeOnPost ¶
func (*UserPost) CheckHealthReadiness ¶
func (*UserPost) CheckIsExistLikeOnPostBy ¶
func (*UserPost) GetDetailPost ¶
func (*UserPost) GetListPost ¶
func (r *UserPost) GetListPost(ctx context.Context, request *model.UserPostRequest) ([]*model.PostResponse, error)
func (*UserPost) GetListPostByMe ¶
func (r *UserPost) GetListPostByMe(ctx context.Context, request *model.UserPostByMeRequest) ([]*model.PostResponse, error)
func (*UserPost) GetMetadataPost ¶
func (*UserPost) GetMetadataPostByMe ¶
func (*UserPost) InsertPost ¶
func (*UserPost) RemoveLikeOnPost ¶
func (*UserPost) UpdateDetailOfUserPost ¶
Click to show internal directories.
Click to hide internal directories.