render

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 BuildHtmlContent(htmlContent string) string

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 BuildTag

func BuildTag(tag *model.Tag) *model.TagResponse

func BuildTags

func BuildTags(tags []model.Tag) *[]model.TagResponse

func BuildTopic

func BuildTopic(topic *model.Topic) *model.TopicResponse

func BuildTopics

func BuildTopics(topics []model.Topic) []model.TopicResponse

func BuildUser

func BuildUser(user *model.User) *model.UserInfo

func BuildUserById

func BuildUserById(id int64) *model.UserInfo

func BuildUserDefaultIfNull

func BuildUserDefaultIfNull(id int64) *model.UserInfo

func BuildUsers

func BuildUsers(users []model.User) []model.UserInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL