获取推荐文章(按时间倒序)

简要描述
  • 获取推荐文章(按时间倒序)
请求URL
  • http://localhost:8500/getRecommendArticleByTime
请求方式
  • post
Header
header 必选 类型 说明
userId string 用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
userSessionId string 用户会话ID用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode string 小程序标识
请求参数示例
{
  "pageNum": 1,
  "pageSize": 10
}
json字段说明
字段名 必选 类型 说明
pageNum int 当前页数
pageSize int 每页大小
返回示例
{
  "data": {
    "recommendArticleList": [
      {
        "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": 162,
        "materialContent": "<p>正方形</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/88d750ce-0464-47fd-ac55-eaa2c8c0111b.jpg",
        "materialTypeId": 3,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "房产",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 160,
        "materialContent": "<p>33</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/7ff8c367-711b-43e5-a4be-969b7b931cfe.jpg",
        "materialTypeId": 3,
        "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": 152,
        "materialContent": "<p>222</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/770e0b3c-910b-4e5d-a52a-4f50b3cd4060.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": 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": 149,
        "materialContent": "<p>是是是</p>",
        "materialImgUrl": "",
        "materialTypeId": 1,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "经典音乐",
        "resourceType": 2,
        "videoFormat": ".mp4",
        "videoHeight": 200,
        "videoSize": "1408808",
        "videoUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialVideo/20211103/fb2f275b-135f-4a5d-8aef-ac4ecd9d4cde.mp4",
        "videoWidth": 200
      },
      {
        "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": 147,
        "materialContent": "<p>22</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/f72f71ab-2f7c-417b-8fe5-f54ff7723d19.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
      }
    ],
    "pageResult": {
      "currentPage": 1,
      "pageSize": 10,
      "totalPage": 7,
      "totalRecord": 62
    }
  },
  "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 视频宽度
pageResult object 页面信息
pageResult.currentPage string 当前页数
pageResult.pageSize string 每页大小
pageResult.totalPage string 总页数
pageResult.totalRecord string 总记录数
head object 消息头
code string 返回码
msg string 消息文本
备注

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