mapper

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentModelToOutput

func CommentModelToOutput(src *ent.Comment, dest *data.CommentOutput) *data.CommentOutput

기존의 Comment를 복제해서 CommentOutput을 만든다 기존의 Comment나 Author, Children 등 참조 X. 복제.

func CopyCommentOutput

func CopyCommentOutput(src *data.CommentOutput) *data.CommentOutput

func KhumuUserModelToSimpleOutput

func KhumuUserModelToSimpleOutput(src *ent.KhumuUser, dest *data.SimpleKhumuUserOutput) *data.SimpleKhumuUserOutput

새로운 SimpleKhumuUserOutput을 생성한다 원래 KhumuUser 참조 X

func NewCreatedAtExpression

func NewCreatedAtExpression(createdAt time.Time) string

Comment.CreatedAt을 바탕으로 Comment.CreatedAtExpression에 올바른 값을 입력시킨다.

Types

This section is empty.

Jump to

Keyboard shortcuts

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