mapper

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFollowEntityFromModel

func GetFollowEntityFromModel(userId uint, followingId uint, follow *model.Follow) *entity.Follow

func GetNotificationModelFromEntity

func GetNotificationModelFromEntity(notification *entity.Notification) *model.Notification

func GetNotificationModelsFromEntities

func GetNotificationModelsFromEntities(notificationEntities []*entity.Notification) []*model.Notification

func GetPostEntityFromPostModel added in v0.1.3

func GetPostEntityFromPostModel(userId uint, post *model.Post) *entity.Post

func GetPostEntityFromReplyModel added in v0.1.3

func GetPostEntityFromReplyModel(userId uint, reply *model.Reply, postId uint) *entity.Post

func GetUserEntityFromModel

func GetUserEntityFromModel(user *model.User) *entity.User

func GetUserModelFromEntity

func GetUserModelFromEntity(user *entity.User) *model.User

Types

This section is empty.

Jump to

Keyboard shortcuts

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