根据素材类型随机获取10篇文章

简要描述
  • 根据素材类型随机获取10篇文章
请求URL
  • http://localhost:8500/getRandArticleByMaterialTypeId/{materialTypeId}
请求方式
  • get
Header
header 示例值 必选 类型 说明
userId 3 string 用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
userSessionId c9275e2429c08643b19d159a0a9f5e82 string 用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode xiaoxin string 小程序标识
请求Query参数
参数名 示例值 必选 类型 说明
materialTypeId 1 int 频道类型ID
成功返回示例
{
  "data": {
    "commonArticleList": [
      {
        "id": 150,
        "materialContent": "<p>222</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/57a0aa1d-9e3c-4997-8056-9e968fa4dddc.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": 16,
        "materialContent": "<p>这风儿还在刮,乱了谁的年华</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211012/1082d031-768f-422b-b776-7c89f40a42c8.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": 23,
        "materialContent": "<p>前奏响起,满满的回忆</p>",
        "materialImgUrl": "",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 2,
        "videoFormat": ".mp4",
        "videoHeight": 200,
        "videoSize": "4502271",
        "videoUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/video/20211013/2f64044b-e4b1-4205-a7d5-ed896147e64f.mp4",
        "videoWidth": 300
      },
      {
        "id": 123,
        "materialContent": "<p>钟声响起归家的信号</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211102/a60adb92-5443-42c5-ba96-6df3ab6b8882.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": 153,
        "materialContent": "<p>22</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/185b0063-18c2-436c-ae0c-786cdf0de4cd.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": 129,
        "materialContent": "<p>测试</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211102/17527613-fbc2-469c-a4ce-2026465b6a7d.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": 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": 140,
        "materialContent": "<p>测试</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/98d2b1a7-f001-46f9-a838-4a5e8c7f5762.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": 148,
        "materialContent": "<p>是是是</p>",
        "materialImgUrl": "",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 2,
        "videoFormat": ".mp4",
        "videoHeight": 300,
        "videoSize": "4502271",
        "videoUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialVideo/20211103/e838eeb2-58a8-4e70-b325-caee1ecc9656.mp4",
        "videoWidth": 300
      },
      {
        "id": 143,
        "materialContent": "<p>测试2</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/aebbe21d-c505-4f0a-a517-680de4db87a9.jpg",
        "materialTypeId": 1,
        "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 数据
commonArticleList array 数据列表
commonArticleList.id string 素材ID
commonArticleList.materialContent string 素材内容
commonArticleList.materialImgUrl string 素材图片
commonArticleList.materialTypeId string 素材类型ID
commonArticleList.materialTypeLogo string 分类Logo地址/用户头像Url
commonArticleList.materialTypeName string 素材类型名称/用户昵称
commonArticleList.resourceType string 资源类型 (1:文章,2:视频,3:素材)
commonArticleList.videoFormat string 视频存储格式
commonArticleList.videoHeight string 视频高度
commonArticleList.videoSize string 视频存储大小
commonArticleList.videoUrl string 视频URL
commonArticleList.videoWidth string 视频宽度
head object 消息头
code string 返回码
msg string 消息文本
备注

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