989945f09b
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)
13 lignes
277 o
Go
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
|
|
}
|