3 Star 0 Fork 0

商城项目 / doc.weecot.com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
catalog-detail.md 3.48 KB
一键复制 编辑 原始数据 按行查看 历史
Jade 提交于 2021-03-01 10:25 . first commit

分类详情

接口描述:

  • 分类详情(catalog/{cat_id}/detail)

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 wanganlin 2017-03-20 2017-03-25

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
Content-Type String 请求类型: application/json
token String 请求内容签名

请求参数:

参数名 是否必须 默认值 类型 说明
cat_id Number 分类id

返回示例:

正确时返回:

{
    "status": "success",
    "data": {
        "cat_id": 858,
        "cat_name": "家用电器",
        "keywords": "",
        "cat_desc": "",
        "parent_id": 0,
        "sort_order": 1,
        "template_file": "",
        "measure_unit": "台",
        "show_in_nav": 1,
        "style": "",
        "is_show": 1,
        "grade": 0,
        "filter_attr": "",
        "is_top_style": 1,
        "top_style_tpl": "2",
        "style_icon": "ele",
        "cat_icon": "images/cat_icon/14586287901326.png",
        "is_top_show": 0,
        "category_links": "",
        "category_topic": "品牌日|category.php?id=1105\r\n家电城|category.php?id=1115\r\n智能生活馆|category.php?id=1129\r\n京东净化馆|category.php?id=1130\r\n京东帮服务店|category.php?id=1145\r\n值得买精选|category.php?id=1160",
        "pinyin_keyword": "jiayongdianqi",
        "cat_alias_name": "家用电器",
        "commission_rate": 0,
        "touch_icon": "data/touch_icon/14908412695565.png",
        "cate_title": null,
        "cate_keywords": null,
        "cate_description": null,
        "touch_catads": "",
        "url": "http://domain/category.php?id=858"
    },
    "time": 1554097414
}

错误时返回:

{
    "status": 'failed',
    "errors": {
        "code": 404,
        "message": "message"
    },
    "time": 1553515084
}

返回参数说明:

参数名 类型 说明
cat_id Number 分类id
cat_name String 分类名称
keywords String 分类关键词
cat_desc String 分类描述
parent_id Number 分类父级id
sort_order Number 排序
template_file String 模板文件
measure_unit String 单位
show_in_nav Number 是否显示导航栏
style String 样式
is_show Number 是否显示
grade Number 价格区间
filter_attr String 筛选属性
is_top_style Number 是否顶级分类
top_style_tpl String 顶级分类样式
style_icon String 分类icon
cat_icon String 分类icon
is_top_show Number 是否显示在顶级分类
category_links String 分类链接
category_topic String
pinyin_keyword String 拼音
cat_alias_name String 分类别名
commission_rate String
touch_icon String h5分类icon
cate_title String 分类标题
cate_keywords String 分类关键词
cate_description String 分类描述
touch_catads String h5广告
url String 分类url

备注:

  • 更多返回错误代码请看首页的错误代码描述
其他
1
https://gitee.com/dscmall_test/doc.weecot.com.git
git@gitee.com:dscmall_test/doc.weecot.com.git
dscmall_test
doc.weecot.com
doc.weecot.com
master

搜索帮助