Documentation
¶
Index ¶
- func Comment2DTO(post *core.Comment, user *core.User) dto.Comment
- func Community2DTO(community *core.Community) dto.Community
- func Community2DTOSmallProfile(community *core.Community) dto.CommunityProfile
- func Community2DTOprofile(community *core.Community, admins []dto.User) dto.CommunityProfile
- func CommunityProfile2Author(community dto.CommunityProfile) dto.Author
- func Context(eCtx echo.Context) context.Context
- func Dialog2DTO(dialog *core.Dialog, userID string) dto.Dialog
- func Like2DTO(like *core.Like, userID string) dto.Like
- func Message2DTO(message core.Message, userID string) dto.MessageInfo
- func Messages2DTO(messages []core.Message, userID string) []dto.MessageInfo
- func Post2DTOByCommunity(post *core.Post, community *core.Community) dto.Post
- func Post2DTOByUser(post *core.Post, author *core.User) dto.Post
- func Profile2DTO(user *core.User) dto.UserProfile
- func User2DTO(user *core.User) dto.User
- func User2author(user dto.User) dto.Author
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Community2DTOSmallProfile ¶
func Community2DTOSmallProfile(community *core.Community) dto.CommunityProfile
func Community2DTOprofile ¶
func CommunityProfile2Author ¶
func CommunityProfile2Author(community dto.CommunityProfile) dto.Author
func Message2DTO ¶
func Message2DTO(message core.Message, userID string) dto.MessageInfo
func Messages2DTO ¶
func Messages2DTO(messages []core.Message, userID string) []dto.MessageInfo
func Post2DTOByCommunity ¶
func Profile2DTO ¶
func Profile2DTO(user *core.User) dto.UserProfile
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.