Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentEntities ¶
func (CommentEntities) GetParentsLength ¶
func (cl CommentEntities) GetParentsLength() int
func (CommentEntities) GetTotalLength ¶
func (cl CommentEntities) GetTotalLength() int
func (*CommentEntities) MarshalBinary ¶
func (cl *CommentEntities) MarshalBinary() ([]byte, error)
MarshalBinary -
func (*CommentEntities) UnmarshalBinary ¶
func (cl *CommentEntities) UnmarshalBinary(data []byte) error
UnmarshalBinary -
type CommentInput ¶
type CommentOutput ¶
type CommentOutput struct {
ID int `json:"id"`
Kind string `json:"kind"`
State string `json:"state"`
Author *SimpleKhumuUserOutput `json:"author"`
Article *int `json:"article"`
StudyArticle *int `json:"study_article"`
Parent *int `json:"parent"`
Content string `json:"content"`
Children []*CommentOutput `json:"children"`
IsAuthor bool `json:"is_author"`
IsWrittenByArticleAuthor bool `json:"is_written_by_article_author"`
LikeCommentCount int `json:"like_comment_count"`
Liked bool `json:"liked"`
CreatedAt string `json:"created_at"`
}
type LikeCommentEntities ¶
type LikeCommentEntities []*ent.LikeComment
func (LikeCommentEntities) GetLiked ¶
func (lcl LikeCommentEntities) GetLiked(username string) bool
UnmarshalBinary -
func (*LikeCommentEntities) MarshalBinary ¶
func (lcl *LikeCommentEntities) MarshalBinary() ([]byte, error)
MarshalBinary -
func (*LikeCommentEntities) UnmarshalBinary ¶
func (lcl *LikeCommentEntities) UnmarshalBinary(data []byte) error
UnmarshalBinary -
type LikeCommentInput ¶
type SimpleKhumuUserOutput ¶
Click to show internal directories.
Click to hide internal directories.