SetReplyUserID set reply user id
(str string)
| 72 | |
| 73 | // SetReplyUserID set reply user id |
| 74 | func (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 |
| 83 | func (c *Comment) SetReplyCommentID(str string) { |
no test coverage detected