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

简要描述
  • 获取推荐文章(按时间倒序)
请求URL
  • http://localhost:8500/getRecommendArticleByTime
请求方式
  • post
Header
header 示例值 必选 类型 说明
userId 2 string 用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
userSessionId 770924d8b66441a45e183ef364907c72 string 用户会话ID用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode xiaoxin string 小程序标识
请求参数示例
{
  "pageNum": 1,
  "pageSize": 10
}
请求json字段说明
字段名 必选 类型 说明
pageNum int 当前页数
pageSize int 每页大小
成功返回示例
{
  "data": {
    "recommendArticleList": [
      {
        "id": 167,
        "materialContent": "是是是",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211111/5849b4c9-09a6-4ab1-bb8d-43fd77b66613.png",
        "materialTypeId": 1,
        "materialBrandId": "",
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "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://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 142,
        "materialContent": "<p>测试1</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/b90a2375-cd92-43cd-9b46-2fc2c26f56b2.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 149,
        "materialContent": "<p>是是是</p>",
        "materialImgUrl": "",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "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": 144,
        "materialContent": "<p>测试3</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/71fc7eec-03b6-49d9-9fa2-30f16d2bfdf1.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "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://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 133,
        "materialContent": "<p>测试2</p>",
        "materialImgUrl": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/materialImage/20211103/2d1f1dff-75c5-423a-8f28-445961102037.png",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "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://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 23,
        "materialContent": "<p>前奏响起,满满的回忆</p>",
        "materialImgUrl": "",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "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": 16,
        "materialContent": "<p>这风儿还在刮,乱了谁的年华</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211012/1082d031-768f-422b-b776-7c89f40a42c8.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "https://zktuistatic.oss-cn-shenzhen.aliyuncs.com/miniProgram/userAvatarImg/2021-11-25/2/7424456f-a53c-4cbe-bc60-f7d955cec2fc.png",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      }
    ],
    "pageResult": {
      "currentPage": 1,
      "pageSize": 10,
      "totalPage": 3,
      "totalRecord": 23
    }
  },
  "head": {
    "code": 200,
    "msg": "成功"
  }
}
成功返回示例的参数说明
参数名 类型 说明
data object 数据
recommendArticleList array 数据列表
recommendArticleList.id string 素材ID
recommendArticleList.materialContent string 素材内容
recommendArticleList.materialImgUrl string 素材图片
recommendArticleList.materialTypeId string 素材类型ID
recommendArticleList.materialBrandId 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:服务端异常