repositories

package
v0.0.0-...-e68236f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 5 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL