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
akuma06 989945f09b Shitty Moderation page
No HTML done, could'nt test with nyaa.exe :/
1 page with overview of torrents, comments, users
1 page list comments
1 page list torrents
1 page list users
1 route delete torreny
1 route delete comment
Users can be deleted and edited by their route user_profile_edit (I
think)
2017-05-10 05:24:18 +02:00

13 lignes
277 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("Uploader").Find(&comments)
return comments
}