12 lines
280 B
Go
12 lines
280 B
Go
package comments
|
|
|
|
import (
|
|
"git.aiterp.net/rpdata/api/models"
|
|
"github.com/globalsign/mgo/bson"
|
|
)
|
|
|
|
// ListChapterID lists all comments by chapter-ID
|
|
func ListChapterID(chapterID string, limit int) ([]models.Comment, error) {
|
|
return list(bson.M{"chapterId": chapterID}, limit)
|
|
}
|