野象新媒体接口文档

新媒体对外接口文档


获取常用链接

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>获取常用链接</li> </ul> <h5>请求 URL</h5> <ul> <li><code>/promotion/common/link</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</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;">partnerId        </td> <td style="text-align: left;">是  </td> <td style="text-align: left;">Long        </td> <td>分销商 ID(子分销商 ID)      </td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 0, &amp;quot;data&amp;quot;: [ { &amp;quot;id&amp;quot;: 1, &amp;quot;name&amp;quot;: &amp;quot;小程序首页&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/index/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null }, { &amp;quot;id&amp;quot;: 2, &amp;quot;name&amp;quot;: &amp;quot;充值页&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/pay/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: true, &amp;quot;h5Url&amp;quot;: &amp;quot;https://client-redirect.nm-serv.cn/book/link?maxAppId=108892471030980608&amp;amp;path=pay%3Fmax_app_id%3D108892471030980608&amp;quot; }, { &amp;quot;id&amp;quot;: 3, &amp;quot;name&amp;quot;: &amp;quot;追剧页&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/follow/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null }, { &amp;quot;id&amp;quot;: 4, &amp;quot;name&amp;quot;: &amp;quot;历史记录&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/history/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null }, { &amp;quot;id&amp;quot;: 5, &amp;quot;name&amp;quot;: &amp;quot;个人中心&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/user/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null }, { &amp;quot;id&amp;quot;: 6, &amp;quot;name&amp;quot;: &amp;quot;继续观看&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/index/index?type=history&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null }, { &amp;quot;id&amp;quot;: 8, &amp;quot;name&amp;quot;: &amp;quot;福利中心&amp;quot;, &amp;quot;url&amp;quot;: &amp;quot;pages/welfare/index&amp;quot;, &amp;quot;h5UrlFlag&amp;quot;: false, &amp;quot;h5Url&amp;quot;: null } ], &amp;quot;msg&amp;quot;: &amp;quot;OK&amp;quot;, &amp;quot;traceId&amp;quot;: &amp;quot;f08fbc62-d277-47c3-bbdc-e6f7d9aced44&amp;quot; }</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;">code      </td> <td style="text-align: left;">Integer  </td> <td>返回码            </td> </tr> <tr> <td style="text-align: left;">msg      </td> <td style="text-align: left;">String    </td> <td>返回消息          </td> </tr> <tr> <td style="text-align: left;">traceId  </td> <td style="text-align: left;">String    </td> <td>链路追踪 ID        </td> </tr> <tr> <td style="text-align: left;">data      </td> <td style="text-align: left;">Array    </td> <td>常用链接数组  </td> </tr> </tbody> </table> <h6>data 常用链接数组项说明</h6> <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;">id  </td> <td style="text-align: left;">Integer</td> <td>常用链接 ID    </td> </tr> <tr> <td style="text-align: left;">name    </td> <td style="text-align: left;">String</td> <td>常用链接名称  </td> </tr> <tr> <td style="text-align: left;">url  </td> <td style="text-align: left;">String</td> <td>常用链接 URL      </td> </tr> <tr> <td style="text-align: left;">h5UrlFlag  </td> <td style="text-align: left;">Bool</td> <td>h5 URL是否有值(小说类型: 微信小程序类型应用 或者 公众号+微信小程序应用 会返回true,并且h5Url会有返回值 )      </td> </tr> <tr> <td style="text-align: left;">h5Url  </td> <td style="text-align: left;">String</td> <td>h5 URL      </td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>返回错误代码请查看[错误响应](<a href="https://www.showdoc.com.cn/gatewaypartnerv1/10903560257841502">https://www.showdoc.com.cn/gatewaypartnerv1/10903560257841502</a> &quot;错误响应&quot;)页面描述</li> </ul>

页面列表

ITEM_HTML