旅游app后台

后台api接口


添加广告

<h5>简要描述</h5> <ul> <li>添加广告</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://api.9lele.com/public/index.php/api/ad/add</code></li> </ul> <h5>请求方式</h5> <ul> <li>post</li> </ul> <h5>Header</h5> <table> <thead> <tr> <th>header</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>Token</td> <td>be4c4de6-6ed4-4d79-9678-f75ac6c6c6af</td> <td>是</td> <td>string</td> <td>登录成功后获取的token</td> </tr> </tbody> </table> <h5>请求Body参数</h5> <table> <thead> <tr> <th>参数名</th> <th>示例值</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>remark</td> <td>测试</td> <td>是</td> <td>string</td> <td>备注</td> </tr> <tr> <td>img</td> <td>/uploads/20240425/ed35771ba6a1a64f54db3299676fbf28.jpg</td> <td>是</td> <td>string</td> <td>图片</td> </tr> <tr> <td>name</td> <td>山水图</td> <td>是</td> <td>string</td> <td>广告名称</td> </tr> <tr> <td>starttime</td> <td>1714177274000</td> <td>是</td> <td>string</td> <td>开始时间</td> </tr> <tr> <td>endtime</td> <td>1714177274000</td> <td>是</td> <td>string</td> <td>结束时间</td> </tr> <tr> <td>status</td> <td>1</td> <td>是</td> <td>string</td> <td>状态 1 停用 2 启用</td> </tr> <tr> <td>type</td> <td>1</td> <td>是</td> <td>string</td> <td>类型 1 轮播 2 广告</td> </tr> </tbody> </table> <h5>成功返回示例</h5> <pre><code>{ &amp;quot;code&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;返回成功&amp;quot;, &amp;quot;time&amp;quot;: &amp;quot;1714177316&amp;quot;, &amp;quot;data&amp;quot;: null }</code></pre>

页面列表

ITEM_HTML