render

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: GPL-3.0 Imports: 16 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(categoryId int64) *model.CategoryResponse

func BuildComment

func BuildComment(comment model.Comment) *model.CommentResponse

func BuildCurrentUser

func BuildCurrentUser(ctx context.Context) *model.UserInfo

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 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

func View

func View(ctx context.Context, filename string, viewModel iris.Map)

Types

This section is empty.

Jump to

Keyboard shortcuts

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