We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
return db.page( """ SELECT * FROM `article` """ )
data.list 的结构应该为数组,但是目前在查询条件下空数据返回 null,并不合理。在与某些外部第三方对接过程中,可能造成困扰。
data.list
null
期望返回:
{ "code": 200, "message": "success", "data": { "total": 0, "list": [] }, "timestamp": 1692847569273, "executeTime": 1691 }
另外期望 data 里可额外配置返回 page 和 size 等参数,某些情况下为了反爬虫,可能会对最大分页大小做出限制(比如如果 size > 100 则默认设置 size = 100 ,如果结果里返回 size 则可以拿到当前接口真实使用的 size 。
data
page
size
size > 100
size = 100
The text was updated successfully, but these errors were encountered:
可以参考https://www.ssssssss.org/magic-api/pages/base/response/
Sorry, something went wrong.
No branches or pull requests
data.list
的结构应该为数组,但是目前在查询条件下空数据返回null
,并不合理。在与某些外部第三方对接过程中,可能造成困扰。期望返回:
另外期望
data
里可额外配置返回page
和size
等参数,某些情况下为了反爬虫,可能会对最大分页大小做出限制(比如如果size > 100
则默认设置size = 100
,如果结果里返回size
则可以拿到当前接口真实使用的size
。The text was updated successfully, but these errors were encountered: