====== 分类接口 ====== ------ ===== 1、获取商品类别 ===== === 接口名称 === categorys/list === 请求方式 === GET === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | pid | int | 否 | 默认为0 | === 返回值 === ^ 名称 ^ 类型 ^ 说明 ^ | id | int | 分类id | | name | string | 名称 | | parent_id | int | 父类id | | icon | string | 图标 | | cover | string | 封面图片 | | son | array | 子类(有子类返回,没有子类不返回)''Array\\ (\\ [id] => 2\\ [parent_id] => 1\\ [name] => 连衣裙\\ [icon] => http://pic.8dage.net/data/uploadfile/images/4/20160317/8bf03ba7bf.jpg\\ [cover] => http://pic.8dage.net/data/uploadfile/images/4/20160317/8bf03ba7bf.jpg\\ )'' | ===== 2、根据关键字获取类别 ===== === 接口名称 === categorys/by-keyword === 请求方式 === GET === 请求参数 === ^ 参数名称 ^ 参数类型 ^ 是否必填 ^ 说明 ^ | keyword| string| 是 | 关键字 | === 返回值 === ^ 名称 ^ 类型 ^ 说明 ^ | name | array| 分类名称 |