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

Method SetReplyUserID

internal/entity/comment_entity.go:74–80  ·  view source on GitHub ↗

SetReplyUserID set reply user id

(str string)

Source from the content-addressed store, hash-verified

72
73// SetReplyUserID set reply user id
74func (c *Comment) SetReplyUserID(str string) {
75 if len(str) > 0 {
76 c.ReplyUserID = sql.NullInt64{Int64: converter.StringToInt64(str), Valid: true}
77 } else {
78 c.ReplyUserID = sql.NullInt64{Valid: false}
79 }
80}
81
82// SetReplyCommentID set reply comment id
83func (c *Comment) SetReplyCommentID(str string) {

Callers 1

AddCommentMethod · 0.95

Calls 1

StringToInt64Function · 0.92

Tested by

no test coverage detected