奢侈品供应链开放平台

实现商品信息、库存和订单的实时同步

商品品牌列表API

    更新时间:2023-04-4


接口地址


http://host:port/api/v1/Pub/getGoodsBrand


请求头

  • User-Agent: alOpenApi
  • Content-Type: application/json; charset=utf-8
  • accept-encoding: gzip,deflate
  • data-signature: BF706E6AC693BA3B1BABD32E6713431D

  • 请求方式


    POST


    请求体
  • {
  • "appid":"123456",
  • "nonceStr":"k2f8oYmuCc",
    "timeStamp":"1679976183975",
  • "page": 1,
  • "pid":0
  • }
  • 参数名是否必须类型说明
    appid
    String访问凭证
    nonceStr

    String
    随机字符串
    timeStamp

    String
    unix时间戳
    pageint页码  默认1  每页返回100条数据
    pid
    int父级品牌id  0获取顶级分类
    返回结果
  • {
        "code": 1,
        "msg": "success",
        "time": "1698768903",
        "data": {
            "list": [
                {
                    "id": 31,
                    "goods_brand_name": "迪奥",
                    "goods_brand_ico": "https://aloss.fawet.com/uploads/20220720/f037c2d8b095aa2d9444260e0f4f4afe.jpg",
                    "pid": 0,
                    "status": 1,
                    "weigh": 97
                },
                {
                    "id": 32,
                    "goods_brand_name": "范思哲",
                    "goods_brand_ico": "https://aloss.fawet.com/uploads/20220725/5be5fdbdd923a7e3b18376270d9befcf.png",
                    "pid": 0,
                    "status": 1,
                    "weigh": 89
                },
                {
                    "id": 33,
                    "goods_brand_name": "香奈儿",
                    "goods_brand_ico": "https://aloss.fawet.com/uploads/20220720/74866f8810f98bab00f07b3495a0bbaa.jpg",
                    "pid": 0,
                    "status": 1,
                    "weigh": 99
                },
                {
                    "id": 34,
                    "goods_brand_name": "普拉达",
                    "goods_brand_ico": "https://aloss.fawet.com/uploads/20220725/a5006cf8688eae10b903622d80e15176.png",
                    "pid": 0,
                    "status": 1,
                    "weigh": 94
                }
            ],
            "currentPage": 1,
            "hasMore": false,
            "totalPage": 1
        }
    }
  • 字段名类型说明
    code
    int是否正确处理请求,返回1或0
    msg
    String处理结果的消息
    time
    String
    请求时间戳
    data
    list
    请求数据结果集
    data.list
    list品牌实体信息
    data.list.id
    int品牌id
    data.list.goods_brand_nameint品牌名
    data.list.goods_brand_ico
    int品牌图标
    data.list.pid
    string父级品牌id
    data.list.status
    text状态:1=启用 0= 停用
    data.list.weigh
    float排序值
    currentPage

    int

    当前页码
    hasMore
    bool是否有下页 true=有下页 false=无下页
    totalPage
    int
    总页码