Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/service/comment/comment.go
2017-05-10 05:47:01 +00:00

14 lignes
273 o
Go

package commentService
import (
"github.com/ewhal/nyaa/db"
"github.com/ewhal/nyaa/model"
)
func GetAllComments(limit int, offset int) []model.Comment{
var comments []model.Comment
db.ORM.Limit(limit).Offset(offset).Preload("User").Find(&comments)
return comments
}