AI放映厅API
<h5>简要描述</h5>
<ul>
<li>预设标签API</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/screening/ai</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>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>userId</td>
</tr>
<tr>
<td style="text-align: left;">huoshanSpm</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td><code>电信$##$首页-AI放映$##$AI放映</code></td>
</tr>
<tr>
<td style="text-align: left;">size</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>媒资个数</td>
</tr>
<tr>
<td style="text-align: left;">pagename</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>页面名称,具体规范与探针中spm第二段相同</td>
</tr>
<tr>
<td style="text-align: left;">floorname</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>楼层名称,具体规范与探针中spm第三段相同</td>
</tr>
<tr>
<td style="text-align: left;">refresh</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">boolean</td>
<td>(换一换会直接请求火山,是否有新内容要看火山场景的刷新周期,5分钟,一天,还是一周)默认:false,换一换刷新:true</td>
</tr>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>页码(默认1)</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<p><code>curl -X 'POST' \\ 'http://localhost:3001/api/screening/ai' \\ -H 'accept: application/json' \\ -H 'Content-Type: application/json' \\ -d '{ &quot;userId&quot;: &quot;user\_id\_7788&quot;, &quot;huoshanSpm&quot;: &quot;A$##$B$##$C&quot;, &quot;pagename&quot;: &quot;&quot;, &quot;floorname&quot;: &quot;G&quot;, &quot;size&quot;: 10, &quot;pageNum&quot;: 1 }' </code></p>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">number</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">- result</td>
<td style="text-align: left;">object</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">- size</td>
<td style="text-align: left;">number</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">- time</td>
<td style="text-align: left;">timestamp</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">- item_list</td>
<td style="text-align: left;">array</td>
<td style="text-align: left;">无</td>
</tr>
<tr>
<td style="text-align: left;">size</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">size</td>
</tr>
<tr>
<td style="text-align: left;">trace_id</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">trace_id</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">无</td>
</tr>
</tbody>
</table>
<h5>返回参数result Object说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">火山itemid</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;message&quot;: &quot;success&quot;,
&quot;result&quot;: {
&quot;size&quot;: 6,
&quot;time&quot;: &quot;2024-07-01T06:13:43.406Z&quot;,
&quot;item_list&quot;: [
{
&quot;assets_dot_id&quot;: 8831,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: &quot;1806644437074313280&quot;,
&quot;tsMs&quot;: 1719572574286,
&quot;mediaCode&quot;: &quot;10001001000022019320231116000717&quot;,
&quot;mappingId&quot;: &quot;837f16bfdfc566dfc42d9bea3fd46320&quot;,
&quot;mediaName&quot;: &quot;暴躁解说&quot;,
&quot;mediaDesc&quot;: &quot;人在极度愤怒的情况下&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:04:05&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
},
{
&quot;assets_dot_id&quot;: 2115,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: null,
&quot;tsMs&quot;: null,
&quot;mediaCode&quot;: &quot;fc4bad5a375542499a30c7a56dfe366d&quot;,
&quot;mappingId&quot;: &quot;095e8d3e7fb695dca70ef081e3a96c97&quot;,
&quot;mediaName&quot;: &quot;明天,会更好HD&quot;,
&quot;mediaDesc&quot;: &quot;母子感动相认&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:05:56&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
},
{
&quot;assets_dot_id&quot;: 9101,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: &quot;1806644549024481295&quot;,
&quot;tsMs&quot;: 1719572600977,
&quot;mediaCode&quot;: &quot;10001001000022019320231116012647&quot;,
&quot;mappingId&quot;: &quot;1ea08f37562064cbd8220b0255a891eb&quot;,
&quot;mediaName&quot;: &quot;《昆仑神宫》鬼吹灯系列&quot;,
&quot;mediaDesc&quot;: &quot;《昆仑神宫》鬼吹灯系列第四部&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:07:40&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
},
{
&quot;assets_dot_id&quot;: 3993,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: null,
&quot;tsMs&quot;: null,
&quot;mediaCode&quot;: &quot;d71ddf008991421b830071a9d7257917&quot;,
&quot;mappingId&quot;: &quot;5eeadfd624641aece2e5e0194be846c9&quot;,
&quot;mediaName&quot;: &quot;产科医生HD&quot;,
&quot;mediaDesc&quot;: &quot;共同见证第一产科&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:08:53&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
},
{
&quot;assets_dot_id&quot;: 8800,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: &quot;1806644437028175910&quot;,
&quot;tsMs&quot;: 1719572574275,
&quot;mediaCode&quot;: &quot;10001001000022019320231117000184&quot;,
&quot;mappingId&quot;: &quot;80479c8448be36a575b9b65dcaf1a914&quot;,
&quot;mediaName&quot;: &quot;没心没肺的大小姐&quot;,
&quot;mediaDesc&quot;: &quot;居然也会得相思病&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:03:25&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
},
{
&quot;assets_dot_id&quot;: 2835,
&quot;platform&quot;: &quot;t&quot;,
&quot;uid&quot;: null,
&quot;tsMs&quot;: null,
&quot;mediaCode&quot;: &quot;28b187e6acfd410ab7eb668e085de05a&quot;,
&quot;mappingId&quot;: &quot;01e1a13d215c5001e6ec347b3aedcb1e&quot;,
&quot;mediaName&quot;: &quot;开心宝贝之奇幻之旅HD&quot;,
&quot;mediaDesc&quot;: &quot;集齐魔杖拯救球长&quot;,
&quot;status&quot;: 1,
&quot;duration&quot;: &quot;00:05:01&quot;,
&quot;reserved1&quot;: &quot;电信$##$首页-AI放映$##$AI放映;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
}
]
},
&quot;source&quot;: &quot;0&quot;,
&quot;size&quot;: 6,
&quot;trace_id&quot;: &quot;af9d0e5d-9e65-49c1-a7eb-262d36ef7908_0&quot;
}
</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>