Documentation ¶
Index ¶
- func BuildArticle(article *model.Article) *model.ArticleResponse
- func BuildArticles(articles []model.Article) []model.ArticleResponse
- func BuildCategory(category *model.Category) *model.CategoryResponse
- func BuildComment(comment model.Comment) *model.CommentResponse
- func BuildFavorite(favorite *model.Favorite) *model.FavoriteResponse
- func BuildFavorites(favorites []model.Favorite) []model.FavoriteResponse
- func BuildHtmlContent(htmlContent string) string
- func BuildMessage(message *model.Message) *model.MessageResponse
- func BuildMessages(messages []model.Message) []model.MessageResponse
- func BuildSimpleArticle(article *model.Article) *model.ArticleSimpleResponse
- func BuildSimpleArticles(articles []model.Article) []model.ArticleSimpleResponse
- func BuildSimpleTopic(topic *model.Topic) *model.TopicSimpleResponse
- func BuildSimpleTopics(topics []model.Topic) []model.TopicSimpleResponse
- func BuildTag(tag *model.Tag) *model.TagResponse
- func BuildTags(tags []model.Tag) *[]model.TagResponse
- func BuildTopic(topic *model.Topic) *model.TopicResponse
- func BuildTopics(topics []model.Topic) []model.TopicResponse
- func BuildUser(user *model.User) *model.UserInfo
- func BuildUserById(id int64) *model.UserInfo
- func BuildUserDefaultIfNull(id int64) *model.UserInfo
- func BuildUsers(users []model.User) []model.UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildArticle ¶
func BuildArticle(article *model.Article) *model.ArticleResponse
func BuildArticles ¶
func BuildArticles(articles []model.Article) []model.ArticleResponse
func BuildCategory ¶
func BuildCategory(category *model.Category) *model.CategoryResponse
func BuildComment ¶
func BuildComment(comment model.Comment) *model.CommentResponse
func BuildFavorite ¶
func BuildFavorite(favorite *model.Favorite) *model.FavoriteResponse
func BuildFavorites ¶
func BuildFavorites(favorites []model.Favorite) []model.FavoriteResponse
func BuildHtmlContent ¶
func BuildMessage ¶
func BuildMessage(message *model.Message) *model.MessageResponse
func BuildMessages ¶
func BuildMessages(messages []model.Message) []model.MessageResponse
func BuildSimpleArticle ¶ added in v1.0.5
func BuildSimpleArticle(article *model.Article) *model.ArticleSimpleResponse
func BuildSimpleArticles ¶ added in v1.0.5
func BuildSimpleArticles(articles []model.Article) []model.ArticleSimpleResponse
func BuildSimpleTopic ¶ added in v1.0.5
func BuildSimpleTopic(topic *model.Topic) *model.TopicSimpleResponse
func BuildSimpleTopics ¶ added in v1.0.5
func BuildSimpleTopics(topics []model.Topic) []model.TopicSimpleResponse
func BuildTopic ¶
func BuildTopic(topic *model.Topic) *model.TopicResponse
func BuildTopics ¶
func BuildTopics(topics []model.Topic) []model.TopicResponse
func BuildUserById ¶
func BuildUserDefaultIfNull ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.