Skip to content

商品管理 API

获取商品列表

http
GET /api/goods?accountId=xxx&page=1

参数:

参数类型说明
accountIdstring可选,指定账号
pagenumber页码,默认 1

不指定 accountId 时返回所有在线账号的商品。

响应:

json
{
  "items": [
    {
      "itemId": "商品ID",
      "title": "商品标题",
      "price": "99.00",
      "picUrl": "图片URL",
      "status": "在售",
      "accountId": "账号ID",
      "accountNickname": "账号昵称"
    }
  ],
  "totalCount": 100
}

获取单个账号商品

http
GET /api/goods/account/:id?page=1

响应:

json
{
  "items": [...],
  "nextPage": 2,
  "totalCount": 50
}

Released under the GPL-3.0 License.