个人中心:获取用户的付费素材列表
<h5>简要描述</h5>
<ul>
<li>个人中心:获取用户的付费素材列表</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8500/userPayMaterialList</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">8102</td>
<td>是</td>
<td>string</td>
<td>用户ID</td>
</tr>
<tr>
<td style="text-align: left;">userSessionId</td>
<td style="text-align: left;">53197455c8b60742e76f569e2b130835</td>
<td>是</td>
<td>string</td>
<td>用户会话ID</td>
</tr>
<tr>
<td style="text-align: left;">miniCode</td>
<td style="text-align: left;">prodhysck</td>
<td>是</td>
<td>string</td>
<td>小程序标识</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
"pageNum": 1,
"pageSize": 10
}
</code></pre>
<h5>json字段说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">字段名</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">是</td>
<td>int</td>
<td>当前页数</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td>int</td>
<td>每页大小</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"data": {
"userPayMaterialList": [
{
"category": 3,
"createTime": "2022-12-01 06:16:15",
"id": 78,
"materialChargeStatus": 1,
"materialContent": "<p>“无人问津的港口总是开满鲜花”<\/p>",
"materialImgUrl": "",
"materialTypeId": 53,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialTypeLogo\/20211023\/671e0e0b-02b4-464b-8f5e-11cc0549cc6e.jpeg",
"materialTypeName": "早安",
"price": 0.9,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "884274",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20211023\/b03b46f7-37c5-4fc4-915b-12b3bc30864a.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-09-25 17:32:37",
"id": 394,
"materialChargeStatus": 1,
"materialContent": "<p>眼轴每增加1mm,近视增加300度。高度近视最大的危害就是😂<\/p><p>度数越来越高会导致视网膜脱落📢<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.89,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "1591583",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20211214\/3d01da26-7731-4b09-a944-2986230914d2.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-10-29 11:41:07",
"id": 541,
"materialChargeStatus": 1,
"materialContent": "<p>&nbsp;不要让孩子清晰的世界被“打码”,防控近视,就是要在孩子还没有近视的时候去做‼️<\/p><p>而不是等孩子已经近视了👓<\/p><p>家长才去着急才去后悔<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.94,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "1305364",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20211225\/ef5f13fa-8a77-401a-a9ad-292d3a1830ff.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-10-24 11:15:15",
"id": 542,
"materialChargeStatus": 1,
"materialContent": "<p>600度高度近视眼防不胜防<\/p><p>又一位因剧烈运动导致视网膜脱落<\/p><p>儿童青少年如果不加以防控近视增长的速度,以后这样的孩子长大了悲剧发生率会越来越高。<\/p><p>视力养护找我没问题<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.93,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "3305284",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20211225\/eaf7ec5b-bdd8-423d-9dd0-165081a8f5df.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-09-30 12:06:33",
"id": 646,
"materialChargeStatus": 1,
"materialContent": "<p>习主席说<\/p><p>要保护好自己的眼睛👀<\/p><p>青少年视力防控,从你我做起<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.96,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "876745",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20220105\/d2f19679-b42d-4039-b1a1-b5fdb41814b9.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-11-18 18:01:08",
"id": 680,
"materialChargeStatus": 1,
"materialContent": "<p>💥护眼是一每个家庭的责任\u0002͏ <\/p><p>&nbsp; &nbsp; &nbsp; 请关注孩视子力健康<\/p><p><br><\/p><p>近视不是一天成形的<\/p><p>可等是发现的时候,记切要引起够足重<\/p><p>视:<\/p><p>预防近视小从开始<\/p><p>正用确眼护眼习惯<\/p><p>多运动、少甜吃食……<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.9,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "1964804",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20220107\/dd2e50f4-d8bb-4734-b549-08b1c99e60a7.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-09-25 13:08:45",
"id": 891,
"materialChargeStatus": 1,
"materialContent": "<p>护眼知识科普📱<\/p><p>蓝光对眼睛损伤的表现<\/p><p>是一个循序渐进的慢性过程<\/p><p>&nbsp;<\/p><p>损伤初期——看东西模糊<\/p><p>不断积累——视力逐渐下降<\/p><p>损伤末期——视力丧失<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.9,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "621682",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20220120\/66db4a75-3a57-42c9-aaca-1add6dcf5100.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-11-17 11:17:16",
"id": 999,
"materialChargeStatus": 1,
"materialContent": "<p>美国停-止做近视眼-激-光手术<br><\/p><p>日本停-止做近视眼-激-光手术<\/p><p>台湾停-止做近视眼-激-光手术<\/p><p>韩国停-止做近视眼-激-光手术<\/p><p>50%的人出现了后-遗-症<\/p><p>100%的人出现了眼-干-症❗❗❗<\/p><p><br><\/p><p>您还打算去做手术吗?<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.97,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "1414348",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20220126\/7bbf05c8-7d8e-4b36-9f26-cb0d33f4bc70.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-10-23 06:23:52",
"id": 1000,
"materialChargeStatus": 1,
"materialContent": "<p>别让“近视”挡住了孩子的未-来!!<\/p><p>我们的“视-界”不要马赛克<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.89,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 200,
"videoSize": "1321061",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialVideo\/20220126\/a075ca9b-e2c5-4283-ac9b-5a8a97a2613a.mp4",
"videoWidth": 200
},
{
"category": 2,
"createTime": "2022-10-11 06:25:33",
"id": 1217,
"materialChargeStatus": 1,
"materialContent": "<p>为什么从事护眼事业?<\/p><p>家长不急,国家急!<\/p><p><br><\/p><p>青少年视力问题不能再拖下去了,<\/p><p>一定要解决‼&nbsp;<\/p><p><br><\/p><p>90%以上的大学生,都出现视力不良‼️&nbsp;<\/p><p>严重影响到国家的安全战略‼<\/p>",
"materialImgUrl": "",
"materialTypeId": 63,
"materialTypeName": "护眼知识",
"price": 0.96,
"resourceType": 2,
"userPayStatus": 1,
"videoFormat": ".mp4",
"videoHeight": 960,
"videoSize": "1278727",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/video\/20220303\/da5743f4-bbce-4c34-90f2-2799f1f9cecf.mp4",
"videoWidth": 544
}
],
"avatarUrl": "https:\/\/thirdwx.qlogo.cn\/mmopen\/vi_32\/8V9QnQhUZUQOwYLUnujzBBD3LicaIRHdiaggWBWssicC9DPRGwdjkBzibFLiaOZSkTwr54sc7GxJVUjaex3fRm5wbZw\/132",
"pageResult": {
"currentPage": 1,
"pageSize": 10,
"totalPage": 8,
"totalRecord": 71
}
},
"head": {
"code": 200,
"msg": "成功"
}
}
</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">object</td>
<td>数据</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList</td>
<td style="text-align: left;">array</td>
<td>用户的付费素材列表</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.category</td>
<td style="text-align: left;">string</td>
<td>类型:1-品牌 2-行业 3-分类</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.createTime</td>
<td style="text-align: left;">string</td>
<td>付费时间</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.id</td>
<td style="text-align: left;">string</td>
<td>素材 ID</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialChargeStatus</td>
<td style="text-align: left;">string</td>
<td>素材收费状态 0-免费 1-收费</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialContent</td>
<td style="text-align: left;">string</td>
<td>素材内容</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialImgUrl</td>
<td style="text-align: left;">string</td>
<td>素材图片</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialTypeId</td>
<td style="text-align: left;">string</td>
<td>行业或分类ID</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialTypeLogo</td>
<td style="text-align: left;">string</td>
<td>Logo地址</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.materialTypeName</td>
<td style="text-align: left;">string</td>
<td>素材类型名称</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.price</td>
<td style="text-align: left;">string</td>
<td>素材价格(单位:元)</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.resourceType</td>
<td style="text-align: left;">string</td>
<td>资源类型 (1:文章,2:视频,3:素材)</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.userPayStatus</td>
<td style="text-align: left;">string</td>
<td>用户付费状态<br/>0-未支付<br/>1-已支付</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.videoFormat</td>
<td style="text-align: left;">string</td>
<td>视频存储格式</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.videoHeight</td>
<td style="text-align: left;">string</td>
<td>视频高度</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.videoSize</td>
<td style="text-align: left;">string</td>
<td>视频存储大小</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.videoUrl</td>
<td style="text-align: left;">string</td>
<td>视频URL</td>
</tr>
<tr>
<td style="text-align: left;">userPayMaterialList.videoWidth</td>
<td style="text-align: left;">string</td>
<td>视频宽度</td>
</tr>
<tr>
<td style="text-align: left;">pageResult</td>
<td style="text-align: left;">object</td>
<td>页面信息</td>
</tr>
<tr>
<td style="text-align: left;">pageResult.currentPage</td>
<td style="text-align: left;">string</td>
<td>当前页数</td>
</tr>
<tr>
<td style="text-align: left;">pageResult.pageSize</td>
<td style="text-align: left;">string</td>
<td>每页大小</td>
</tr>
<tr>
<td style="text-align: left;">pageResult.totalPage</td>
<td style="text-align: left;">string</td>
<td>总页数</td>
</tr>
<tr>
<td style="text-align: left;">pageResult.totalRecord</td>
<td style="text-align: left;">string</td>
<td>总记录数</td>
</tr>
<tr>
<td style="text-align: left;">avatarUrl</td>
<td style="text-align: left;">string</td>
<td>用户头像</td>
</tr>
<tr>
<td style="text-align: left;">head</td>
<td style="text-align: left;">object</td>
<td>消息头</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>返回码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>消息文本</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<p>返回码 code 说明:
110:用户未登录
200:正常
400:客户端异常
500:服务端异常</p>