删除主题接口[批量]

  • 接口说明: 删除主题[批量]
  • 接口地址: /api/threads/batch/{ids}
  • 请求方式: DELETE

请求参数

请求示例

  1. /api/threads/batch/21,22,23

返回说明

  • http 状态码 200

返回结果

  1. data 被删除的主题列表
  2. meta 出现异常的主题列表

返回示例

  1. {
  2. "data": [
  3. {
  4. "type": "threads",
  5. "id": "11",
  6. "attributes": {
  7. "title": "",
  8. "price": "0.00",
  9. "viewCount": 0,
  10. "postCount": 1,
  11. "likeCount": 0,
  12. "createdAt": "2019-11-12T17:10:45+08:00",
  13. "updatedAt": "2019-11-12T17:10:45+08:00",
  14. "isApproved": true,
  15. "isSticky": false,
  16. "isEssence": false,
  17. "canFavorite": true
  18. }
  19. },
  20. {
  21. "type": "threads",
  22. "id": "21",
  23. "attributes": {
  24. "title": "",
  25. "price": "0.00",
  26. "viewCount": 0,
  27. "postCount": 1,
  28. "likeCount": 0,
  29. "createdAt": "2019-11-12T17:10:53+08:00",
  30. "updatedAt": "2019-11-12T17:10:53+08:00",
  31. "isApproved": true,
  32. "isSticky": false,
  33. "isEssence": false,
  34. "canFavorite": true
  35. }
  36. }
  37. ],
  38. "meta": [
  39. {
  40. "id": "11",
  41. "message": "No query results for model [App\\Models\\Post] 1000"
  42. },
  43. {
  44. "id": "21",
  45. "message": "No query results for model [App\\Models\\Post] 1000"
  46. }
  47. ]
  48. }