Documentation ¶
Index ¶
- func BuildArticle(article *model.Article) *model.ArticleResponse
- func BuildComment(comment model.Comment) *model.CommentResponse
- func BuildComments(comments []model.Comment) []model.CommentResponse
- func BuildFavorite(favorite *model.Favorite) *model.FavoriteResponse
- func BuildFavorites(favorites []model.Favorite) []model.FavoriteResponse
- func BuildLoginSuccess(user *model.User, ref string) *simple.JsonResult
- func BuildMessage(msg *model.Message) *model.MessageResponse
- func BuildMessages(messages []model.Message) []model.MessageResponse
- func BuildNode(node *model.TopicNode) *model.NodeResponse
- func BuildNodes(nodes []model.TopicNode) []model.NodeResponse
- func BuildProject(project *model.Project) *model.ProjectResponse
- func BuildSearchTopic(doc es.TopicDocument) model.SearchTopicResponse
- func BuildSearchTopics(docs []es.TopicDocument) []model.SearchTopicResponse
- func BuildSimpleArticle(article *model.Article) *model.ArticleSimpleResponse
- func BuildSimpleArticles(articles []model.Article) []model.ArticleSimpleResponse
- func BuildSimpleProject(project *model.Project) *model.ProjectSimpleResponse
- func BuildSimpleProjects(projects []model.Project) []model.ProjectSimpleResponse
- func BuildSimpleTopic(topic *model.Topic) *model.TopicResponse
- func BuildSimpleTopics(topics []model.Topic, currentUser *model.User) []model.TopicResponse
- func BuildTag(tag *model.Tag) *model.TagResponse
- func BuildTags(tags []model.Tag) *[]model.TagResponse
- func BuildTopic(topic *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 HandleOssImageStyle(url, style string) string
- func HandleOssImageStyleAvatar(url string) string
- func HandleOssImageStyleDetail(url string) string
- func HandleOssImageStylePreview(url string) string
- func HandleOssImageStyleSmall(url string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildArticle ¶
func BuildArticle(article *model.Article) *model.ArticleResponse
func BuildComment ¶
func BuildComment(comment model.Comment) *model.CommentResponse
func BuildComments ¶
func BuildComments(comments []model.Comment) []model.CommentResponse
func BuildFavorite ¶
func BuildFavorite(favorite *model.Favorite) *model.FavoriteResponse
func BuildFavorites ¶
func BuildFavorites(favorites []model.Favorite) []model.FavoriteResponse
func BuildLoginSuccess ¶
func BuildLoginSuccess(user *model.User, ref string) *simple.JsonResult
BuildLoginSuccess 处理登录成功后的返回数据
Parameter:
user - login user ref - 登录来源地址,需要控制登录成功之后跳转到该地址
func BuildMessage ¶
func BuildMessage(msg *model.Message) *model.MessageResponse
func BuildNodes ¶
func BuildNodes(nodes []model.TopicNode) []model.NodeResponse
func BuildProject ¶
func BuildProject(project *model.Project) *model.ProjectResponse
func BuildSearchTopic ¶
func BuildSearchTopic(doc es.TopicDocument) model.SearchTopicResponse
func BuildSearchTopics ¶
func BuildSearchTopics(docs []es.TopicDocument) []model.SearchTopicResponse
func BuildSimpleArticle ¶
func BuildSimpleArticle(article *model.Article) *model.ArticleSimpleResponse
func BuildSimpleArticles ¶
func BuildSimpleArticles(articles []model.Article) []model.ArticleSimpleResponse
func BuildSimpleProject ¶
func BuildSimpleProject(project *model.Project) *model.ProjectSimpleResponse
func BuildSimpleProjects ¶
func BuildSimpleProjects(projects []model.Project) []model.ProjectSimpleResponse
func BuildSimpleTopic ¶
func BuildSimpleTopic(topic *model.Topic) *model.TopicResponse
func BuildSimpleTopics ¶
func BuildTopic ¶
func BuildTopic(topic *model.Topic) *model.TopicResponse
func BuildUserById ¶
func BuildUserDefaultIfNull ¶
func HandleOssImageStyle ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.