我的求购
分页查看自己发布的求购和当前状态。
| 请求方式 | GET/POST |
|---|---|
| 接口路径 | /api/demand/list |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
|---|---|---|---|
userId | Long | 否 | URL 参数 |
curPage | Integer | 否 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/demand/list?userId=1&curPage=1' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
data 为分页对象,业务数据在 records。
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"records": [
"..."
],
"total": 0,
"size": 10,
"current": 1,
"pages": 0
}
}