个人中心:获取用户的下载列表

简要描述
  • 个人中心:获取用户的下载列表
请求URL
  • http://localhost:8500/userDownloadList
请求方式
  • post
Header
header 示例值 必选 类型 说明
userId 1 string 用户ID
userSessionId 1041f205711ed488137cc18638d55371 string 用户会话ID
miniCode xiaoxin string 小程序标识
请求参数示例
{
  "pageNum": 1,
  "pageSize": 3
}
请求json字段说明
字段名 必选 类型 说明
pageNum int 当前页数
pageSize int 每页大小
成功返回示例
{
  "data": {
    "userDownloadList": [
      {
        "createTime": "2021-10-14 14:21:04",
        "id": 2,
        "materialContent": "<p>1</p><p>25</p><p>386</p><p>2375</p>",
        "materialImgUrl": "http://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20210812/f9f4a670-7a61-46bd-805f-da5de8cc9b26.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "http://zktfile.wxslzf.com/ps/20210811/image2078112.jpg",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "createTime": "2021-10-14 14:20:22",
        "id": 1,
        "materialContent": "<p>1</p><p>2</p><p>3</p><p>4</p>",
        "materialImgUrl": "http://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20210812/d937a820-e60a-420c-bc93-5920f6e0e134.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "http://zktfile.wxslzf.com/ps/20210811/image2078112.jpg",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      },
      {
        "createTime": "2021-10-14 14:18:10",
        "id": 1,
        "materialContent": "<p>1</p><p>2</p><p>3</p><p>4</p>",
        "materialImgUrl": "http://zktstaticstate.oss-cn-shenzhen.aliyuncs.com/material/20210812/d937a820-e60a-420c-bc93-5920f6e0e134.jpg",
        "materialTypeId": 1,
        "materialTypeLogo": "http://zktfile.wxslzf.com/ps/20210811/image2078112.jpg",
        "materialTypeName": "经典音乐",
        "resourceType": 1,
        "videoFormat": "",
        "videoHeight": 0,
        "videoSize": "0",
        "videoUrl": "",
        "videoWidth": 0
      }
    ],
    "pageResult": {
      "currentPage": 1,
      "pageSize": 3,
      "totalPage": 2,
      "totalRecord": 5
    }
  },
  "head": {
    "code": 200,
    "msg": "成功"
  }
}
成功返回示例的参数说明
参数名 类型 说明
data object 数据
userDownloadList array 用户下载素材列表
userDownloadList.createTime string 下载时间
userDownloadList.id string 素材ID
userDownloadList.materialContent string 素材内容
userDownloadList.materialImgUrl string 素材图片
userDownloadList.materialTypeId string 素材类型ID
userDownloadList.materialTypeLogo string 分类Logo地址
userDownloadList.materialTypeName string 素材类型名称
userDownloadList.resourceType string 资源类型 (1:文章,2:视频,3:素材)
userDownloadList.videoFormat string 视频存储格式
userDownloadList.videoHeight string 视频高度
userDownloadList.videoSize string 视频存储大小
userDownloadList.videoUrl string 视频URL
userDownloadList.videoWidth string 视频宽度
pageResult object 页面信息
pageResult.currentPage string 当前页数
pageResult.pageSize string 每页大小
pageResult.totalPage string 总页数
pageResult.totalRecord string 总记录数
head object 消息头
code string 返回码
msg string 消息文本
备注

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