Documentation
¶
Index ¶
- func CommentModelToOutput(src *ent.Comment, dest *data.CommentOutput) *data.CommentOutput
- func CopyCommentOutput(src *data.CommentOutput) *data.CommentOutput
- func KhumuUserModelToSimpleOutput(src *ent.KhumuUser, dest *data.SimpleKhumuUserOutput) *data.SimpleKhumuUserOutput
- func NewCreatedAtExpression(createdAt time.Time) string
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 ¶
Comment.CreatedAt을 바탕으로 Comment.CreatedAtExpression에 올바른 값을 입력시킨다.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.