We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
pageSize
/api/riff/getRiffCards
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新api请求:获取所有闪卡
我想要通过api获取所有闪卡,但是有个问题是/api/riff/getRiffCards有个必穿的参数page,这就很难受了,因为我并不知道有多少页。
目前我测试出来一页有20条, 虽然可以通过首次调用这个接口的返回数据,来计算共多少页,如下图:
但是这样未免太麻烦了,计算出来页数之后还要循环调用这个接口才能获得完整的全量数据。
方案一:更新一下/api/riff/getRiffCards这个接口,改成如果不传递page的话,就返回所有闪卡
方案二:新增一个接口,专门用来获取所有闪卡,/api/riff/getAllRiffCards
No response
The text was updated successfully, but these errors were encountered:
这样,我们加一个参数 pageSize,传大一点就相当于不分页了。
Sorry, something went wrong.
🎨 Add parameter pageSize for kernel API /api/riff/getRiffCards Fix …
4173654
…#10445
88250
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
新api请求:获取所有闪卡
In what scenarios do you need this feature?
我想要通过api获取所有闪卡,但是有个问题是/api/riff/getRiffCards有个必穿的参数page,这就很难受了,因为我并不知道有多少页。
Describe the optimal solution
目前我测试出来一页有20条,

虽然可以通过首次调用这个接口的返回数据,来计算共多少页,如下图:
但是这样未免太麻烦了,计算出来页数之后还要循环调用这个接口才能获得完整的全量数据。
Describe the candidate solution
方案一:更新一下/api/riff/getRiffCards这个接口,改成如果不传递page的话,就返回所有闪卡
方案二:新增一个接口,专门用来获取所有闪卡,/api/riff/getAllRiffCards
Other information
No response
The text was updated successfully, but these errors were encountered: