大平台——App客户端接口

App接口


点击次数分享次数更新(0.8)

<p><strong>简要描述:</strong> </p> <ul> <li>添加商家收藏</li> </ul> <p><strong>作者:</strong> </p> <ul> <li>徐辉</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/xtwl_write_interface/cmd</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数:</strong> </p> <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;">shopId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>商家ID</td> </tr> <tr> <td style="text-align: left;">type</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>类别:1点击次数,2分享次数</td> </tr> <tr> <td style="text-align: left;"><strong>shopType</strong></td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>商家类别:1外卖,2团购</td> </tr> </tbody> </table> <p><strong>请求示例</strong></p> <pre><code> { &amp;quot;version&amp;quot;: &amp;quot;1.0&amp;quot;, &amp;quot;modular&amp;quot;:&amp;quot;writeShop&amp;quot;, &amp;quot;requestname&amp;quot;:&amp;quot;updateClickOrSharing&amp;quot;, &amp;quot;param&amp;quot;: { &amp;quot;authKey&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;userKey&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;timeStamp&amp;quot;: &amp;quot;3423452353454&amp;quot;, &amp;quot;secretKey&amp;quot;: &amp;quot;加密后的秘钥串&amp;quot; , &amp;quot;uuid&amp;quot;: &amp;quot;java的uuid&amp;quot;, &amp;quot;dtype&amp;quot;: &amp;quot;自己看着填&amp;quot;, &amp;quot;shopId&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;type&amp;quot;: 1 } }</code></pre> <p><strong>返回参数说明</strong> </p> <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;">resultcode/resultdesc</td> <td style="text-align: left;">String</td> <td>0成功/其它返回错误信息(0002,已收藏过该商家)</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { &amp;quot;resultcode&amp;quot;: &amp;quot;0&amp;quot;, &amp;quot;resultdesc&amp;quot;:&amp;quot;可以自己选择描述,叫接口改&amp;quot;, &amp;quot;result&amp;quot;: &amp;quot;&amp;quot; }</code></pre> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul>

页面列表

ITEM_HTML