获取推荐文章(按品牌、行业和分类)
<h5>简要描述</h5>
<ul>
<li>获取推荐文章(按品牌、行业和分类)</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:8500/getRecommendArticleByBrandAndType</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>Header</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">header</th>
<th style="text-align: left;">必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">否</td>
<td>string</td>
<td>用户ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)</td>
</tr>
<tr>
<td style="text-align: left;">userSessionId</td>
<td style="text-align: left;">否</td>
<td>string</td>
<td>用户会话ID用户会话ID(用户没登录时,不用传改参数。用户登录后,需要传该参数)</td>
</tr>
<tr>
<td style="text-align: left;">miniCode</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>小程序标识</td>
</tr>
</tbody>
</table>
<h5>请求参数示例</h5>
<pre><code>{
"pageNum": 1,
"pageSize": 10,
"offset1": 0,
"offset2": 0
}
</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>
<tr>
<td style="text-align: left;">offset1</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>健康养生的取数偏移量<br/>第一次传 0<br/>之后用该接口返回值 offset1 传入</td>
</tr>
<tr>
<td style="text-align: left;">offset2</td>
<td style="text-align: left;">是</td>
<td>string</td>
<td>营销的取数偏移量<br/>第一次传 0<br/>之后用该接口返回值 offset2 传入</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"data": {
"recommendArticleList": [
{
"category": 3,
"id": 4384,
"materialChargeStatus": 0,
"materialContent": "<p>最近很火的词叫“圈层突破”&nbsp;<\/p><p>如果想获得不一样的人生&nbsp;<\/p><p>必须打破你原有圈子 并不断向上提升自己<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/343b5cbd-bbee-44d2-ad86-4c0aa3d55072.jpg",
"materialTypeId": 65,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "正能量",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 2,
"id": 4240,
"materialChargeStatus": 0,
"materialContent": "<p>【最简单的补气法】\r<\/p><p>清晨拍手,拍手很简单,效果却不简单。\r<\/p><p>拍手是一种至刚至阳的养生方法,\r<\/p><p>其主要功能就是补气。\r<\/p><p>手是阳气的大本营,\r<\/p><p>脚是阴气的大本营。\r<\/p><p>手穴共有39个,\r<\/p><p>拍手可以震动阳气,\r<\/p><p>推动全身气的运行。\r<\/p><p><br><\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221102\/0a03c06b-59a4-45fe-89fb-b8a3253de62a.jpeg",
"materialTypeId": 13,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "健康养生",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 2,
"id": 4284,
"materialChargeStatus": 0,
"materialContent": "<p>再比较,真没了\r<\/p><p>再纠结,真空了\r<\/p><p>再犹豫,真缺了\r<\/p><p>当机立断,便宜稳占\r<\/p><p>手疾眼快,福利在怀\r<\/p><p>机会难得,分秒必争\r<\/p><p>时不我待,抢占趁早\r<\/p><p>双十一夯战进行时<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221109\/af3df7bf-394a-4e00-980c-9e5994cef9e9.png",
"materialTypeId": 50,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "营销",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 3,
"id": 4016,
"materialChargeStatus": 0,
"materialContent": "<p>□‣‣<\/p><p>&nbsp; &nbsp; &nbsp; &nbsp;晚上好✰<\/p><p><br><\/p><p>世界是平衡的,<\/p><p>每个人都要通过自己的努力<\/p><p>去决定生活的样子。<\/p><p>没人扶你的时候,<\/p><p>自己要站直<\/p><p>路还长,背影要美!<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221020\/88164fa7-839d-454f-b2df-a4089bef34d5.jpeg",
"materialTypeId": 51,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "晚安",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 3,
"id": 4385,
"materialChargeStatus": 0,
"materialContent": "<p>心一简单,人就快乐忘记年龄,<\/p><p>讨好自己用自己喜欢的方式生活<\/p><p>简单点,糊涂点,一定会快乐<\/p><p>新的一天早安鸭🦆<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/83f6931a-738b-4b5b-aa63-994b17d54f29.jpg",
"materialTypeId": 53,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "早安",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 1,
"id": 4383,
"materialBrandId": 15509,
"materialChargeStatus": 0,
"materialContent": "<p>在吗?<\/p><p>这个毒屏的时代,我们的眼睛非常值得重视,有眼干 眼涩 眼疲劳,迎风流泪,畏光、近视,散光<\/p><p>请回复666<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/8d79060e-073c-4f10-90a8-911db7bba725.jpg",
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "护眼学堂",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 1,
"id": 4379,
"materialBrandId": 15509,
"materialChargeStatus": 1,
"materialContent": "<p>百科-护眼篇<br><\/p><p>“如果孩子近视了,总有笔钱要花”<\/p><p>要么花在近视防控上<\/p><p>要么花在换眼镜上<\/p><p>要么花在近视手术上<\/p><p>您是愿提前给孩子防控?<\/p><p>是还等孩子高度近视了做个手术,把风险留给孩子?<\/p><p><br><\/p>",
"materialImgUrl": "",
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "护眼学堂",
"price": 0.4,
"resourceType": 2,
"userPayStatus": 0,
"videoFormat": ".mp4",
"videoHeight": 480,
"videoSize": "1120743",
"videoUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/video\/20221114\/cf785cc4-f95f-4b16-829b-b91f419fe102.mp4",
"videoWidth": 682
},
{
"category": 1,
"id": 4381,
"materialBrandId": 15509,
"materialChargeStatus": 1,
"materialContent": "<p>眼睛是心灵的窗户<\/p><p>日常生活中要怎样保护他呢?<\/p><p>护眼小课堂告诉你👇<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/863623d5-5f62-4d1b-97ec-ddb1cfc76403.jpg,https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/d20aefba-7c25-49bc-82a1-079275d568d2.jpg,https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221114\/41d46722-18a6-403b-811f-daa652764e66.jpg",
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "护眼学堂",
"price": 0.74,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 2,
"id": 4283,
"materialChargeStatus": 0,
"materialContent": "<p>恭喜每个会省钱的宝宝\r<\/p><p>属于你们的嗨购节到啦\r<\/p><p>双11福利最强音\r<\/p><p>超强钜惠来袭,冲量大放价\r<\/p><p>下单囤货,一省到底<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221109\/2108a12f-2368-4e50-9c1d-856d25f3f24c.png",
"materialTypeId": 50,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "营销",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
},
{
"category": 2,
"id": 4239,
"materialChargeStatus": 0,
"materialContent": "<p>秋冬养生—【板栗炖鸡汤】\r<\/p><p>食材:鸡、板栗、红枣、葱、姜\r<\/p><p>功效:能厚胃肠、补肾阳,健脾养胃、强筋壮骨、消肿<\/p>",
"materialImgUrl": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/miniProgram\/materialImage\/20221102\/a27b3bde-c790-4f79-a0fa-ede71b1c4d91.jpeg",
"materialTypeId": 13,
"materialTypeLogo": "https:\/\/zktuistatic.oss-cn-shenzhen.aliyuncs.com\/headImgs\/20220614\/1f97f00b-6e85-4130-bf73-4764d01f22b0.jpg",
"materialTypeName": "健康养生",
"price": 0,
"resourceType": 1,
"userPayStatus": 0,
"videoFormat": "",
"videoHeight": 0,
"videoSize": "0",
"videoUrl": "",
"videoWidth": 0
}
],
"offset2": 2,
"offset1": 2,
"pageResult": {
"currentPage": 1,
"pageSize": 10,
"totalPage": 174,
"totalRecord": 1737
},
"vipStatus": 0
},
"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;">recommendArticleList</td>
<td style="text-align: left;">array</td>
<td>数据列表</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.category</td>
<td style="text-align: left;">string</td>
<td>类型:1-品牌 2-行业 3-分类</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.id</td>
<td style="text-align: left;">string</td>
<td>素材ID</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialChargeStatus</td>
<td style="text-align: left;">string</td>
<td>素材收费状态 0-免费 1-收费</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialContent</td>
<td style="text-align: left;">string</td>
<td>素材内容</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialImgUrl</td>
<td style="text-align: left;">string</td>
<td>素材图片</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialTypeName</td>
<td style="text-align: left;">string</td>
<td>素材类型名称</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialBrandId</td>
<td style="text-align: left;">string</td>
<td>品牌ID</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialTypeId</td>
<td style="text-align: left;">string</td>
<td>素材类型ID</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.materialTypeLogo</td>
<td style="text-align: left;">string</td>
<td>分类Logo地址/用户头像Url</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.price</td>
<td style="text-align: left;">string</td>
<td>素材价格(单位:元)</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.resourceType</td>
<td style="text-align: left;">string</td>
<td>资源类型 (1:文章,2:视频,3:素材)</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.userPayStatus</td>
<td style="text-align: left;">string</td>
<td>用户付费状态 0-未支付 1-已支付</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.videoFormat</td>
<td style="text-align: left;">string</td>
<td>视频存储格式</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.videoHeight</td>
<td style="text-align: left;">string</td>
<td>视频高度</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.videoSize</td>
<td style="text-align: left;">string</td>
<td>视频存储大小</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.videoUrl</td>
<td style="text-align: left;">string</td>
<td>视频URL</td>
</tr>
<tr>
<td style="text-align: left;">recommendArticleList.videoWidth</td>
<td style="text-align: left;">string</td>
<td>视频宽度</td>
</tr>
<tr>
<td style="text-align: left;">offset2</td>
<td style="text-align: left;">string</td>
<td>营销的取数偏移量</td>
</tr>
<tr>
<td style="text-align: left;">offset1</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;">vipStatus</td>
<td style="text-align: left;">string</td>
<td>用户会员状态:0-非会员 1-会员</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 说明:
107:用户不存在
110:用户未登录
200:正常
400:客户端异常
500:服务端异常</p>