随机获取 10 篇推荐文章

简要描述
  • 随机获取 10 篇推荐文章(点击右侧[换]按钮后,随机获取文章)
请求URL
  • http://localhost:8500/getRecommendArticle
请求方式
  • get
Header
header 必选 类型 说明
userId string 用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
userSessionId string 用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode string 小程序标识
返回示例
{
  "data": {
    "recommendArticleList": [
      {
        "id": 63,
        "materialContent": "<p>寒来暑往,春夏秋冬,撒下心血点点;风霜雪月,春华秋实,播下新蕊朵朵;教师节这个特殊日子在即,祝天下老师工作称心如意,日子诗情画意!</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211016/9deb8f50-8e3d-490f-875d-43f23b44c927.jpg",
        "materialTypeId": 9,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "教育培训",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 124,
        "materialContent": "<p>心存阳光必有希望</p><p>赞美太阳</p><p>ᴳᵒᵒᵈ ᵐᵒʳⁿⁱⁿᵍ 🔅 早安~</p><p>\r</p><p>\r</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211102/e6b4feb6-79ad-4f80-90c8-d6bd37cf57fb.png",
        "materialTypeId": 53,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "早安",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 66,
        "materialContent": "<p>新学期新目标:坐等寒假。</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211016/9e91bdbe-9176-424f-9a79-e42ab05764f3.jpg",
        "materialTypeId": 9,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "教育培训",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 136,
        "materialContent": "<p>测试2</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/a720b6ce-5332-4fe8-bfb7-48106a9e5dd0.png",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 146,
        "materialContent": "<p>存储</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/c79cb2bc-5ede-4a8b-8f19-49e659ece7f7.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 108,
        "materialContent": "<p>你背不下来的书,总有人能背下来,\r</p><p>你做不出来的题,总有人能做出来,\r</p><p>你打算拖延到明天的事,总有人今天就可以完成,\r</p><p>那么真的很抱歉,你想去的学校也只能别人去了,\r</p><p>你想过的人生也只能别人过了。</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211023/95e1b008-0444-4eff-b0f1-0d771d84711e.png",
        "materialTypeId": 10,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "教育培训",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 164,
        "materialContent": "<p>222</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/4faf97c4-6201-4c94-84ca-c652fb2fbf74.png",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 81,
        "materialContent": "<p>停下脚步用心观察生活\r</p><p>生活就会涌来无限美好\r</p><p>ᴳᵒᵒᵈ ᵐᵒʳⁿⁱⁿᵍ 🔅 早安~</p><p>\r</p><p>\r</p>",
        "materialImgUrl": "",
        "materialTypeId": 53,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "早安",
        "resourceType": 2,
        "videoFormat": ".mp4",
        "videoHeight": 200,
        "videoSize": "1468380",
        "videoUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialVideo/20211023/574b6171-411b-46e0-aa5f-b6726041561e.mp4",
        "videoWidth": 200
      },
      {
        "id": 65,
        "materialContent": "<p>阳光因您而灿烂,心灵因您而纯洁,世界因而您而美丽。老师,在教师节,我用真心祝福来表达对您的谢意,祝您教师节快乐!</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211016/30171eef-f382-41ff-a08e-a62a10e6de1d.jpg",
        "materialTypeId": 9,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "教育培训",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 130,
        "materialContent": "<p>测试2</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211102/f88ffe62-fa44-4f2f-ae55-aefa1a2e20a2.jpg",
        "materialTypeId": 3,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "房产",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      }
    ]
  },
  "head": {
    "code": 200,
    "msg": "成功"
  }
}
返回参数说明
参数名 类型 说明
data object 数据
recommendArticleList array 数据列表
recommendArticleList.id string 素材ID
recommendArticleList.materialContent string 素材内容
recommendArticleList.materialImgUrl string 素材图片
recommendArticleList.materialTypeId string 素材类型ID
recommendArticleList.materialTypeLogo string 分类Logo地址/用户头像Url
recommendArticleList.materialTypeName string 素材类型名称
recommendArticleList.resourceType string 资源类型 (1:文章,2:视频,3:素材)
recommendArticleList.videoFormat string 视频存储格式
recommendArticleList.videoHeight string 视频高度
recommendArticleList.videoSize string 视频存储大小
recommendArticleList.videoUrl string 视频URL
recommendArticleList.videoWidth string 视频宽度
head object 消息头
code string 返回码
msg string 消息文本
备注

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