Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostRepository ¶
func NewPostRepository ¶
func NewPostRepository(db *gorm.DB) *PostRepository
func (*PostRepository) GetPost ¶
func (postRepository *PostRepository) GetPost(post *models.Post, id int)
func (*PostRepository) GetPosts ¶
func (postRepository *PostRepository) GetPosts(posts *[]models.Post)
type PostRepositoryQ ¶
type UserRepository ¶
func NewUserRepository ¶
func NewUserRepository(db *gorm.DB) *UserRepository
func (*UserRepository) GetUserByEmail ¶
func (userRepository *UserRepository) GetUserByEmail(user *models.User, email string)
type UserRepositoryQ ¶
Click to show internal directories.
Click to hide internal directories.