convert

package
v0.0.0-...-0064678 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment2DTO

func Comment2DTO(post *core.Comment, user *core.User) dto.Comment

func Community2DTO

func Community2DTO(community *core.Community) dto.Community

func Community2DTOSmallProfile

func Community2DTOSmallProfile(community *core.Community) dto.CommunityProfile

func Community2DTOprofile

func Community2DTOprofile(community *core.Community, admins []dto.User) dto.CommunityProfile

func CommunityProfile2Author

func CommunityProfile2Author(community dto.CommunityProfile) dto.Author

func Context

func Context(eCtx echo.Context) context.Context

func Dialog2DTO

func Dialog2DTO(dialog *core.Dialog, userID string) dto.Dialog

func Like2DTO

func Like2DTO(like *core.Like, userID string) dto.Like

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 Post2DTOByCommunity(post *core.Post, community *core.Community) dto.Post

func Post2DTOByUser

func Post2DTOByUser(post *core.Post, author *core.User) dto.Post

func Profile2DTO

func Profile2DTO(user *core.User) dto.UserProfile

func User2DTO

func User2DTO(user *core.User) dto.User

func User2author

func User2author(user dto.User) dto.Author

Types

This section is empty.

Jump to

Keyboard shortcuts

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