在请求主体中发送日期和分页,Node.js
这是我的API: API:{{test}}/用户/getDashboardDetails
现在我正在请求主体中的分页。 请求主体: { “分页”:{ “页面”:1, “限制”:10 } }
现在,我也想发送日期: 请求主体: { “开始”:“ 7/7/2022”, “结束”:“ 7/9/2022” } 以及分页。
如何将请求主体中的日期和分页发送在一起?
This is my API :
API:{{test}}/users/getDashboardDetails
Now I am sending the pagination in request body.
Request Body:
{
"pagination": {
"page": 1,
"limit": 10
}
}
Now I want to send date as well:
Request Body:
{
"start": "7/7/2022",
"end": "7/9/2022"
}
along with the pagination .
How can I send date and pagination in request body together?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将数据组合到对象中,然后按照这样的方式将它们发送在一起,
You can combine your data in an object then send them together as you want like this,