SetReplyCommentID set reply comment id
(str string)
| 81 | |
| 82 | // SetReplyCommentID set reply comment id |
| 83 | func (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 |
| 92 | func (c *Comment) GetMentionUsernameList() []string { |
no test coverage detected