1.获取所有分类

获取所有分类

  • URL: /open/resource/typeList
  • 命令: HTTP GET/POST
  • Request 参数格式 无

  • Response格式

  • Request 参数格式
参数名称 参数类型 参数说明 必传
type int 0所有1只获取一级分类(父分类):默认(0)
参数名称 参数类型 参数说明
status int 状态码,0表示成功
msg String 描述信息
list Object[] 分类列表
  • 分类列表对象
参数名称 参数类型 参数说明
typeId long 分类id
fatherId long 表示该分类的父分类id,0为一级父分类
name String 分类名称
coverList Object[] 分类的cover信息
  • 分类的cover对象
参数名称 参数类型 参数说明
coverGroup int cover组ID(1、默认,2、新的,3、车载TV,4、手表)
coverUrl String URL
height int 尺寸高
width int 尺寸宽
  • 返回示例
{
  result: {
      status: 0,
      msg: "",
      list: [
        {
            fatherId: 0,
            name: "历史",
            typeId: 123,
            coverList: [
                {
                    coverGroup: 1,
                    coverUrl: "http:XXXXX_108x108.png",
                    high: "108",
                    width: "108"
                },
                {
                    coverGroup: 2,
                    coverUrl: "http://XXX_48x48.png",
                    high: "48",
                    width: "48"
                }
            ],
        }
      ]
     }
}