【筛选片库页】-预设标签推荐
<h5>预设标签需求</h5>
<ul>
<li>一期需求不上预设标签列表接口(二期)</li>
<li>一期需求不上预设标签筛选媒资(二期)</li>
</ul>
<h5>一期需求上线规则【筛选接口】</h5>
<ul>
<li>VIP【最新上线】筛选规则:综合排序=>最新,热门推荐(综合排序=》最热)</li>
<li>免费【最新上线】筛选规则:综合排序=>最新</li>
<li>电影【最新上线】筛选规则:综合排序=>最新,【全部电影】筛选规则:综合排序=>综合排序</li>
<li>电视剧【最新上线】筛选规则:综合排序=>最新,【全部剧集】筛选规则:综合排序=>综合排序,【爆款大剧】筛选规则:综合排序=>最热,</li>
<li>少儿【最新上线】筛选规则:综合排序=>最新,【全部动画】筛选规则:综合排序=>综合排序</li>
<li>综艺【最新上线】筛选规则:综合排序=>最新,【全部综艺】筛选规则:综合排序=>综合排序</li>
<li>动漫【新番上线】筛选规则:综合排序=>最新,【全部动漫】筛选规则:综合排序=>综合排序</li>
<li>纪录【全部纪录】筛选规则:综合排序=>综合排序</li>
<li>4K【最新上线】筛选规则:综合排序=>最新</li>
</ul>
<h5>简要描述</h5>
<ul>
<li>module=20</li>
<li>筛选及预设标签栏目中呈现的结果(右侧蓝色部分),均通过智能推荐根据用户行为排序,支持前两排推荐位均可人工干预,人工编排内容在智能推荐结果中去重,5分钟刷新一次;</li>
<li>读取海报1图片;</li>
<li>筛选条件(上方橘色区域)结果通过综合排序、最新、最热、评分四个智能推荐接口排序;</li>
<li>只获取高清内容;</li>
<li>一级栏目列表,免费栏目智能推荐免费内容,VIP栏目推荐收费内容,其余为混排</li>
</ul>
<h3>头信息约定</h3>
<table>
<thead>
<tr>
<th style="text-align: left;">key值</th>
<th style="text-align: left;">value值</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;"><code>Content-Type</code></td>
<td style="text-align: left;"><code>application/json;charset=UTF-8</code></td>
</tr>
</tbody>
</table>
<h5>请求URL</h5>
<ul>
<li><code>/api/recommend/</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>post</li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
<th>值</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td style="text-align: left;">页码</td>
<td>从1开始</td>
</tr>
<tr>
<td style="text-align: left;">categoryCode</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;"><code>二级栏目code</code></td>
<td>二级栏目code</td>
</tr>
</tbody>
</table>
<h5>参数示例</h5>
<pre><code>{
&quot;userId&quot;: &quot;user_id_7788&quot;,
&quot;huoshanSpm&quot;: &quot;A$##$B$##$C&quot;,
&quot;pagename&quot;: &quot;F_G&quot;,
&quot;module&quot;: 20,
&quot;size&quot;: 10,
&quot;posterType&quot;: &quot;poster&quot;,
&quot;pageNum&quot;: 1,
&quot;categoryCode&quot;: &quot;xxx&quot;, # 二级栏目code
}
</code></pre>
<h5>预设标签json字段</h5>
<p>{
"rules": [{ #一个预设标签 可能存在多个rule
"ruleType": 2, #规则类型:满足以下全部条件=1,满足以下任意条件=2
"ruleName": "规则名称1", #规则名称
"details": [{ #编排规则:name:条件名称;condition:条件类型(equal:等于;notequal:不等于;contain:包含;notcontain:不包含;bigger:大于;smaller:小于;);value:条件值
"name": "type", #内容类型 ElementType
"condition": "equal",
"value": "mediakit"
}, {
"name": "area", #发行地区 OriginalCountry 大陆
"condition": "notcontain",
"value": "澳大利亚"
}, {
"name": "vodDub", #语言 Language 国语
"condition": "contain",
"value": "普通话"
}, {
"name": "typeCode", #节目类型 TypeID 001
"condition": "notequal",
"value": "001"
}, {
"name": "bastags", #基础标签 Bastags 0001|0002|0003
"condition": "contain",
"value": "0001"
}, {
"name": "optags", #运营标签 Optags 0109|0108|0107
"condition": "contain",
"value": "0109"
}, {
"name": "directors", #导演 director
"condition": "equal",
"value": "导演"
}, {
"name": "actors", #演员 kpeople<br />
"condition": "equal",
"value": "演员"
}, {
"name": "year", #年代 ReleaseYear YYYY
"condition": "bigger",
"value": "2019"
}, {
"name": "score", #评分 Score
"condition": "smaller",
"value": "10"
},{
"name": "cpCode", #内容提供商 ContentProvirer
"condition": "equal",
"value": "as200907110400"
}, {
"name": "definition", #清晰度 Definition
"condition": "equal",
"value": "0"
}, {
"name": "charge", #资费 PackageFlag
"condition": "equal",
"value": "0"
}, {<br />
"name": "package", #资费包 (暂不处理)
"condition": "equal",
"value": "00000001000000110000000000000413"
}, {
"name": "level3Tags", #三级标签 Level3Tags
"condition": "equal",
"value": "三级标签"
}, {
"name": "level4Tags", #四级标签 Level4Tags
"condition": "contain",
"value": "四级标签"
}]
},
{ #一个预设标签 可能存在多个rule
"ruleType": 1, #规则类型:满足以下全部条件=1,满足以下任意条件=2
"ruleName": "规则名称2", #规则名称
"details": [{ #编排规则:name:条件名称;condition:条件类型(equal:等于;notequal:不等于;contain:包含;notcontain:不包含;bigger:大于;smaller:小于;);value:条件值
"name": "type", #内容类型 ElementType
"condition": "equal",
"value": "mediakit"
}, {
"name": "area", #发行地区 OriginalCountry 大陆
"condition": "notcontain",
"value": "澳大利亚"
}, {
"name": "vodDub", #语言 Language 国语
"condition": "contain",
"value": "普通话"
}, {
"name": "typeCode", #节目类型 TypeID 001
"condition": "notequal",
"value": "001"
}, {
"name": "bastags", #基础标签 Bastags 0001|0002|0003
"condition": "contain",
"value": "0001"
}, {
"name": "optags", #运营标签 Optags 0109|0108|0107
"condition": "contain",
"value": "0109"
}, {
"name": "directors", #导演 director
"condition": "equal",
"value": "导演"
}, {
"name": "actors", #演员 kpeople<br />
"condition": "equal",
"value": "演员"
}, {
"name": "year", #年代 ReleaseYear YYYY
"condition": "bigger",
"value": "2019"
}, {
"name": "score", #评分 Score
"condition": "smaller",
"value": "10"
},{
"name": "cpCode", #内容提供商 ContentProvirer
"condition": "equal",
"value": "as200907110400"
}, {
"name": "definition", #清晰度 Definition
"condition": "equal",
"value": "0"
}, {
"name": "charge", #资费 PackageFlag
"condition": "equal",
"value": "0"
}, {<br />
"name": "package", #资费包 (暂不处理)
"condition": "equal",
"value": "00000001000000110000000000000413"
}, {
"name": "level3Tags", #三级标签 Level3Tags
"condition": "equal",
"value": "三级标签"
}, {
"name": "level4Tags", #四级标签 Level4Tags
"condition": "contain",
"value": "四级标签"
}]
}]
}</p>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>