首页:频道列表

简要描述
  • 首页:频道列表
请求URL
  • http://localhost:8500/homePageMaterialTypeList
请求方式
  • get
Header
header 必选 类型 说明
userId string 用户ID(用户没登录时,不用传该参数。用户登录后,需要传该参数)
userSessionId string 用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode string 小程序标识
返回示例
{
  "data": {
    "materialTypeList": [
      {
        "id": 5,
        "materialTypeName": "教育培训",
        "subMaterialTypeList": [
          {
            "id": 6,
            "materialTypeName": "学历提升"
          },
          {
            "id": 7,
            "materialTypeName": "培优"
          },
          {
            "id": 8,
            "materialTypeName": "课程辅导"
          },
          {
            "id": 9,
            "materialTypeName": "亲子教育"
          },
          {
            "id": 10,
            "materialTypeName": "考研"
          }
        ]
      },
      {
        "id": 51,
        "materialTypeName": "晚安",
        "subMaterialTypeList": []
      },
      {
        "id": 1,
        "materialTypeName": "经典音乐",
        "subMaterialTypeList": []
      },
      {
        "id": 3,
        "materialTypeName": "房产",
        "subMaterialTypeList": []
      },
      {
        "id": 25,
        "materialTypeName": "减肥",
        "subMaterialTypeList": []
      },
      {
        "id": 53,
        "materialTypeName": "早安",
        "subMaterialTypeList": []
      },
      {
        "id": 4,
        "materialTypeName": "干货",
        "subMaterialTypeList": []
      },
      {
        "id": 11,
        "materialTypeName": "保险",
        "subMaterialTypeList": []
      },
      {
        "id": 13,
        "materialTypeName": "健康养生",
        "subMaterialTypeList": []
      },
      {
        "id": 14,
        "materialTypeName": "生活百科",
        "subMaterialTypeList": []
      },
      {
        "id": 15,
        "materialTypeName": "头像",
        "subMaterialTypeList": [
          {
            "id": 16,
            "materialTypeName": "女生"
          },
          {
            "id": 17,
            "materialTypeName": "男生"
          },
          {
            "id": 18,
            "materialTypeName": "情侣"
          },
          {
            "id": 19,
            "materialTypeName": "卡通"
          },
          {
            "id": 20,
            "materialTypeName": "唯美"
          },
          {
            "id": 21,
            "materialTypeName": "动物"
          },
          {
            "id": 22,
            "materialTypeName": "带字"
          },
          {
            "id": 23,
            "materialTypeName": "搞怪"
          }
        ]
      },
      {
        "id": 24,
        "materialTypeName": "母婴",
        "subMaterialTypeList": []
      }
    ]
  },
  "head": {
    "code": 200,
    "msg": "成功"
  }
}
返回参数说明
参数名 类型 说明
data object 数据
materialTypeList array 频道列表
materialTypeList.id string 频道ID
materialTypeList.materialTypeName string 频道名称
materialTypeList.subMaterialTypeList array 二级频道列表
materialTypeList.subMaterialTypeList.id string 二级频道ID
materialTypeList.subMaterialTypeList.materialTypeName string 二级频道名称
head object 消息头
code string 返回码
msg string 消息文本
备注

返回码 code 说明:
107:用户不存在
110:用户未登录
200:正常
400:客户端异常
500:服务端异常