Documentation ¶
Index ¶
- func BuildArticle(article *model.Article) *model.ArticleResponse
- func BuildArticles(articles []model.Article) []model.ArticleResponse
- func BuildCategory(categoryId int64) *model.CategoryResponse
- func BuildComment(comment model.Comment) *model.CommentResponse
- func BuildCurrentUser(ctx context.Context) *model.UserInfo
- 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 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
- func View(ctx context.Context, filename string, viewModel iris.Map)
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 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 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.