(e Engine, commentID int64)
| 137 | } |
| 138 | |
| 139 | func getAttachmentsByCommentID(e Engine, commentID int64) ([]*Attachment, error) { |
| 140 | attachments := make([]*Attachment, 0, 5) |
| 141 | return attachments, e.Where("comment_id=?", commentID).Find(&attachments) |
| 142 | } |
| 143 | |
| 144 | // GetAttachmentsByCommentID returns all attachments of a comment. |
| 145 | func GetAttachmentsByCommentID(commentID int64) ([]*Attachment, error) { |
no test coverage detected