Versions in this module Expand all Collapse all v0 v0.1.0 Jul 20, 2021 Changes in this version + type DiscussionRepository struct + DB *mongo.Database + func NewDiscussionRepository(DB *mongo.Database) *DiscussionRepository + func (dr DiscussionRepository) AddMember(discussionID interface{}, userID interface{}) error + func (dr DiscussionRepository) Create(param entity.CreateDiscussionParam) (*entity.Discussion, error) + func (dr DiscussionRepository) DeleteByID(discussionID interface{}) error + func (dr DiscussionRepository) GetDiscussionByCode(code string) (*entity.Discussion, error) + func (dr DiscussionRepository) GetDiscussionsByID(discussionID interface{}) (*entity.Discussion, error) + func (dr DiscussionRepository) GetDiscussionsByUserID(userID interface{}) ([]*entity.Discussion, error) + func (dr DiscussionRepository) RemoveMember(discussionID, userID interface{}) error + func (dr DiscussionRepository) UpdateByID(discussionID interface{}, param entity.UpdateDiscussionParam) error + func (dr DiscussionRepository) UpdatePasswordByID(discussionID interface{}, password string) error + func (dr DiscussionRepository) UpdatePhotoByID(discussionID interface{}, url string) error + type MessageRepository struct + DB *mongo.Database + func NewMessageRepository(DB *mongo.Database) *MessageRepository + func (mr MessageRepository) Create(param entity.CreateMessage) (*entity.Message, error) + func (mr MessageRepository) GetPaginatedMessagesByDiscussionID(discussionID interface{}, size int, page int) ([]*entity.Message, error) + type UserRepository struct + DB *mongo.Database + func NewUserRepository(DB *mongo.Database) *UserRepository + func (ur UserRepository) Create(param entity.CreateUserParam) (*entity.User, error) + func (ur UserRepository) GetUserByEmail(email string) (*entity.User, error) + func (ur UserRepository) GetUserByID(userID interface{}) (*entity.User, error)