Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LikedPostsDAO ¶
func NewDBLikedPostsDAO ¶
func NewDBLikedPostsDAO(db *gorm.DB) LikedPostsDAO
type NullLikedPostsDAO ¶
type NullLikedPostsDAO struct{}
func (NullLikedPostsDAO) Add ¶
func (o NullLikedPostsDAO) Add(record LikedPost) error
type NullSelectedCommunitiesDAO ¶
type NullSelectedCommunitiesDAO struct{}
func (NullSelectedCommunitiesDAO) Add ¶
func (o NullSelectedCommunitiesDAO) Add(s SelectedCommunity) (bool, error)
func (NullSelectedCommunitiesDAO) Delete ¶
func (o NullSelectedCommunitiesDAO) Delete(s SelectedCommunity) error
type SelectedCommunitiesDAO ¶
type SelectedCommunitiesDAO interface { // FindAll returns all the selected member ids FindAll(userId string) ([]string, error) // Add returns true if the record is inserted Add(record SelectedCommunity) (bool, error) Delete(record SelectedCommunity) error }
func NewSelectedCommunitiesDAO ¶
func NewSelectedCommunitiesDAO(db *gorm.DB) SelectedCommunitiesDAO
type SelectedCommunity ¶
Click to show internal directories.
Click to hide internal directories.