Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentRepository ¶
type CommentRepository struct {
// contains filtered or unexported fields
}
func NewCommentRepository ¶
func NewCommentRepository(db *gorm.DB) *CommentRepository
func (*CommentRepository) GetCommentByPost ¶
func (r *CommentRepository) GetCommentByPost(id string) (models.Comments, error)
type PostRepository ¶
type PostRepository struct {
// contains filtered or unexported fields
}
func NewPostRepository ¶
func NewPostRepository(db *gorm.DB) *PostRepository
func (*PostRepository) CreatePost ¶
func (r *PostRepository) CreatePost(req *pb.AddPostRequest) (models.Post, error)
Create Socmed Post
func (*PostRepository) GetPostById ¶
func (r *PostRepository) GetPostById(id string) (models.Post, error)
Get Post By Id
Click to show internal directories.
Click to hide internal directories.