You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET /v0/episodes?subject_id=123&limit=10&reverse=1,大致效果是这样然后返回就是最后 10 集,按从大到小(最新到最旧)排序吗?看了一下好多handler都用了offset,要写能传负数offset的话,感觉也是要给episodes写特判,确实直接写reverse参数可能好一些?
Activity
[-]章节 API /v0/episodes 倒逆获取集数[/-][+]章节 API `/v0/episodes` 倒逆获取集数[/+]trim21 commentedon Sep 6, 2025
我记得现在的offset可以传负数?
JasonKhew96 commentedon Sep 6, 2025
不能吧
https://github.com/bangumi/server/blob/f91e524d70dd7922cc820aa090cdae505f06610b/web/req/page.go#L93-L103
trim21 commentedon Sep 6, 2025
那确实不能(
后面想办法支持吧
lijrjyan commentedon Nov 28, 2025
GET /v0/episodes?subject_id=123&limit=10&reverse=1,大致效果是这样然后返回就是最后 10 集,按从大到小(最新到最旧)排序吗?看了一下好多handler都用了offset,要写能传负数offset的话,感觉也是要给episodes写特判,确实直接写reverse参数可能好一些?trim21 commentedon Nov 30, 2025
应该实现成类似Python list那样的语法,负的话就是最后几个章节