获取分类导航数据

接口描述:

  • 获取分类导航数据。

请求 URL:

  • http|https://host/api/v1/article_cat/method/get.article.cat.navi/

请求方式:

  • GET
  • POST

是否授权:

业务参数:

参数名 类型 是否必须 范围值 默认值 示例值 描述
article_cat_id integer egt:0 1 文章分类编号
is_layer integer in:0,1 1 1 是否返回本级分类 0=否 1=是

响应参数:

参数名 类型 是否返回 示例值 描述
status integer 200 状态码
message string success 消息信息
data array [] 返回数组
data 类型 是否返回 示例值 描述
article_cat_id integer 10 文章分类编号
parent_id integer 1 文章分类上级编号
cat_name string 最新活动 文章分类名称

响应示例:

  1. {
  2. "status": 200,
  3. "message": "success",
  4. "data": [
  5. {
  6. "article_cat_id": 1,
  7. "parent_id": 0,
  8. "cat_name": "商城公告"
  9. },
  10. {
  11. "article_cat_id": 10,
  12. "parent_id": 1,
  13. "cat_name": "最新活动"
  14. }
  15. ]
  16. }

备注:

  1. 该接口不关心is_navi字段的值,一般做为点击某个链接后需要的面包屑数据。