根据素材类型获取文章(按时间倒序)

简要描述
  • 根据素材类型获取文章(按时间倒序)
请求URL
  • http://localhost:8500/getArticleByMaterialTypeId
请求方式
  • post
Header
header 必选 类型 说明
userId string 用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
userSessionId string 用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)
miniCode string 小程序标识
请求参数示例
{
  "materialTypeId": 25,
  "pageNum": 1,
  "pageSize": 10
}
json字段说明
字段名 必选 类型 说明
materialTypeId int 素材类型ID
pageNum int 当前页数
pageSize int 每页大小
返回示例
{
  "data": {
    "commonArticleList": [
      {
        "id": 32,
        "materialContent": "<p>1、“大爷,我现场采访您一下,您这样晨跑锻炼坚持几年了?”\n</p><p>“姑娘别挡道!我尿急! ”\n</p><p>2、“请问你是做什么工作的?”\n</p><p>“哦。我的工作是杀僵尸。”\n</p><p>“嗯?可是这个世界上没有僵尸啊! ”\n</p><p>“你以为它们是怎么没有的?”\n</p><p>3、中午去买菜,感觉都不太新鲜了。\n</p><p>老板:早上刚到的,都新鲜的。\n</p><p>我:这菜看着就蔫蔫的啊?!\n</p><p>老板:从早上到现在,它以为没人要自己了,这不垂头丧气么!\n</p><p>我。。。\n</p><p>4、我问他:你今天怎么没上班儿啊?\n</p><p>......</p><p>\n</p><p>\n</p><p>\n</p><p>\n</p>右哼哼哈欠",
        "materialImgUrl": "",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 3,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 28,
        "materialContent": "<p>这个世界对“身材歧视”\r</p><p>远比你想象中的严重\r</p><p>胖和瘦不一定是反义词\r</p><p>但胖和丑往往是同义词!</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/43c6778d-bde8-415a-bdd1-a53232ad525c.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 27,
        "materialContent": "<p>减肥一定要彻底,不要说减几斤就满意了❗\r</p><p>1、初期-减掉的是体内垃圾\r</p><p>2、中期-剪掉的是皮下脂肪\r</p><p>3、后期-剪掉的是内脏脂肪\r</p><p>减到身体各项指标正常才算完成👌</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/759fd367-03cb-4403-a715-ccd361b76460.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 26,
        "materialContent": "<p>现代四大酷刑😱\r</p><p>你最受不了哪个?</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/82666e0d-456b-425f-911c-3432904e5104.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 22,
        "materialContent": "<p>这世上储存了太多的美好\r</p><p>例如S码的裙子 和迷人的线条\r</p><p>胖也没罪🤷🏼‍♀️\r</p><p>但瘦了以后真的会更自信快乐</p><p>\r</p><p>\r</p><p>\r</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/b1a916b6-5ce8-4dd9-953c-82063d1d5675.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 21,
        "materialContent": "<p>当你真的想要减肥或者想要好身材\r</p><p>真正想要达到某种目的的时候\r</p><p>就没有那么多借口和做不到了</p><p>\r</p><p>\r</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/abc9baac-39ee-488a-953d-00aa6f27d696.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 20,
        "materialContent": "<p>▫️想瘦下来就去减肥\r</p><p>▫️肥肉不会自己飞走\r</p><p>▫️不把时间花费在实现\r</p><p>▫️而用于幻想\r</p><p>▫️等同于坐以待毙</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/aa3ab5f2-be6f-4268-bb47-d870276a446b.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 19,
        "materialContent": "<p>年前减肥的好处🙃\r</p><p>就是年后棉袄一脱别人都胖了\r</p><p>而你想穿啥穿啥有句话说的好\r</p><p>寒冬腊月不减肥春暖花开你最肥</p><p>\r</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/8046cc4a-38af-4bd4-b211-1a2da40fe268.png",
        "materialTypeId": 25,
        "materialTypeLogo": "https://thirdwx.qlogo.cn/mmopen/vi_32/nENJt6w4mzs1NDGpN5GhDdtiayMynbLsEAYsrvBrAELFSNG6XSOwnkyx0jnXxfPKE2kdsKH8Vjyiat9mT27PL7iaQ/132",
        "materialTypeName": "+荣",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "id": 18,
        "materialContent": "<p>没有一种“漂亮精致 ”是轻而易举的 \r</p><p>你看到的每一个女生 💃 \r</p><p>清晰的锁骨 细高跟鞋和漂亮的脚踝曲线 \r</p><p>都是你看不到的 背后默默自我管理</p><p>\r</p><p>\r</p><p>\r</p>",
        "materialImgUrl": "https://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20211013/b0124315-17ae-445a-b0ba-a7ea6a103744.png",
        "materialTypeId": 25,
        "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": 1,
      "totalRecord": 9
    }
  },
  "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 视频宽度
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:服务端异常