MCPcopy Index your code
hub / github.com/apache/answer / SetFromComment

Method SetFromComment

internal/schema/comment_schema.go:218–224  ·  view source on GitHub ↗
(comment *entity.Comment)

Source from the content-addressed store, hash-verified

216}
217
218func (r *GetCommentResp) SetFromComment(comment *entity.Comment) {
219 _ = copier.Copy(r, comment)
220 r.CommentID = comment.ID
221 r.CreatedAt = comment.CreatedAt.Unix()
222 r.ReplyUserID = comment.GetReplyUserID()
223 r.ReplyCommentID = comment.GetReplyCommentID()
224}
225
226// GetCommentPersonalWithPageReq get comment list page request
227type GetCommentPersonalWithPageReq struct {

Callers 2

GetCommentMethod · 0.80
AddCommentMethod · 0.80

Calls 2

GetReplyUserIDMethod · 0.80
GetReplyCommentIDMethod · 0.80

Tested by

no test coverage detected