Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
type ArticleFavorite ¶
type ArticleFavorite struct { ArticleID domain.ID `bson:"article_id"` UserID domain.ID `bson:"user_id"` }
func AsArticleFavorite ¶
func AsArticleFavorite(arg domain.ArticleFavorite) ArticleFavorite
func (ArticleFavorite) ToDomain ¶
func (data ArticleFavorite) ToDomain() domain.ArticleFavorite
type ArticleFavoriteCount ¶
type ArticleFavoriteCount struct { ArticleID domain.ID `bson:"article_id"` Count int `bson:"favorite_count"` }
func AsArticleFavoriteCount ¶
func AsArticleFavoriteCount(arg domain.ArticleFavoriteCount) ArticleFavoriteCount
func (ArticleFavoriteCount) ToDomain ¶
func (data ArticleFavoriteCount) ToDomain() domain.ArticleFavoriteCount
type ArticleTag ¶
func AsArticleTag ¶
func AsArticleTag(arg domain.ArticleTag) ArticleTag
func (ArticleTag) ToDomain ¶
func (data ArticleTag) ToDomain() domain.ArticleTag
type Comment ¶
type User ¶
type UserFollow ¶
type UserFollow struct { FollowerID domain.ID `bson:"follower_id"` FolloweeID domain.ID `bson:"followee_id"` }
func AsUserFollow ¶
func AsUserFollow(arg domain.UserFollow) UserFollow
func (UserFollow) ToDomain ¶
func (data UserFollow) ToDomain() domain.UserFollow
Click to show internal directories.
Click to hide internal directories.