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

Method SetReplyCommentID

internal/entity/comment_entity.go:83–89  ·  view source on GitHub ↗

SetReplyCommentID set reply comment id

(str string)

Source from the content-addressed store, hash-verified

81
82// SetReplyCommentID set reply comment id
83func (c *Comment) SetReplyCommentID(str string) {
84 if len(str) > 0 {
85 c.ReplyCommentID = sql.NullInt64{Int64: converter.StringToInt64(str), Valid: true}
86 } else {
87 c.ReplyCommentID = sql.NullInt64{Valid: false}
88 }
89}
90
91// GetMentionUsernameList get mention username list
92func (c *Comment) GetMentionUsernameList() []string {

Callers 1

AddCommentMethod · 0.95

Calls 1

StringToInt64Function · 0.92

Tested by

no test coverage detected