<!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="FastAdmin"> <title>FastAdmin</title> <!-- Bootstrap Core CSS --> <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <!-- Plugin CSS --> <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script> <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <style type="text/css"> body { padding-top: 70px; margin-bottom: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif; font-weight: 400; } h2 { font-size: 1.6em; } hr { margin-top: 10px; } .tab-pane { padding-top: 10px; } .mt0 { margin-top: 0px; } .footer { font-size: 12px; color: #666; } .label { display: inline-block; min-width: 65px; padding: 0.3em 0.6em 0.3em; } .string { color: green; } .number { color: darkorange; } .boolean { color: blue; } .null { color: magenta; } .key { color: red; } .popover { max-width: 400px; max-height: 400px; overflow-y: auto;} .list-group.panel > .list-group-item { } .list-group-item:last-child { border-radius:0; } h4.panel-title a { font-weight:normal; font-size:14px; } h4.panel-title a .text-muted { font-size:12px; font-weight:normal; font-family: 'Verdana'; } #sidebar { width: 220px; position: fixed; margin-left: -240px; overflow-y:auto; } #sidebar > .list-group { margin-bottom:0; } #sidebar > .list-group > a{ text-indent:0; } #sidebar .child { border:1px solid #ddd; border-bottom:none; } #sidebar .child > a { border:0; } #sidebar .list-group a.current { background:#f5f5f5; } @media (max-width: 1620px){ #sidebar { margin:0; } #accordion { padding-left:235px; } } @media (max-width: 768px){ #sidebar { display: none; } #accordion { padding-left:0px; } } </style> </head> <body> <!-- Fixed navbar --> <div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="https://www.fastadmin.net" target="_blank">FastAdmin</a> </div> <div class="navbar-collapse collapse"> <form class="navbar-form navbar-right"> <div class="form-group"> Token: </div> <div class="form-group"> <input type="text" class="form-control input-sm" data-toggle="tooltip" title="Token在会员注册或登录后都会返回,WEB端同时存在于Cookie中" placeholder="token" id="token" /> </div> <div class="form-group"> Apiurl: </div> <div class="form-group"> <input id="apiUrl" type="text" class="form-control input-sm" data-toggle="tooltip" title="API接口URL" placeholder="https://api.mydomain.com" value="" /> </div> <div class="form-group"> <button type="button" class="btn btn-success btn-sm" data-toggle="tooltip" title="点击保存后Token和Api url都将保存在本地Localstorage中" id="save_data"> <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> </button> </div> </form> </div><!--/.nav-collapse --> </div> </div> <div class="container"> <!-- menu --> <div id="sidebar"> <div class="list-group panel"> <a href="#关于我们接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">关于我们接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="关于我们接口**"> <a href="javascript:;" data-id="0" class="list-group-item">关于我们详情</a> </div> <a href="#购物车接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">购物车接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="购物车接口**"> <a href="javascript:;" data-id="1" class="list-group-item">加入购物车</a> <a href="javascript:;" data-id="2" class="list-group-item">购物车列表</a> <a href="javascript:;" data-id="3" class="list-group-item">购物车列表</a> </div> <a href="#评论接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">评论接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="评论接口**"> <a href="javascript:;" data-id="4" class="list-group-item">已完成订单评价</a> <a href="javascript:;" data-id="5" class="list-group-item">评价列表</a> </div> <a href="#公共接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">公共接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="公共接口"> <a href="javascript:;" data-id="6" class="list-group-item">加载初始化</a> <a href="javascript:;" data-id="7" class="list-group-item">上传文件</a> </div> <a href="#示例接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">示例接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="示例接口"> <a href="javascript:;" data-id="8" class="list-group-item">测试名称</a> <a href="javascript:;" data-id="9" class="list-group-item">无需登录的接口</a> <a href="javascript:;" data-id="10" class="list-group-item">需要登录的接口</a> <a href="javascript:;" data-id="11" class="list-group-item">需要登录且需要验证有相应组的权限</a> </div> <a href="#邮箱验证码接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">邮箱验证码接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="邮箱验证码接口"> <a href="javascript:;" data-id="12" class="list-group-item">发送验证码</a> <a href="javascript:;" data-id="13" class="list-group-item">检测验证码</a> </div> <a href="#礼品接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">礼品接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="礼品接口**"> <a href="javascript:;" data-id="14" class="list-group-item">礼品列表</a> <a href="javascript:;" data-id="15" class="list-group-item">礼品详情</a> </div> <a href="#商品接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">商品接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="商品接口**"> <a href="javascript:;" data-id="16" class="list-group-item">对应分类的商品列表</a> <a href="javascript:;" data-id="17" class="list-group-item">搜索对应分类的关键字商品列表</a> <a href="javascript:;" data-id="18" class="list-group-item">搜索历史记录</a> <a href="javascript:;" data-id="19" class="list-group-item">清空历史记录</a> <a href="javascript:;" data-id="20" class="list-group-item">商品详情</a> <a href="javascript:;" data-id="21" class="list-group-item">猜你喜欢</a> </div> <a href="#礼品订单接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">礼品订单接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="礼品订单接口**"> <a href="javascript:;" data-id="22" class="list-group-item">礼品兑换是否有足够的积分</a> <a href="javascript:;" data-id="23" class="list-group-item">礼品兑换订单页</a> <a href="javascript:;" data-id="24" class="list-group-item">礼品提交订单</a> <a href="javascript:;" data-id="25" class="list-group-item">礼品订单列表</a> </div> <a href="#分类接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">分类接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="分类接口**"> <a href="javascript:;" data-id="26" class="list-group-item">获取分类列表</a> <a href="javascript:;" data-id="27" class="list-group-item">获取首页banner图</a> <a href="javascript:;" data-id="28" class="list-group-item">获取商城banner图</a> </div> <a href="#订单消息接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">订单消息接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="订单消息接口**"> <a href="javascript:;" data-id="29" class="list-group-item">我的订单消息列表</a> </div> <a href="#企业付款接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">企业付款接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="企业付款接口**"> <a href="javascript:;" data-id="30" class="list-group-item"></a> <a href="javascript:;" data-id="31" class="list-group-item"></a> <a href="javascript:;" data-id="32" class="list-group-item"></a> <a href="javascript:;" data-id="33" class="list-group-item"></a> <a href="javascript:;" data-id="34" class="list-group-item">获取签名</a> <a href="javascript:;" data-id="35" class="list-group-item">获取带签名的数组</a> <a href="javascript:;" data-id="36" class="list-group-item">数组转URL格式的字符串</a> <a href="javascript:;" data-id="37" class="list-group-item"></a> <a href="javascript:;" data-id="38" class="list-group-item"></a> </div> <a href="#个人信息接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">个人信息接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="个人信息接口**"> <a href="javascript:;" data-id="39" class="list-group-item">获取会员信息</a> <a href="javascript:;" data-id="40" class="list-group-item">修改会员信息</a> <a href="javascript:;" data-id="41" class="list-group-item">上传文件</a> <a href="javascript:;" data-id="42" class="list-group-item">账单明细</a> <a href="javascript:;" data-id="43" class="list-group-item">绑定银行卡</a> <a href="javascript:;" data-id="44" class="list-group-item">银行卡列表</a> <a href="javascript:;" data-id="45" class="list-group-item">修改银行卡</a> <a href="javascript:;" data-id="46" class="list-group-item">根据规则增加积分</a> <a href="javascript:;" data-id="47" class="list-group-item"></a> <a href="javascript:;" data-id="48" class="list-group-item">开工</a> </div> <a href="#商品订单接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">商品订单接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="商品订单接口**"> <a href="javascript:;" data-id="49" class="list-group-item">从购物车选中结算</a> <a href="javascript:;" data-id="50" class="list-group-item">提交订单</a> <a href="javascript:;" data-id="51" class="list-group-item">商品订单列表</a> <a href="javascript:;" data-id="52" class="list-group-item">取消商品订单</a> <a href="javascript:;" data-id="53" class="list-group-item">收货商品订单</a> <a href="javascript:;" data-id="54" class="list-group-item">商品订单详情</a> </div> <a href="#常见问题接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">常见问题接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="常见问题接口**"> <a href="javascript:;" data-id="55" class="list-group-item">常见问题列表</a> <a href="javascript:;" data-id="56" class="list-group-item">常见问题详情</a> </div> <a href="#" class="list-group-item" data-toggle="collapse" data-parent="#sidebar"> <i class="fa fa-caret-down"></i></a> <div class="child collapse" id=""> <a href="javascript:;" data-id="57" class="list-group-item"></a> <a href="javascript:;" data-id="58" class="list-group-item"></a> <a href="javascript:;" data-id="59" class="list-group-item">生成一对公私钥 成功返回 公私钥数组 失败 返回 false</a> <a href="javascript:;" data-id="60" class="list-group-item">用私钥加密</a> <a href="javascript:;" data-id="61" class="list-group-item">解密 私钥加密后的密文</a> <a href="javascript:;" data-id="62" class="list-group-item">用公钥加密</a> <a href="javascript:;" data-id="63" class="list-group-item">解密 公钥加密后的密文</a> </div> <a href="#卖废品接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">卖废品接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="卖废品接口**"> <a href="javascript:;" data-id="64" class="list-group-item">卖废品信息添加</a> </div> <a href="#系统消息接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">系统消息接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="系统消息接口**"> <a href="javascript:;" data-id="65" class="list-group-item">系统消息列表</a> <a href="javascript:;" data-id="66" class="list-group-item">系统消息详情</a> </div> <a href="#手机短信接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">手机短信接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="手机短信接口"> <a href="javascript:;" data-id="67" class="list-group-item">发送验证码</a> <a href="javascript:;" data-id="68" class="list-group-item">检测验证码</a> </div> <a href="#我的团队接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">我的团队接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="我的团队接口**"> <a href="javascript:;" data-id="69" class="list-group-item">我的团队列表</a> <a href="javascript:;" data-id="70" class="list-group-item">我的团队积分明细</a> </div> <a href="#Token接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">Token接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="Token接口"> <a href="javascript:;" data-id="71" class="list-group-item">检测Token是否过期</a> <a href="javascript:;" data-id="72" class="list-group-item">刷新Token</a> </div> <a href="#会员接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">会员接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="会员接口"> <a href="javascript:;" data-id="73" class="list-group-item">会员中心</a> <a href="javascript:;" data-id="74" class="list-group-item">小程序登录**</a> <a href="javascript:;" data-id="75" class="list-group-item">手机验证码登录</a> <a href="javascript:;" data-id="76" class="list-group-item">注册会员</a> <a href="javascript:;" data-id="77" class="list-group-item">注销登录</a> <a href="javascript:;" data-id="78" class="list-group-item">修改会员个人信息</a> <a href="javascript:;" data-id="79" class="list-group-item">修改邮箱</a> <a href="javascript:;" data-id="80" class="list-group-item">修改手机号</a> <a href="javascript:;" data-id="81" class="list-group-item">第三方登录</a> <a href="javascript:;" data-id="82" class="list-group-item">重置密码</a> </div> <a href="#验证接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">验证接口 <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="验证接口"> <a href="javascript:;" data-id="83" class="list-group-item">检测邮箱</a> <a href="javascript:;" data-id="84" class="list-group-item">检测用户名</a> <a href="javascript:;" data-id="85" class="list-group-item">检测手机</a> <a href="javascript:;" data-id="86" class="list-group-item">检测手机</a> <a href="javascript:;" data-id="87" class="list-group-item">检测邮箱</a> <a href="javascript:;" data-id="88" class="list-group-item">检测手机验证码</a> <a href="javascript:;" data-id="89" class="list-group-item">检测邮箱验证码</a> </div> <a href="#支付接口**" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">支付接口** <i class="fa fa-caret-down"></i></a> <div class="child collapse" id="支付接口**"> <a href="javascript:;" data-id="90" class="list-group-item">支付订单</a> <a href="javascript:;" data-id="91" class="list-group-item">商品订单去付款</a> <a href="javascript:;" data-id="92" class="list-group-item">微信异步通知(不需调用)</a> <a href="javascript:;" data-id="93" class="list-group-item">充值</a> <a href="javascript:;" data-id="94" class="list-group-item">微信异步通知(不需调用)</a> <a href="javascript:;" data-id="95" class="list-group-item">分享购买成功调用,增加积分并获得相应的积分</a> <a href="javascript:;" data-id="96" class="list-group-item">本人购买成功调用,增加积分并获得相应的积分</a> </div> </div> </div> <div class="panel-group" id="accordion"> <h2>关于我们接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-0"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion0" href="#collapseOne0"> 关于我们详情 <span class="text-muted">/api/abouts/aboutDetail</span></a> </h4> </div> <div id="collapseOne0" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab0"> <li class="active"><a href="#info0" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox0" data-toggle="tab">在线测试</a></li> <li><a href="#sample0" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info0"> <div class="well"> 关于我们详情 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox0"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/abouts/aboutDetail" method="GET" name="form0" id="form0"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="0">提交</button> <button type="reset" class="btn btn-info" rel="0">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers0"></pre> <pre id="response0"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample0"> <div class="row"> <div class="col-md-12"> <pre id="sample_response0">{ "code": 1, "msg": "成功", "time": "1553777266", "data": [ { "id": 1, "title": "如何回收?",//标题 "description": "废杂铜的种类繁多,回收利用技术和工艺也有所不同",//详情 "image": "/uploads/20190320/4d82786ab0f7866110519f221cbf29a6.jpg" "lng": "120.60242",//经度 "lat": "31.27855",//纬度 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>购物车接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-1"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion1" href="#collapseOne1"> 加入购物车 <span class="text-muted">/api/cars/addCar</span></a> </h4> </div> <div id="collapseOne1" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab1"> <li class="active"><a href="#info1" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox1" data-toggle="tab">在线测试</a></li> <li><a href="#sample1" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info1"> <div class="well"> 加入购物车 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox1"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/cars/addCar" method="GET" name="form1" id="form1"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="1">提交</button> <button type="reset" class="btn btn-info" rel="1">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers1"></pre> <pre id="response1"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample1"> <div class="row"> <div class="col-md-12"> <pre id="sample_response1">{ "code": 1, "msg": "加入成功", "time": "1553836646", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-2"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion2" href="#collapseOne2"> 购物车列表 <span class="text-muted">/api/cars/carList</span></a> </h4> </div> <div id="collapseOne2" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab2"> <li class="active"><a href="#info2" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox2" data-toggle="tab">在线测试</a></li> <li><a href="#sample2" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info2"> <div class="well"> 购物车列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox2"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/cars/carList" method="GET" name="form2" id="form2"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="2">提交</button> <button type="reset" class="btn btn-info" rel="2">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers2"></pre> <pre id="response2"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample2"> <div class="row"> <div class="col-md-12"> <pre id="sample_response2">{ "code": 1, "msg": "成功", "time": "1553836697", "data": [ { "id": 1, "p_id": 1,//商品id "title": "我的垃圾商品1",//商品名称 "price": 500,//商品价格 "num": 3,/商品数量 "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, { "id": 2, "p_id": 2, "title": "废弃家电", "price": 1200.08, "num": 3, "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-3"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion3" href="#collapseOne3"> 购物车列表 <span class="text-muted">/api/cars/clearCar</span></a> </h4> </div> <div id="collapseOne3" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab3"> <li class="active"><a href="#info3" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox3" data-toggle="tab">在线测试</a></li> <li><a href="#sample3" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info3"> <div class="well"> 购物车列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>string</td> <td>是</td> <td>购物车id(多个以逗号隔开)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox3"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/cars/clearCar" method="GET" name="form3" id="form3"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="string" class="form-control input-sm" id="id" required placeholder="购物车id(多个以逗号隔开)" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="3">提交</button> <button type="reset" class="btn btn-info" rel="3">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers3"></pre> <pre id="response3"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample3"> <div class="row"> <div class="col-md-12"> <pre id="sample_response3">{ "code": 1, "msg": "删除成功", "time": "1555504723", "data": 2 }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>评论接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-4"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion4" href="#collapseOne4"> 已完成订单评价 <span class="text-muted">/api/comments/comment</span></a> </h4> </div> <div id="collapseOne4" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab4"> <li class="active"><a href="#info4" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox4" data-toggle="tab">在线测试</a></li> <li><a href="#sample4" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info4"> <div class="well"> 已完成订单评价 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品id</td> </tr> <tr> <td>order_id</td> <td>integer</td> <td>是</td> <td>订单id</td> </tr> <tr> <td>content</td> <td>string</td> <td>是</td> <td>评价内容</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox4"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/comments/comment" method="POST" name="form4" id="form4"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品id" name="id"> </div> <div class="form-group"> <label class="control-label" for="order_id">order_id</label> <input type="integer" class="form-control input-sm" id="order_id" required placeholder="订单id" name="order_id"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="string" class="form-control input-sm" id="content" required placeholder="评价内容" name="content"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="4">提交</button> <button type="reset" class="btn btn-info" rel="4">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers4"></pre> <pre id="response4"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample4"> <div class="row"> <div class="col-md-12"> <pre id="sample_response4">{ "code": 1, "msg": "评价成功", "time": "1553837090", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-5"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion5" href="#collapseOne5"> 评价列表 <span class="text-muted">/api/comments/commentList</span></a> </h4> </div> <div id="collapseOne5" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab5"> <li class="active"><a href="#info5" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox5" data-toggle="tab">在线测试</a></li> <li><a href="#sample5" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info5"> <div class="well"> 评价列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品id</td> </tr> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox5"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/comments/commentList" method="GET" name="form5" id="form5"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品id" name="id"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="5">提交</button> <button type="reset" class="btn btn-info" rel="5">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers5"></pre> <pre id="response5"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample5"> <div class="row"> <div class="col-md-12"> <pre id="sample_response5">{ "code": 1, "msg": "成功", "time": "1553777266", "data":[ { "id": 3, "nickname": "风起时888",//昵称 "avatar": "分飞机的搜房888",//头像 "content": " ",//评论内容 "num": 0,//购买数量 "createtime": "2019-03-25"//评论时间 }, { "id": 4, "nickname": "风起时888", "avatar": "分飞机的搜房888", "content": " ", "createtime": "2019-03-25" }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>公共接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-6"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 加载初始化 <span class="text-muted">/api/common/init</span></a> </h4> </div> <div id="collapseOne6" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab6"> <li class="active"><a href="#info6" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox6" data-toggle="tab">在线测试</a></li> <li><a href="#sample6" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info6"> <div class="well"> 加载初始化 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>version</td> <td>string</td> <td>是</td> <td>版本号</td> </tr> <tr> <td>lng</td> <td>string</td> <td>是</td> <td>经度</td> </tr> <tr> <td>lat</td> <td>string</td> <td>是</td> <td>纬度</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox6"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/init" method="get" name="form6" id="form6"> <div class="form-group"> <label class="control-label" for="version">version</label> <input type="string" class="form-control input-sm" id="version" required placeholder="版本号" name="version"> </div> <div class="form-group"> <label class="control-label" for="lng">lng</label> <input type="string" class="form-control input-sm" id="lng" required placeholder="经度" name="lng"> </div> <div class="form-group"> <label class="control-label" for="lat">lat</label> <input type="string" class="form-control input-sm" id="lat" required placeholder="纬度" name="lat"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="6">提交</button> <button type="reset" class="btn btn-info" rel="6">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers6"></pre> <pre id="response6"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample6"> <div class="row"> <div class="col-md-12"> <pre id="sample_response6">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-7"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion7" href="#collapseOne7"> 上传文件 <span class="text-muted">/api/common/upload</span></a> </h4> </div> <div id="collapseOne7" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab7"> <li class="active"><a href="#info7" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox7" data-toggle="tab">在线测试</a></li> <li><a href="#sample7" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info7"> <div class="well"> 上传文件 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>file</td> <td>File</td> <td>是</td> <td>文件流</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox7"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/upload" method="POST" name="form7" id="form7"> <div class="form-group"> <label class="control-label" for="file">file</label> <input type="File" class="form-control input-sm" id="file" required placeholder="文件流" name="file"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="7">提交</button> <button type="reset" class="btn btn-info" rel="7">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers7"></pre> <pre id="response7"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample7"> <div class="row"> <div class="col-md-12"> <pre id="sample_response7">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>示例接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-8"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion8" href="#collapseOne8"> 测试名称 <span class="text-muted">/api/demo/test/id/{id}/name/{name}</span></a> </h4> </div> <div id="collapseOne8" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab8"> <li class="active"><a href="#info8" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox8" data-toggle="tab">在线测试</a></li> <li><a href="#sample8" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info8"> <div class="well"> 测试描述信息 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>会员ID</td> </tr> <tr> <td>name</td> <td>string</td> <td>是</td> <td>用户名</td> </tr> <tr> <td>data</td> <td>object</td> <td>是</td> <td>扩展数据</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox8"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test/id/{id}/name/{name}" method="POST" name="form8" id="form8"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="会员ID" name="id"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" required placeholder="用户名" name="name"> </div> <div class="form-group"> <label class="control-label" for="data">data</label> <input type="object" class="form-control input-sm" id="data" required placeholder="扩展数据 - 例: {'user_id':'int','user_name':'string','profile':{'email':'string','age':'integer'}}" name="data"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="8">提交</button> <button type="reset" class="btn btn-info" rel="8">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers8"></pre> <pre id="response8"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>integer</td> <td></td> </tr> <tr> <td>msg</td> <td>string</td> <td></td> </tr> <tr> <td>data</td> <td>object</td> <td>扩展数据返回</td> </tr> </tbody> </table> </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample8"> <div class="row"> <div class="col-md-12"> <pre id="sample_response8">{ 'code':'1', 'msg':'返回成功' }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-9"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 无需登录的接口 <span class="text-muted">/api/demo/test1</span></a> </h4> </div> <div id="collapseOne9" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab9"> <li class="active"><a href="#info9" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox9" data-toggle="tab">在线测试</a></li> <li><a href="#sample9" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info9"> <div class="well"> 无需登录的接口 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox9"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test1" method="get" name="form9" id="form9"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="9">提交</button> <button type="reset" class="btn btn-info" rel="9">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers9"></pre> <pre id="response9"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample9"> <div class="row"> <div class="col-md-12"> <pre id="sample_response9">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-10"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 需要登录的接口 <span class="text-muted">/api/demo/test2</span></a> </h4> </div> <div id="collapseOne10" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab10"> <li class="active"><a href="#info10" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox10" data-toggle="tab">在线测试</a></li> <li><a href="#sample10" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info10"> <div class="well"> 需要登录的接口 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox10"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test2" method="get" name="form10" id="form10"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="10">提交</button> <button type="reset" class="btn btn-info" rel="10">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers10"></pre> <pre id="response10"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample10"> <div class="row"> <div class="col-md-12"> <pre id="sample_response10">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-11"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 需要登录且需要验证有相应组的权限 <span class="text-muted">/api/demo/test3</span></a> </h4> </div> <div id="collapseOne11" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab11"> <li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox11" data-toggle="tab">在线测试</a></li> <li><a href="#sample11" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info11"> <div class="well"> 需要登录且需要验证有相应组的权限 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox11"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/demo/test3" method="get" name="form11" id="form11"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="11">提交</button> <button type="reset" class="btn btn-info" rel="11">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers11"></pre> <pre id="response11"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample11"> <div class="row"> <div class="col-md-12"> <pre id="sample_response11">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>邮箱验证码接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-12"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 发送验证码 <span class="text-muted">/api/ems/send</span></a> </h4> </div> <div id="collapseOne12" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab12"> <li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox12" data-toggle="tab">在线测试</a></li> <li><a href="#sample12" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info12"> <div class="well"> 发送验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件名称</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox12"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/send" method="get" name="form12" id="form12"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="12">提交</button> <button type="reset" class="btn btn-info" rel="12">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers12"></pre> <pre id="response12"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample12"> <div class="row"> <div class="col-md-12"> <pre id="sample_response12">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-13"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 检测验证码 <span class="text-muted">/api/ems/check</span></a> </h4> </div> <div id="collapseOne13" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab13"> <li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox13" data-toggle="tab">在线测试</a></li> <li><a href="#sample13" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info13"> <div class="well"> 检测验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件名称</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox13"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/ems/check" method="get" name="form13" id="form13"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="13">提交</button> <button type="reset" class="btn btn-info" rel="13">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers13"></pre> <pre id="response13"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample13"> <div class="row"> <div class="col-md-12"> <pre id="sample_response13">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>礼品接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-14"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 礼品列表 <span class="text-muted">/api/gifts/getGiftsList</span></a> </h4> </div> <div id="collapseOne14" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab14"> <li class="active"><a href="#info14" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox14" data-toggle="tab">在线测试</a></li> <li><a href="#sample14" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info14"> <div class="well"> 礼品列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox14"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gifts/getGiftsList" method="GET" name="form14" id="form14"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="14">提交</button> <button type="reset" class="btn btn-info" rel="14">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers14"></pre> <pre id="response14"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample14"> <div class="row"> <div class="col-md-12"> <pre id="sample_response14">{ "code": 1, "msg": "成功", "time": "1553836021", "data": { "my_score": 99, "data": [ { "id": 1, "title": "礼品标题1",//礼品名称 "score": 100,//礼品积分 "images": "/uploads/20190319/74cf9cbb633386b889f15a9797169b7d.jpg,/uploads/20190319/4e98e7e8bb1fa28db4f7a49df3159938.jpg" }, { "id": 2, "title": "礼品标题2", "score": 100, "images": "/uploads/20190319/74cf9cbb633386b889f15a9797169b7d.jpg,/uploads/20190319/4e98e7e8bb1fa28db4f7a49df3159938.jpg" } ] } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-15"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 礼品详情 <span class="text-muted">/api/gifts/giftsDetail</span></a> </h4> </div> <div id="collapseOne15" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab15"> <li class="active"><a href="#info15" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox15" data-toggle="tab">在线测试</a></li> <li><a href="#sample15" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info15"> <div class="well"> 礼品详情 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>礼品id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox15"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gifts/giftsDetail" method="GET" name="form15" id="form15"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="礼品id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="15">提交</button> <button type="reset" class="btn btn-info" rel="15">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers15"></pre> <pre id="response15"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample15"> <div class="row"> <div class="col-md-12"> <pre id="sample_response15">{ "code": 1, "msg": "成功", "time": "1553777266", "data":[ { "id": 1, "title": "礼品标题1",//礼品名称 "stock": 1000,//礼品库存 "score": 100,//礼品所需积分 "description": " ★注:各种废旧五金、电子、塑胶等",//礼品详情 "images": "/uploads/20190319/74cf9cbb633386b889f15a9797169b7d.jpg,/uploads/20190319/4e98e7e8bb1fa28db4f7a49df3159938.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>商品接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-16"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 对应分类的商品列表 <span class="text-muted">/api/goods/getGoodsList</span></a> </h4> </div> <div id="collapseOne16" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab16"> <li class="active"><a href="#info16" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox16" data-toggle="tab">在线测试</a></li> <li><a href="#sample16" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info16"> <div class="well"> 对应分类的商品列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>分类id</td> </tr> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox16"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/getGoodsList" method="GET" name="form16" id="form16"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="分类id" name="id"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="16">提交</button> <button type="reset" class="btn btn-info" rel="16">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers16"></pre> <pre id="response16"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample16"> <div class="row"> <div class="col-md-12"> <pre id="sample_response16">{ "code": 1, "msg": "成功", "time": "1553831462", "data": [ { "id": 1, "type": 0,//类型 0:个人 1:企业 "title": "我的垃圾商品1",//商品名称 "address": "河南省邓州市",//上门地址 "pre_time": "2019-03-19 14:36:08",//预约时间 "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, { "id": 3, "type": 0, "title": "废品商品2", "address": "河南省邓州市", "pre_time": "2019-03-19 19:14:07", "images": "/uploads/20190328/c7eab178376c71ae1892cd23a1fb5779.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-17"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion17" href="#collapseOne17"> 搜索对应分类的关键字商品列表 <span class="text-muted">/api/goods/searchKey</span></a> </h4> </div> <div id="collapseOne17" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab17"> <li class="active"><a href="#info17" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox17" data-toggle="tab">在线测试</a></li> <li><a href="#sample17" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info17"> <div class="well"> 搜索对应分类的关键字商品列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>分类id</td> </tr> <tr> <td>keywords</td> <td>string</td> <td>是</td> <td>关键字</td> </tr> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox17"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/searchKey" method="GET" name="form17" id="form17"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="分类id" name="id"> </div> <div class="form-group"> <label class="control-label" for="keywords">keywords</label> <input type="string" class="form-control input-sm" id="keywords" required placeholder="关键字" name="keywords"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="17">提交</button> <button type="reset" class="btn btn-info" rel="17">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers17"></pre> <pre id="response17"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample17"> <div class="row"> <div class="col-md-12"> <pre id="sample_response17">{ "code": 1, "msg": "成功", "time": "1553831605", "data": [ { "id": 1, "type": 0,//类型 0:个人 1:企业 "title": "我的垃圾商品1",//商品名称 "address": "河南省邓州市",//上门地址 "pre_time": "2019-03-19 14:36:08",//预约时间 "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-18"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 搜索历史记录 <span class="text-muted">/api/goods/keysHistory</span></a> </h4> </div> <div id="collapseOne18" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab18"> <li class="active"><a href="#info18" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox18" data-toggle="tab">在线测试</a></li> <li><a href="#sample18" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info18"> <div class="well"> 搜索历史记录 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox18"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/keysHistory" method="GET" name="form18" id="form18"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="18">提交</button> <button type="reset" class="btn btn-info" rel="18">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers18"></pre> <pre id="response18"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample18"> <div class="row"> <div class="col-md-12"> <pre id="sample_response18">{ "code": 1, "msg": "成功", "time": "1553831921", "data": [ { "id": 4, "keywords": "我的世界"//关键字 }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-19"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> 清空历史记录 <span class="text-muted">/api/goods/clearHistory</span></a> </h4> </div> <div id="collapseOne19" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab19"> <li class="active"><a href="#info19" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox19" data-toggle="tab">在线测试</a></li> <li><a href="#sample19" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info19"> <div class="well"> 清空历史记录 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox19"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/clearHistory" method="GET" name="form19" id="form19"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="19">提交</button> <button type="reset" class="btn btn-info" rel="19">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers19"></pre> <pre id="response19"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample19"> <div class="row"> <div class="col-md-12"> <pre id="sample_response19">{ "code": 1, "msg": "成功", "time": "1553831995", "data": 4 }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-20"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 商品详情 <span class="text-muted">/api/goods/goodsDetail</span></a> </h4> </div> <div id="collapseOne20" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab20"> <li class="active"><a href="#info20" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox20" data-toggle="tab">在线测试</a></li> <li><a href="#sample20" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info20"> <div class="well"> 商品详情 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox20"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/goodsDetail" method="GET" name="form20" id="form20"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="20">提交</button> <button type="reset" class="btn btn-info" rel="20">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers20"></pre> <pre id="response20"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample20"> <div class="row"> <div class="col-md-12"> <pre id="sample_response20">{ "code": 1, "msg": "成功", "time": "1553832106", "data": [ "data":[{ "id": 1, "type": 0, //类型 0:个人 1:企业 "title": "我的垃圾商品1", //商品名称 "mobile": 13752001725, //联系电话 "price": 500, //商品价格 "stock": 1000, //商品库存 "address": "天津市南开区卫津路", //上门地址 "pre_time": "2019-03-19 14:36:08", //预约时间 "introduction" : "商品描述", "description" : "商品详情", "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }], "comment_count":"5"//商品评价条数 ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-21"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 猜你喜欢 <span class="text-muted">/api/goods/guessLikes</span></a> </h4> </div> <div id="collapseOne21" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab21"> <li class="active"><a href="#info21" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox21" data-toggle="tab">在线测试</a></li> <li><a href="#sample21" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info21"> <div class="well"> 猜你喜欢 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox21"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/goods/guessLikes" method="GET" name="form21" id="form21"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="21">提交</button> <button type="reset" class="btn btn-info" rel="21">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers21"></pre> <pre id="response21"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample21"> <div class="row"> <div class="col-md-12"> <pre id="sample_response21">{ "code": 1, "msg": "成功", "time": "1553832190", "data": [ { "id": 1, "title": "我的垃圾商品1", //商品名称 "price": 500, //商品价格 "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, { "id": 2, "title": "废弃家电", "price": 1200.08, "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, { "id": 3, "title": "废品商品2", "price": 12.05, "images": "/uploads/20190328/c7eab178376c71ae1892cd23a1fb5779.jpg" }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>礼品订单接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-22"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 礼品兑换是否有足够的积分 <span class="text-muted">/api/gorders/isEnough</span></a> </h4> </div> <div id="collapseOne22" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab22"> <li class="active"><a href="#info22" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox22" data-toggle="tab">在线测试</a></li> <li><a href="#sample22" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info22"> <div class="well"> 礼品兑换是否有足够的积分 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>g_id</td> <td>integer</td> <td>是</td> <td>礼品id</td> </tr> <tr> <td>g_num</td> <td>integer</td> <td>是</td> <td>礼品数量</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox22"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gorders/isEnough" method="GET" name="form22" id="form22"> <div class="form-group"> <label class="control-label" for="g_id">g_id</label> <input type="integer" class="form-control input-sm" id="g_id" required placeholder="礼品id" name="g_id"> </div> <div class="form-group"> <label class="control-label" for="g_num">g_num</label> <input type="integer" class="form-control input-sm" id="g_num" required placeholder="礼品数量" name="g_num"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="22">提交</button> <button type="reset" class="btn btn-info" rel="22">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers22"></pre> <pre id="response22"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample22"> <div class="row"> <div class="col-md-12"> <pre id="sample_response22">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-23"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 礼品兑换订单页 <span class="text-muted">/api/gorders/exchange</span></a> </h4> </div> <div id="collapseOne23" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab23"> <li class="active"><a href="#info23" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox23" data-toggle="tab">在线测试</a></li> <li><a href="#sample23" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info23"> <div class="well"> 礼品兑换订单页 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>g_id</td> <td>integer</td> <td>是</td> <td>礼品id</td> </tr> <tr> <td>g_num</td> <td>integer</td> <td>是</td> <td>礼品数量</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox23"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gorders/exchange" method="GET" name="form23" id="form23"> <div class="form-group"> <label class="control-label" for="g_id">g_id</label> <input type="integer" class="form-control input-sm" id="g_id" required placeholder="礼品id" name="g_id"> </div> <div class="form-group"> <label class="control-label" for="g_num">g_num</label> <input type="integer" class="form-control input-sm" id="g_num" required placeholder="礼品数量" name="g_num"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="23">提交</button> <button type="reset" class="btn btn-info" rel="23">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers23"></pre> <pre id="response23"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample23"> <div class="row"> <div class="col-md-12"> <pre id="sample_response23">{ "code": 1, "msg": "成功", "time": "1553837670", "data": { "user": { "username": "风起时呀",//收货人 "mobile": ""//收货人电话 收货地址:微信地址(由小程序自己调取,这里不提供) }, "order": { "title": "礼品标题1",//礼品标题 "score": 100,//礼品积分 "images": "/uploads/20190319/74cf9cbb633386b889f15a9797169b7d.jpg,/uploads/20190319/4e98e7e8bb1fa28db4f7a49df3159938.jpg", "num": "1",//礼品数量 "order_sn": "gc_155359401330746300",//订单 "total_score": 100 //礼品总积分 } } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-24"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion24" href="#collapseOne24"> 礼品提交订单 <span class="text-muted">/api/gorders/giftPurchase</span></a> </h4> </div> <div id="collapseOne24" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab24"> <li class="active"><a href="#info24" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox24" data-toggle="tab">在线测试</a></li> <li><a href="#sample24" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info24"> <div class="well"> 礼品提交订单 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>g_id</td> <td>integer</td> <td>是</td> <td>礼品id</td> </tr> <tr> <td>g_num</td> <td>integer</td> <td>是</td> <td>礼品数量</td> </tr> <tr> <td>order_sn</td> <td>string</td> <td>是</td> <td>礼品订单号</td> </tr> <tr> <td>address</td> <td>string</td> <td>是</td> <td>收货地址(微信地址)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox24"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gorders/giftPurchase" method="POST" name="form24" id="form24"> <div class="form-group"> <label class="control-label" for="g_id">g_id</label> <input type="integer" class="form-control input-sm" id="g_id" required placeholder="礼品id" name="g_id"> </div> <div class="form-group"> <label class="control-label" for="g_num">g_num</label> <input type="integer" class="form-control input-sm" id="g_num" required placeholder="礼品数量" name="g_num"> </div> <div class="form-group"> <label class="control-label" for="order_sn">order_sn</label> <input type="string" class="form-control input-sm" id="order_sn" required placeholder="礼品订单号" name="order_sn"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" required placeholder="收货地址(微信地址)" name="address"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="24">提交</button> <button type="reset" class="btn btn-info" rel="24">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers24"></pre> <pre id="response24"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample24"> <div class="row"> <div class="col-md-12"> <pre id="sample_response24">{ "code": 1, "msg": "提交成功", "time": "1553837090", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-25"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 礼品订单列表 <span class="text-muted">/api/gorders/giftOrderList</span></a> </h4> </div> <div id="collapseOne25" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab25"> <li class="active"><a href="#info25" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox25" data-toggle="tab">在线测试</a></li> <li><a href="#sample25" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info25"> <div class="well"> 礼品订单列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox25"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/gorders/giftOrderList" method="GET" name="form25" id="form25"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="25">提交</button> <button type="reset" class="btn btn-info" rel="25">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers25"></pre> <pre id="response25"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample25"> <div class="row"> <div class="col-md-12"> <pre id="sample_response25">{ "code": 1, "msg": "成功", "time": "1553837895", "data": [ { "id": 1, "order_sn": "gc_155358608729209200",//订单号 "username": "风起时呀",//用户名 "title": "礼品标题1",//礼品名称 "num": 1,//礼品数量 "createtime": "2019-03-26"//下单时间 }, { "id": 2, "order_sn": "gc_155358608729209201", "username": "风起时呀", "title": "礼品标题1", "num": 1, "createtime": "2019-03-26" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>分类接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-26"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 获取分类列表 <span class="text-muted">/api/index/getCategoryList</span></a> </h4> </div> <div id="collapseOne26" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab26"> <li class="active"><a href="#info26" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox26" data-toggle="tab">在线测试</a></li> <li><a href="#sample26" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info26"> <div class="well"> 获取分类列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox26"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/getCategoryList" method="GET" name="form26" id="form26"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="26">提交</button> <button type="reset" class="btn btn-info" rel="26">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers26"></pre> <pre id="response26"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample26"> <div class="row"> <div class="col-md-12"> <pre id="sample_response26">{ "code": 1, "msg": "成功", "time": "1553831004", "data": [ { "id": 1, "name": "废纸",//分类名称 "image": "/uploads/20190319/4a4c015ca04593f70a4836da45f2dea4.jpg" }, { "id": 2, "name": "废塑料", "image": "/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-27"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 获取首页banner图 <span class="text-muted">/api/index/getBanner</span></a> </h4> </div> <div id="collapseOne27" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab27"> <li class="active"><a href="#info27" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox27" data-toggle="tab">在线测试</a></li> <li><a href="#sample27" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info27"> <div class="well"> 获取首页banner图 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox27"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/getBanner" method="GET" name="form27" id="form27"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="27">提交</button> <button type="reset" class="btn btn-info" rel="27">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers27"></pre> <pre id="response27"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample27"> <div class="row"> <div class="col-md-12"> <pre id="sample_response27">{ "code": 1, "msg": "成功", "time": "1553831004", "data": [ { "id": 1, "image": "http://feipin.w.brotop.cn/uploads/20190319/4a4c015ca04593f70a4836da45f2dea4.jpg"//banner图 }, { "id": 2, "image": "http://feipin.w.brotop.cn/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-28"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 获取商城banner图 <span class="text-muted">/api/index/getGoodsBanner</span></a> </h4> </div> <div id="collapseOne28" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab28"> <li class="active"><a href="#info28" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox28" data-toggle="tab">在线测试</a></li> <li><a href="#sample28" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info28"> <div class="well"> 获取商城banner图 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox28"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/getGoodsBanner" method="GET" name="form28" id="form28"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="28">提交</button> <button type="reset" class="btn btn-info" rel="28">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers28"></pre> <pre id="response28"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample28"> <div class="row"> <div class="col-md-12"> <pre id="sample_response28">{ "code": 1, "msg": "成功", "time": "1553831004", "data": [ { "id": 1, "image": "http://feipin.w.brotop.cn/uploads/20190319/4a4c015ca04593f70a4836da45f2dea4.jpg"//banner图 }, { "id": 2, "image": "http://feipin.w.brotop.cn/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>订单消息接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-29"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 我的订单消息列表 <span class="text-muted">/api/omessages/orderMessageList</span></a> </h4> </div> <div id="collapseOne29" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab29"> <li class="active"><a href="#info29" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox29" data-toggle="tab">在线测试</a></li> <li><a href="#sample29" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info29"> <div class="well"> 我的订单消息列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox29"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/omessages/orderMessageList" method="GET" name="form29" id="form29"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="29">提交</button> <button type="reset" class="btn btn-info" rel="29">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers29"></pre> <pre id="response29"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample29"> <div class="row"> <div class="col-md-12"> <pre id="sample_response29">{ "code": 1, "msg": "成功", "time": "1553777266", "data":[ { "id": 1, "order_sn": "gc_155358608729209200",//订单号 "status": 3,//订单状态 0:待付款 1:待收货 2:待评价 3:已完成 "title": "我的垃圾商品1",//商品名称 "username": "风起时呀"//收货人 "is_read":0,//0:未读 1:已读 }, { "id": 3, "order_sn": "gc_155358608729212300", "status": 0, "title": "废品商品2", "username": "风起时呀", "is_read":0,//0:未读 1:已读 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>企业付款接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-30"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> <span class="text-muted">/api/paybank/getPuyKey</span></a> </h4> </div> <div id="collapseOne30" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab30"> <li class="active"><a href="#info30" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox30" data-toggle="tab">在线测试</a></li> <li><a href="#sample30" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info30"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox30"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/getPuyKey" method="get" name="form30" id="form30"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="30">提交</button> <button type="reset" class="btn btn-info" rel="30">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers30"></pre> <pre id="response30"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample30"> <div class="row"> <div class="col-md-12"> <pre id="sample_response30">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-31"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion31" href="#collapseOne31"> <span class="text-muted">/api/paybank/send</span></a> </h4> </div> <div id="collapseOne31" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab31"> <li class="active"><a href="#info31" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox31" data-toggle="tab">在线测试</a></li> <li><a href="#sample31" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info31"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox31"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/send" method="get" name="form31" id="form31"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="31">提交</button> <button type="reset" class="btn btn-info" rel="31">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers31"></pre> <pre id="response31"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample31"> <div class="row"> <div class="col-md-12"> <pre id="sample_response31">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-32"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> <span class="text-muted">/api/paybank/sign</span></a> </h4> </div> <div id="collapseOne32" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab32"> <li class="active"><a href="#info32" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox32" data-toggle="tab">在线测试</a></li> <li><a href="#sample32" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info32"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox32"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/sign" method="get" name="form32" id="form32"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="32">提交</button> <button type="reset" class="btn btn-info" rel="32">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers32"></pre> <pre id="response32"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample32"> <div class="row"> <div class="col-md-12"> <pre id="sample_response32">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-33"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion33" href="#collapseOne33"> <span class="text-muted">/api/paybank/ArrToXml</span></a> </h4> </div> <div id="collapseOne33" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab33"> <li class="active"><a href="#info33" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox33" data-toggle="tab">在线测试</a></li> <li><a href="#sample33" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info33"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox33"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/ArrToXml" method="get" name="form33" id="form33"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="33">提交</button> <button type="reset" class="btn btn-info" rel="33">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers33"></pre> <pre id="response33"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample33"> <div class="row"> <div class="col-md-12"> <pre id="sample_response33">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-34"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 获取签名 <span class="text-muted">/api/paybank/getSign</span></a> </h4> </div> <div id="collapseOne34" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab34"> <li class="active"><a href="#info34" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox34" data-toggle="tab">在线测试</a></li> <li><a href="#sample34" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info34"> <div class="well"> 获取签名 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>arr</td> <td>array</td> <td>是</td> <td></td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox34"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/getSign" method="get" name="form34" id="form34"> <div class="form-group"> <label class="control-label" for="arr">arr</label> <input type="array" class="form-control input-sm" id="arr" required placeholder="" name="arr"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="34">提交</button> <button type="reset" class="btn btn-info" rel="34">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers34"></pre> <pre id="response34"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample34"> <div class="row"> <div class="col-md-12"> <pre id="sample_response34">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-35"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 获取带签名的数组 <span class="text-muted">/api/paybank/setSign</span></a> </h4> </div> <div id="collapseOne35" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab35"> <li class="active"><a href="#info35" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox35" data-toggle="tab">在线测试</a></li> <li><a href="#sample35" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info35"> <div class="well"> 获取带签名的数组 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>arr</td> <td>array</td> <td>是</td> <td></td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox35"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/setSign" method="get" name="form35" id="form35"> <div class="form-group"> <label class="control-label" for="arr">arr</label> <input type="array" class="form-control input-sm" id="arr" required placeholder="" name="arr"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="35">提交</button> <button type="reset" class="btn btn-info" rel="35">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers35"></pre> <pre id="response35"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample35"> <div class="row"> <div class="col-md-12"> <pre id="sample_response35">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-36"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion36" href="#collapseOne36"> 数组转URL格式的字符串 <span class="text-muted">/api/paybank/arrToUrl</span></a> </h4> </div> <div id="collapseOne36" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab36"> <li class="active"><a href="#info36" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox36" data-toggle="tab">在线测试</a></li> <li><a href="#sample36" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info36"> <div class="well"> 数组转URL格式的字符串 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>arr</td> <td>array</td> <td>是</td> <td></td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox36"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/arrToUrl" method="get" name="form36" id="form36"> <div class="form-group"> <label class="control-label" for="arr">arr</label> <input type="array" class="form-control input-sm" id="arr" required placeholder="" name="arr"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="36">提交</button> <button type="reset" class="btn btn-info" rel="36">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers36"></pre> <pre id="response36"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample36"> <div class="row"> <div class="col-md-12"> <pre id="sample_response36">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-37"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion37" href="#collapseOne37"> <span class="text-muted">/api/paybank/XmlToArr</span></a> </h4> </div> <div id="collapseOne37" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab37"> <li class="active"><a href="#info37" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox37" data-toggle="tab">在线测试</a></li> <li><a href="#sample37" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info37"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox37"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/XmlToArr" method="get" name="form37" id="form37"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="37">提交</button> <button type="reset" class="btn btn-info" rel="37">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers37"></pre> <pre id="response37"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample37"> <div class="row"> <div class="col-md-12"> <pre id="sample_response37">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-38"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion38" href="#collapseOne38"> <span class="text-muted">/api/paybank/postData</span></a> </h4> </div> <div id="collapseOne38" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab38"> <li class="active"><a href="#info38" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox38" data-toggle="tab">在线测试</a></li> <li><a href="#sample38" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info38"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox38"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/paybank/postData" method="get" name="form38" id="form38"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="38">提交</button> <button type="reset" class="btn btn-info" rel="38">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers38"></pre> <pre id="response38"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample38"> <div class="row"> <div class="col-md-12"> <pre id="sample_response38">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>个人信息接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-39"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion39" href="#collapseOne39"> 获取会员信息 <span class="text-muted">/api/person/getUserInfo</span></a> </h4> </div> <div id="collapseOne39" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab39"> <li class="active"><a href="#info39" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox39" data-toggle="tab">在线测试</a></li> <li><a href="#sample39" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info39"> <div class="well"> 获取会员信息 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox39"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/getUserInfo" method="GET" name="form39" id="form39"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="39">提交</button> <button type="reset" class="btn btn-info" rel="39">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers39"></pre> <pre id="response39"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample39"> <div class="row"> <div class="col-md-12"> <pre id="sample_response39">{ "code": 1, "msg": "成功", "time": "1553838039", "data": { "id": 26, "username": "风起时呀",//用户名 "mobile": "",//联系方式 "type": 0,//类型 0:个人 1:企业 "address": "", //上门地址 "id_num": "",//身份证号 "id_img": "",//身份证件 "company_name": "",//公司名字 "license_num": "",//公司编码 "license_img": ""//公司营业执照 "money":100//账户余额 "avatar"://头像 "start"://是否开工 0:下班 1:上班 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-40"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion40" href="#collapseOne40"> 修改会员信息 <span class="text-muted">/api/person/updateInfo</span></a> </h4> </div> <div id="collapseOne40" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab40"> <li class="active"><a href="#info40" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox40" data-toggle="tab">在线测试</a></li> <li><a href="#sample40" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info40"> <div class="well"> 修改会员信息 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>string</td> <td>是</td> <td>用户名(姓名)</td> </tr> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>联系电话</td> </tr> <tr> <td>address</td> <td>string</td> <td>是</td> <td>上门地址</td> </tr> <tr> <td>type</td> <td>integer</td> <td>是</td> <td>用户类型(0:个人,1企业)</td> </tr> <tr> <td>id_num</td> <td>string</td> <td>是</td> <td>身份证号(个人必须)</td> </tr> <tr> <td>id_img</td> <td>string</td> <td>是</td> <td>身份证件(个人必须)</td> </tr> <tr> <td>company_name</td> <td>string</td> <td>是</td> <td>公司名称(企业必须)</td> </tr> <tr> <td>license_num</td> <td>string</td> <td>是</td> <td>公司编号(企业必须)</td> </tr> <tr> <td>license_img</td> <td>string</td> <td>是</td> <td>公司营业执照(企业必须)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox40"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/updateInfo" method="POST" name="form40" id="form40"> <div class="form-group"> <label class="control-label" for="username">username</label> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名(姓名)" name="username"> </div> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="联系电话" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" required placeholder="上门地址" name="address"> </div> <div class="form-group"> <label class="control-label" for="type">type</label> <input type="integer" class="form-control input-sm" id="type" required placeholder="用户类型(0:个人,1企业)" name="type"> </div> <div class="form-group"> <label class="control-label" for="id_num">id_num</label> <input type="string" class="form-control input-sm" id="id_num" required placeholder="身份证号(个人必须)" name="id_num"> </div> <div class="form-group"> <label class="control-label" for="id_img">id_img</label> <input type="string" class="form-control input-sm" id="id_img" required placeholder="身份证件(个人必须)" name="id_img"> </div> <div class="form-group"> <label class="control-label" for="company_name">company_name</label> <input type="string" class="form-control input-sm" id="company_name" required placeholder="公司名称(企业必须)" name="company_name"> </div> <div class="form-group"> <label class="control-label" for="license_num">license_num</label> <input type="string" class="form-control input-sm" id="license_num" required placeholder="公司编号(企业必须)" name="license_num"> </div> <div class="form-group"> <label class="control-label" for="license_img">license_img</label> <input type="string" class="form-control input-sm" id="license_img" required placeholder="公司营业执照(企业必须)" name="license_img"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="40">提交</button> <button type="reset" class="btn btn-info" rel="40">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers40"></pre> <pre id="response40"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample40"> <div class="row"> <div class="col-md-12"> <pre id="sample_response40">{ "code": 1, "msg": "保存成功", "time": "1553838137", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-41"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion41" href="#collapseOne41"> 上传文件 <span class="text-muted">/api/person/upload</span></a> </h4> </div> <div id="collapseOne41" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab41"> <li class="active"><a href="#info41" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox41" data-toggle="tab">在线测试</a></li> <li><a href="#sample41" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info41"> <div class="well"> 上传文件 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>images[]</td> <td>file</td> <td>是</td> <td>上传文件(图片)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox41"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/upload" method="POST" name="form41" id="form41"> <div class="form-group"> <label class="control-label" for="images[]">images[]</label> <input type="file" class="form-control input-sm" id="images[]" required placeholder="上传文件(图片)" name="images[]"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="41">提交</button> <button type="reset" class="btn btn-info" rel="41">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers41"></pre> <pre id="response41"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample41"> <div class="row"> <div class="col-md-12"> <pre id="sample_response41">{ "code": 1, "msg": "上传成功", "time": "1553777266", "data":[ { "/uploads/20190328/0179b6b111307ef8be3c832ef808e1c1.jpg,/uploads/20190328/42bbc2f2692023d43957c3ee0b580443.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-42"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion42" href="#collapseOne42"> 账单明细 <span class="text-muted">/api/person/accountDetail</span></a> </h4> </div> <div id="collapseOne42" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab42"> <li class="active"><a href="#info42" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox42" data-toggle="tab">在线测试</a></li> <li><a href="#sample42" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info42"> <div class="well"> 账单明细 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox42"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/accountDetail" method="GET" name="form42" id="form42"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="42">提交</button> <button type="reset" class="btn btn-info" rel="42">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers42"></pre> <pre id="response42"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample42"> <div class="row"> <div class="col-md-12"> <pre id="sample_response42">{ "code": 1, "msg": "成功", "time": "1554270371", "data": [ { "id": 1, "type": 0,//类型 0:充值 1:提现 "money": 0.01,//充值或提现金额 "createtime": "2019-04-03 13:03:57"//时间 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-43"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion43" href="#collapseOne43"> 绑定银行卡 <span class="text-muted">/api/person/bindBank</span></a> </h4> </div> <div id="collapseOne43" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab43"> <li class="active"><a href="#info43" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox43" data-toggle="tab">在线测试</a></li> <li><a href="#sample43" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info43"> <div class="well"> 绑定银行卡 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>bank_num</td> <td>integer</td> <td>是</td> <td>银行卡号</td> </tr> <tr> <td>open_bank</td> <td>string</td> <td>是</td> <td>开户行</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox43"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/bindBank" method="POST" name="form43" id="form43"> <div class="form-group"> <label class="control-label" for="bank_num">bank_num</label> <input type="integer" class="form-control input-sm" id="bank_num" required placeholder="银行卡号" name="bank_num"> </div> <div class="form-group"> <label class="control-label" for="open_bank">open_bank</label> <input type="string" class="form-control input-sm" id="open_bank" required placeholder="开户行" name="open_bank"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="43">提交</button> <button type="reset" class="btn btn-info" rel="43">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers43"></pre> <pre id="response43"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample43"> <div class="row"> <div class="col-md-12"> <pre id="sample_response43">{ "code": 1, "msg": "保存成功", "time": "1554270371", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-44"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion44" href="#collapseOne44"> 银行卡列表 <span class="text-muted">/api/person/bankList</span></a> </h4> </div> <div id="collapseOne44" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab44"> <li class="active"><a href="#info44" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox44" data-toggle="tab">在线测试</a></li> <li><a href="#sample44" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info44"> <div class="well"> 银行卡列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox44"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/bankList" method="GET" name="form44" id="form44"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="44">提交</button> <button type="reset" class="btn btn-info" rel="44">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers44"></pre> <pre id="response44"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample44"> <div class="row"> <div class="col-md-12"> <pre id="sample_response44">[ { "id": 3,//银行卡id "bank_num": "6228480028807779179",//银行卡号 "open_bank": "农业银行"//开户行 }, { "id": 7, "bank_num": "6228480028306448000", "open_bank": "open_bank" } ]</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-45"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion45" href="#collapseOne45"> 修改银行卡 <span class="text-muted">/api/person/updateBank</span></a> </h4> </div> <div id="collapseOne45" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab45"> <li class="active"><a href="#info45" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox45" data-toggle="tab">在线测试</a></li> <li><a href="#sample45" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info45"> <div class="well"> 修改银行卡 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>银行卡id</td> </tr> <tr> <td>bank_num</td> <td>integer</td> <td>是</td> <td>银行卡号</td> </tr> <tr> <td>open_bank</td> <td>string</td> <td>是</td> <td>开户行</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox45"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/updateBank" method="POST" name="form45" id="form45"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="银行卡id" name="id"> </div> <div class="form-group"> <label class="control-label" for="bank_num">bank_num</label> <input type="integer" class="form-control input-sm" id="bank_num" required placeholder="银行卡号" name="bank_num"> </div> <div class="form-group"> <label class="control-label" for="open_bank">open_bank</label> <input type="string" class="form-control input-sm" id="open_bank" required placeholder="开户行" name="open_bank"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="45">提交</button> <button type="reset" class="btn btn-info" rel="45">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers45"></pre> <pre id="response45"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample45"> <div class="row"> <div class="col-md-12"> <pre id="sample_response45">{ "code": 1, "msg": "修改成功", "time": "1555652055", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-46"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion46" href="#collapseOne46"> 根据规则增加积分 <span class="text-muted">/api/person/getScore</span></a> </h4> </div> <div id="collapseOne46" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab46"> <li class="active"><a href="#info46" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox46" data-toggle="tab">在线测试</a></li> <li><a href="#sample46" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info46"> <div class="well"> 根据规则增加积分 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td></td> <td>$share_uid</td> <td>是</td> <td></td> </tr> <tr> <td></td> <td>$type</td> <td>是</td> <td></td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox46"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/getScore" method="get" name="form46" id="form46"> <div class="form-group"> <label class="control-label" for=""></label> <input type="$share_uid" class="form-control input-sm" id="" required placeholder="" name=""> </div> <div class="form-group"> <label class="control-label" for=""></label> <input type="$type" class="form-control input-sm" id="" required placeholder="" name=""> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="46">提交</button> <button type="reset" class="btn btn-info" rel="46">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers46"></pre> <pre id="response46"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample46"> <div class="row"> <div class="col-md-12"> <pre id="sample_response46">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-47"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion47" href="#collapseOne47"> <span class="text-muted">/api/person/getPersonScore</span></a> </h4> </div> <div id="collapseOne47" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab47"> <li class="active"><a href="#info47" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox47" data-toggle="tab">在线测试</a></li> <li><a href="#sample47" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info47"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox47"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/getPersonScore" method="get" name="form47" id="form47"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="47">提交</button> <button type="reset" class="btn btn-info" rel="47">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers47"></pre> <pre id="response47"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample47"> <div class="row"> <div class="col-md-12"> <pre id="sample_response47">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-48"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion48" href="#collapseOne48"> 开工 <span class="text-muted">/api/person/start</span></a> </h4> </div> <div id="collapseOne48" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab48"> <li class="active"><a href="#info48" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox48" data-toggle="tab">在线测试</a></li> <li><a href="#sample48" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info48"> <div class="well"> 开工 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>status</td> <td>integer</td> <td>是</td> <td>是否开工 0:下班;1:上班</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox48"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/person/start" method="POST" name="form48" id="form48"> <div class="form-group"> <label class="control-label" for="status">status</label> <input type="integer" class="form-control input-sm" id="status" required placeholder="是否开工 0:下班;1:上班" name="status"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="48">提交</button> <button type="reset" class="btn btn-info" rel="48">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers48"></pre> <pre id="response48"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample48"> <div class="row"> <div class="col-md-12"> <pre id="sample_response48">{ "code": 1, "msg": "成功", "time": "1555652055", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>商品订单接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-49"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion49" href="#collapseOne49"> 从购物车选中结算 <span class="text-muted">/api/porders/settle</span></a> </h4> </div> <div id="collapseOne49" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab49"> <li class="active"><a href="#info49" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox49" data-toggle="tab">在线测试</a></li> <li><a href="#sample49" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info49"> <div class="well"> 从购物车选中结算 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>p_id</td> <td>string</td> <td>是</td> <td>商品id(以逗号隔开组成字符串</td> </tr> <tr> <td>p_num</td> <td>string</td> <td>是</td> <td>商品数量(以逗号隔开组成字符串)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox49"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/settle" method="GET" name="form49" id="form49"> <div class="form-group"> <label class="control-label" for="p_id">p_id</label> <input type="string" class="form-control input-sm" id="p_id" required placeholder="商品id(以逗号隔开组成字符串" name="p_id"> </div> <div class="form-group"> <label class="control-label" for="p_num">p_num</label> <input type="string" class="form-control input-sm" id="p_num" required placeholder="商品数量(以逗号隔开组成字符串)" name="p_num"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="49">提交</button> <button type="reset" class="btn btn-info" rel="49">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers49"></pre> <pre id="response49"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample49"> <div class="row"> <div class="col-md-12"> <pre id="sample_response49">{ "code": 1, "msg": "成功", "time": "1553836874", "data": { "user": { "username": "风起时呀",//收货用户名 "mobile": ""//联系方式 收货地址:微信地址(由小程序自己调取,这里不提供) }, "orders": [ { "id": 1, "title": "我的垃圾商品1",//订单标题 "price": 500,//订单价格 "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg", "username": "admin",//发货人 "mobile": "13888888888",//发货人联系方式 "address": "河南省邓州市",//发货地址 "num": "5",//订单数量 "order_sn": "gc_155358129765296600"//订单编号 }, { "id": 2, "title": "废弃家电", "price": 1200.08, "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg", "username": "test1", "mobile": "13752011725", "address": "河南省邓州市2", "num": "8", "order_sn": "gc_155383687460739100" } ], "total_price": "12209.09"//总价格 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-50"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion50" href="#collapseOne50"> 提交订单 <span class="text-muted">/api/porders/purchase</span></a> </h4> </div> <div id="collapseOne50" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab50"> <li class="active"><a href="#info50" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox50" data-toggle="tab">在线测试</a></li> <li><a href="#sample50" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info50"> <div class="well"> 提交订单 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>p_id</td> <td>string</td> <td>是</td> <td>商品id(以逗号隔开组成字符串</td> </tr> <tr> <td>p_num</td> <td>string</td> <td>是</td> <td>商品数量(以逗号隔开组成字符串)</td> </tr> <tr> <td>order_sn</td> <td>string</td> <td>是</td> <td>订单号(以逗号隔开组成字符串</td> </tr> <tr> <td>address</td> <td>string</td> <td>是</td> <td>收货地址(微信地址)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox50"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/purchase" method="POST" name="form50" id="form50"> <div class="form-group"> <label class="control-label" for="p_id">p_id</label> <input type="string" class="form-control input-sm" id="p_id" required placeholder="商品id(以逗号隔开组成字符串" name="p_id"> </div> <div class="form-group"> <label class="control-label" for="p_num">p_num</label> <input type="string" class="form-control input-sm" id="p_num" required placeholder="商品数量(以逗号隔开组成字符串)" name="p_num"> </div> <div class="form-group"> <label class="control-label" for="order_sn">order_sn</label> <input type="string" class="form-control input-sm" id="order_sn" required placeholder="订单号(以逗号隔开组成字符串" name="order_sn"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" required placeholder="收货地址(微信地址)" name="address"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="50">提交</button> <button type="reset" class="btn btn-info" rel="50">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers50"></pre> <pre id="response50"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample50"> <div class="row"> <div class="col-md-12"> <pre id="sample_response50">{ "code": 1, "msg": "提交成功", "time": "1553837090", "data": [ 'pay_order_sn'=> "155359076329654300172"//支付订单号 ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-51"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion51" href="#collapseOne51"> 商品订单列表 <span class="text-muted">/api/porders/goodsOrderList</span></a> </h4> </div> <div id="collapseOne51" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab51"> <li class="active"><a href="#info51" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox51" data-toggle="tab">在线测试</a></li> <li><a href="#sample51" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info51"> <div class="well"> 商品订单列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>status</td> <td>integer</td> <td>是</td> <td>商品状态 -1:全部 0:待付款 1:待收货 2:待评价 3:已完成</td> </tr> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>页码分页</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox51"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/goodsOrderList" method="GET" name="form51" id="form51"> <div class="form-group"> <label class="control-label" for="status">status</label> <input type="integer" class="form-control input-sm" id="status" required placeholder="商品状态 -1:全部 0:待付款 1:待收货 2:待评价 3:已完成" name="status"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="页码分页" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="51">提交</button> <button type="reset" class="btn btn-info" rel="51">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers51"></pre> <pre id="response51"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample51"> <div class="row"> <div class="col-md-12"> <pre id="sample_response51">{ "code": 1, "msg": "成功", "time": "1553837175", "data": [ { "id": 1, "order_sn": "gc_155358608729209200",//订单号 "status": 0,//状态码 0:待付款 1:待收货 2:待评价 3:已完成 "title": "我的垃圾商品1",//商品标题 "unit_price": 500,//商品单价 "num": 5,//商品数量 "p_id":2,//商品id "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg" }, { "id": 2, "order_sn": "gc_155358608729211100", "status": 0, "title": "废弃家电", "unit_price": 1200.08, "num": 9, "images": "/uploads/20190319/8e17442bd500a4842d456a95ec022826.jpg,/uploads/20190319/4d82786ab0f7866110519f221cbf29a6.jpg", "p_id": 2 }, { "id": 3, "order_sn": "gc_155358608729212300", "status": 0, "title": "废品商品2", "unit_price": 12.05, "num": 2, "images": "/uploads/20190328/c7eab178376c71ae1892cd23a1fb5779.jpg", "p_id": 3 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-52"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion52" href="#collapseOne52"> 取消商品订单 <span class="text-muted">/api/porders/cancelGoodsOrder</span></a> </h4> </div> <div id="collapseOne52" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab52"> <li class="active"><a href="#info52" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox52" data-toggle="tab">在线测试</a></li> <li><a href="#sample52" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info52"> <div class="well"> 取消商品订单 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品订单id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox52"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/cancelGoodsOrder" method="GET" name="form52" id="form52"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品订单id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="52">提交</button> <button type="reset" class="btn btn-info" rel="52">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers52"></pre> <pre id="response52"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample52"> <div class="row"> <div class="col-md-12"> <pre id="sample_response52">{ "code": 1, "msg": "取消成功", "time": "1553837090", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-53"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 收货商品订单 <span class="text-muted">/api/porders/receiveGoodsOrder</span></a> </h4> </div> <div id="collapseOne53" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab53"> <li class="active"><a href="#info53" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox53" data-toggle="tab">在线测试</a></li> <li><a href="#sample53" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info53"> <div class="well"> 收货商品订单 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品订单id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox53"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/receiveGoodsOrder" method="GET" name="form53" id="form53"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品订单id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="53">提交</button> <button type="reset" class="btn btn-info" rel="53">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers53"></pre> <pre id="response53"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample53"> <div class="row"> <div class="col-md-12"> <pre id="sample_response53">{ "code": 1, "msg": "收货成功", "time": "1553837090", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-54"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion54" href="#collapseOne54"> 商品订单详情 <span class="text-muted">/api/porders/goodsOrderDetail</span></a> </h4> </div> <div id="collapseOne54" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab54"> <li class="active"><a href="#info54" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox54" data-toggle="tab">在线测试</a></li> <li><a href="#sample54" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info54"> <div class="well"> 商品订单详情 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>商品订单id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox54"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/porders/goodsOrderDetail" method="GET" name="form54" id="form54"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="商品订单id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="54">提交</button> <button type="reset" class="btn btn-info" rel="54">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers54"></pre> <pre id="response54"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample54"> <div class="row"> <div class="col-md-12"> <pre id="sample_response54">{ "code": 1, "msg": "成功", "time": "1553837375", "data": [ { "id": 1, "status": 3,//订单状态 0:待付款 1:待收货 2:待评价 3:已完成 "order_sn": "gc_155358608729209200",//订单号 "username": "风起时呀",//收货人 "mobile": "",//联系方式 "address": "微信地址",//地址 "title": "我的垃圾商品1",//商品名称 "num": 5,//商品数量 "total_price": 2500,//总金额 "createtime": "2019-03-26"//下单时间 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>常见问题接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-55"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 常见问题列表 <span class="text-muted">/api/problems/getProblemList</span></a> </h4> </div> <div id="collapseOne55" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab55"> <li class="active"><a href="#info55" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox55" data-toggle="tab">在线测试</a></li> <li><a href="#sample55" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info55"> <div class="well"> 常见问题列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox55"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/problems/getProblemList" method="GET" name="form55" id="form55"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="55">提交</button> <button type="reset" class="btn btn-info" rel="55">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers55"></pre> <pre id="response55"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample55"> <div class="row"> <div class="col-md-12"> <pre id="sample_response55">{ "code": 1, "msg": "成功", "time": "1553777266", "data":[ { "id": 1, "title": "如何回收?"//标题 }, { "id": 3, "title": "如何购买废品?" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-56"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> 常见问题详情 <span class="text-muted">/api/problems/problemDetail</span></a> </h4> </div> <div id="collapseOne56" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab56"> <li class="active"><a href="#info56" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox56" data-toggle="tab">在线测试</a></li> <li><a href="#sample56" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info56"> <div class="well"> 常见问题列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>常见问题id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox56"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/problems/problemDetail" method="GET" name="form56" id="form56"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="常见问题id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="56">提交</button> <button type="reset" class="btn btn-info" rel="56">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers56"></pre> <pre id="response56"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample56"> <div class="row"> <div class="col-md-12"> <pre id="sample_response56">{ "code": 1, "msg": "成功", "time": "1553777266", "data":[ { "id": 1, "title": "如何回收?",//标题 "description": "废杂铜的种类繁多,回收利用技术和工艺也有所不同",//详情 "image": "/uploads/20190320/4d82786ab0f7866110519f221cbf29a6.jpg" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2></h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-57"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion57" href="#collapseOne57"> <span class="text-muted">/api/rsa/get_private_key</span></a> </h4> </div> <div id="collapseOne57" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab57"> <li class="active"><a href="#info57" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox57" data-toggle="tab">在线测试</a></li> <li><a href="#sample57" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info57"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox57"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/get_private_key" method="get" name="form57" id="form57"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="57">提交</button> <button type="reset" class="btn btn-info" rel="57">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers57"></pre> <pre id="response57"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample57"> <div class="row"> <div class="col-md-12"> <pre id="sample_response57">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-58"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion58" href="#collapseOne58"> <span class="text-muted">/api/rsa/get_public_key</span></a> </h4> </div> <div id="collapseOne58" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab58"> <li class="active"><a href="#info58" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox58" data-toggle="tab">在线测试</a></li> <li><a href="#sample58" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info58"> <div class="well"> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox58"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/get_public_key" method="get" name="form58" id="form58"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="58">提交</button> <button type="reset" class="btn btn-info" rel="58">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers58"></pre> <pre id="response58"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample58"> <div class="row"> <div class="col-md-12"> <pre id="sample_response58">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-59"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion59" href="#collapseOne59"> 生成一对公私钥 成功返回 公私钥数组 失败 返回 false <span class="text-muted">/api/rsa/create_key</span></a> </h4> </div> <div id="collapseOne59" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab59"> <li class="active"><a href="#info59" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox59" data-toggle="tab">在线测试</a></li> <li><a href="#sample59" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info59"> <div class="well"> 生成一对公私钥 成功返回 公私钥数组 失败 返回 false </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox59"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/create_key" method="get" name="form59" id="form59"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="59">提交</button> <button type="reset" class="btn btn-info" rel="59">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers59"></pre> <pre id="response59"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample59"> <div class="row"> <div class="col-md-12"> <pre id="sample_response59">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-60"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion60" href="#collapseOne60"> 用私钥加密 <span class="text-muted">/api/rsa/private_encrypt</span></a> </h4> </div> <div id="collapseOne60" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab60"> <li class="active"><a href="#info60" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox60" data-toggle="tab">在线测试</a></li> <li><a href="#sample60" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info60"> <div class="well"> 用私钥加密 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox60"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/private_encrypt" method="get" name="form60" id="form60"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="60">提交</button> <button type="reset" class="btn btn-info" rel="60">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers60"></pre> <pre id="response60"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample60"> <div class="row"> <div class="col-md-12"> <pre id="sample_response60">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-61"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion61" href="#collapseOne61"> 解密 私钥加密后的密文 <span class="text-muted">/api/rsa/public_decrypt</span></a> </h4> </div> <div id="collapseOne61" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab61"> <li class="active"><a href="#info61" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox61" data-toggle="tab">在线测试</a></li> <li><a href="#sample61" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info61"> <div class="well"> 解密 私钥加密后的密文 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox61"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/public_decrypt" method="get" name="form61" id="form61"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="61">提交</button> <button type="reset" class="btn btn-info" rel="61">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers61"></pre> <pre id="response61"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample61"> <div class="row"> <div class="col-md-12"> <pre id="sample_response61">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-62"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion62" href="#collapseOne62"> 用公钥加密 <span class="text-muted">/api/rsa/public_encrypt</span></a> </h4> </div> <div id="collapseOne62" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab62"> <li class="active"><a href="#info62" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox62" data-toggle="tab">在线测试</a></li> <li><a href="#sample62" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info62"> <div class="well"> 用公钥加密 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox62"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/public_encrypt" method="get" name="form62" id="form62"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="62">提交</button> <button type="reset" class="btn btn-info" rel="62">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers62"></pre> <pre id="response62"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample62"> <div class="row"> <div class="col-md-12"> <pre id="sample_response62">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-63"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion63" href="#collapseOne63"> 解密 公钥加密后的密文 <span class="text-muted">/api/rsa/private_decrypt</span></a> </h4> </div> <div id="collapseOne63" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab63"> <li class="active"><a href="#info63" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox63" data-toggle="tab">在线测试</a></li> <li><a href="#sample63" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info63"> <div class="well"> 解密 公钥加密后的密文 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox63"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/rsa/private_decrypt" method="get" name="form63" id="form63"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="63">提交</button> <button type="reset" class="btn btn-info" rel="63">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers63"></pre> <pre id="response63"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample63"> <div class="row"> <div class="col-md-12"> <pre id="sample_response63">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>卖废品接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-64"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion64" href="#collapseOne64"> 卖废品信息添加 <span class="text-muted">/api/sell/addSell</span></a> </h4> </div> <div id="collapseOne64" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab64"> <li class="active"><a href="#info64" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox64" data-toggle="tab">在线测试</a></li> <li><a href="#sample64" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info64"> <div class="well"> 卖废品信息添加 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>fullname</td> <td>string</td> <td>是</td> <td>姓名</td> </tr> <tr> <td>address</td> <td>string</td> <td>是</td> <td>地址</td> </tr> <tr> <td>description</td> <td>string</td> <td>是</td> <td>废品描述</td> </tr> <tr> <td>pre_date</td> <td>string</td> <td>是</td> <td>预约日期</td> </tr> <tr> <td>pre_time</td> <td>string</td> <td>是</td> <td>预约时间</td> </tr> <tr> <td>images</td> <td>string</td> <td>是</td> <td>废品图片</td> </tr> <tr> <td>share_uid</td> <td>string</td> <td>否</td> <td>分享人uid</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox64"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sell/addSell" method="POST" name="form64" id="form64"> <div class="form-group"> <label class="control-label" for="fullname">fullname</label> <input type="string" class="form-control input-sm" id="fullname" required placeholder="姓名" name="fullname"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" required placeholder="地址" name="address"> </div> <div class="form-group"> <label class="control-label" for="description">description</label> <input type="string" class="form-control input-sm" id="description" required placeholder="废品描述" name="description"> </div> <div class="form-group"> <label class="control-label" for="pre_date">pre_date</label> <input type="string" class="form-control input-sm" id="pre_date" required placeholder="预约日期" name="pre_date"> </div> <div class="form-group"> <label class="control-label" for="pre_time">pre_time</label> <input type="string" class="form-control input-sm" id="pre_time" required placeholder="预约时间" name="pre_time"> </div> <div class="form-group"> <label class="control-label" for="images">images</label> <input type="string" class="form-control input-sm" id="images" required placeholder="废品图片" name="images"> </div> <div class="form-group"> <label class="control-label" for="share_uid">share_uid</label> <input type="string" class="form-control input-sm" id="share_uid" placeholder="分享人uid" name="share_uid"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="64">提交</button> <button type="reset" class="btn btn-info" rel="64">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers64"></pre> <pre id="response64"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample64"> <div class="row"> <div class="col-md-12"> <pre id="sample_response64">{ "code": 1, "msg": "保存成功", "time": "1553827374", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>系统消息接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-65"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion65" href="#collapseOne65"> 系统消息列表 <span class="text-muted">/api/smessages/getMessageList</span></a> </h4> </div> <div id="collapseOne65" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab65"> <li class="active"><a href="#info65" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox65" data-toggle="tab">在线测试</a></li> <li><a href="#sample65" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info65"> <div class="well"> 系统消息列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox65"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/smessages/getMessageList" method="GET" name="form65" id="form65"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="65">提交</button> <button type="reset" class="btn btn-info" rel="65">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers65"></pre> <pre id="response65"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample65"> <div class="row"> <div class="col-md-12"> <pre id="sample_response65">{ "code": 1, "msg": "成功", "time": "1553777266", "data":{ "id": 1, "title": "您有一个系统消息提示,请及时查看。",//提现系统消息标题 "type": 1,//类型 0:充值,1:提现 "is_read": 0 //系统消息是否已读 0:未读,1:已读 }, { "id": 2, "title": "您有一个系统消息提示,请及时查看。",//提现系统消息标题 "type": 1,//类型 0:充值,1:提现 "is_read": 0 //系统消息是否已读 0:未读,1:已读 }, }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-66"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion66" href="#collapseOne66"> 系统消息详情 <span class="text-muted">/api/smessages/messageDetail</span></a> </h4> </div> <div id="collapseOne66" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab66"> <li class="active"><a href="#info66" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox66" data-toggle="tab">在线测试</a></li> <li><a href="#sample66" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info66"> <div class="well"> 系统消息详情 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>integer</td> <td>是</td> <td>系统消息id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox66"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/smessages/messageDetail" method="GET" name="form66" id="form66"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="integer" class="form-control input-sm" id="id" required placeholder="系统消息id" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="66">提交</button> <button type="reset" class="btn btn-info" rel="66">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers66"></pre> <pre id="response66"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample66"> <div class="row"> <div class="col-md-12"> <pre id="sample_response66">{ "code": 1, "msg": "成功", "time": "1554262435", "data": [ { "id": 1, "title": "您有一个系统消息提示,请及时查看。", "type": 1,//类型 0:充值,1:提现 "money": 0.01,//充值或提现金额 "createtime": "2019-04-03 11:00:29"//时间 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>手机短信接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-67"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion67" href="#collapseOne67"> 发送验证码 <span class="text-muted">/api/sms/send</span></a> </h4> </div> <div id="collapseOne67" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab67"> <li class="active"><a href="#info67" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox67" data-toggle="tab">在线测试</a></li> <li><a href="#sample67" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info67"> <div class="well"> 发送验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件名称</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox67"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/send" method="get" name="form67" id="form67"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="67">提交</button> <button type="reset" class="btn btn-info" rel="67">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers67"></pre> <pre id="response67"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample67"> <div class="row"> <div class="col-md-12"> <pre id="sample_response67">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-68"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion68" href="#collapseOne68"> 检测验证码 <span class="text-muted">/api/sms/check</span></a> </h4> </div> <div id="collapseOne68" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab68"> <li class="active"><a href="#info68" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox68" data-toggle="tab">在线测试</a></li> <li><a href="#sample68" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info68"> <div class="well"> 检测验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件名称</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox68"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/sms/check" method="get" name="form68" id="form68"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件名称" name="event"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="68">提交</button> <button type="reset" class="btn btn-info" rel="68">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers68"></pre> <pre id="response68"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample68"> <div class="row"> <div class="col-md-12"> <pre id="sample_response68">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>我的团队接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-69"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion69" href="#collapseOne69"> 我的团队列表 <span class="text-muted">/api/teams/myTeam</span></a> </h4> </div> <div id="collapseOne69" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab69"> <li class="active"><a href="#info69" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox69" data-toggle="tab">在线测试</a></li> <li><a href="#sample69" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info69"> <div class="well"> 我的团队列表 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox69"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/teams/myTeam" method="GET" name="form69" id="form69"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="69">提交</button> <button type="reset" class="btn btn-info" rel="69">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers69"></pre> <pre id="response69"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample69"> <div class="row"> <div class="col-md-12"> <pre id="sample_response69">{ "code": 1, "msg": "成功", "time": "1553829068", "data": [ { "uid": 1,//uid "username": "admin",//用户名 "avatar": "/uploads/20190318/c7eab178376c71ae1892cd23a1fb5779.jpg",//头像 "createtime": "2019-03-29",//加入时间 "score_sum": "100"//总积分 }, { "uid": 2, "username": "test", "avatar": "/uploads/20190318/4d82786ab0f7866110519f221cbf29a6.jpg", "createtime": "2019-03-29", "score_sum": "50" } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-70"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion70" href="#collapseOne70"> 我的团队积分明细 <span class="text-muted">/api/teams/teamDetail</span></a> </h4> </div> <div id="collapseOne70" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab70"> <li class="active"><a href="#info70" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox70" data-toggle="tab">在线测试</a></li> <li><a href="#sample70" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info70"> <div class="well"> 我的团队积分明细 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>off_uid</td> <td>integer</td> <td>是</td> <td>下线用户uid</td> </tr> <tr> <td>page</td> <td>integer</td> <td>是</td> <td>分页页码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox70"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/teams/teamDetail" method="GET" name="form70" id="form70"> <div class="form-group"> <label class="control-label" for="off_uid">off_uid</label> <input type="integer" class="form-control input-sm" id="off_uid" required placeholder="下线用户uid" name="off_uid"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="integer" class="form-control input-sm" id="page" required placeholder="分页页码" name="page"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="70">提交</button> <button type="reset" class="btn btn-info" rel="70">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers70"></pre> <pre id="response70"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample70"> <div class="row"> <div class="col-md-12"> <pre id="sample_response70">{ "code": 1, "msg": "成功", "time": "1553830349", "data": [ { "uid": 1,//下线uid "username": "admin",//用户名 "avatar": "/uploads/20190318/c7eab178376c71ae1892cd23a1fb5779.jpg",//头像 "type": 0,//类型 0:提交预约单 1:购买 "createtime": "2019-03-29",//加入时间 "score": 50//积分 }, { "uid": 1, "username": "admin", "avatar": "/uploads/20190318/c7eab178376c71ae1892cd23a1fb5779.jpg", "type": 0, "createtime": "2019-03-29", "score": 50 } ] }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>Token接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-71"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion71" href="#collapseOne71"> 检测Token是否过期 <span class="text-muted">/api/token/check</span></a> </h4> </div> <div id="collapseOne71" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab71"> <li class="active"><a href="#info71" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox71" data-toggle="tab">在线测试</a></li> <li><a href="#sample71" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info71"> <div class="well"> 检测Token是否过期 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox71"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/token/check" method="get" name="form71" id="form71"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="71">提交</button> <button type="reset" class="btn btn-info" rel="71">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers71"></pre> <pre id="response71"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample71"> <div class="row"> <div class="col-md-12"> <pre id="sample_response71">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-72"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion72" href="#collapseOne72"> 刷新Token <span class="text-muted">/api/token/refresh</span></a> </h4> </div> <div id="collapseOne72" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab72"> <li class="active"><a href="#info72" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox72" data-toggle="tab">在线测试</a></li> <li><a href="#sample72" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info72"> <div class="well"> 刷新Token </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox72"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/token/refresh" method="get" name="form72" id="form72"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="72">提交</button> <button type="reset" class="btn btn-info" rel="72">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers72"></pre> <pre id="response72"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample72"> <div class="row"> <div class="col-md-12"> <pre id="sample_response72">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>会员接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-73"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion73" href="#collapseOne73"> 会员中心 <span class="text-muted">/api/user/index</span></a> </h4> </div> <div id="collapseOne73" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab73"> <li class="active"><a href="#info73" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox73" data-toggle="tab">在线测试</a></li> <li><a href="#sample73" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info73"> <div class="well"> 会员中心 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox73"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/index" method="get" name="form73" id="form73"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="73">提交</button> <button type="reset" class="btn btn-info" rel="73">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers73"></pre> <pre id="response73"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample73"> <div class="row"> <div class="col-md-12"> <pre id="sample_response73">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-74"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion74" href="#collapseOne74"> 小程序登录** <span class="text-muted">/api/user/login</span></a> </h4> </div> <div id="collapseOne74" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab74"> <li class="active"><a href="#info74" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox74" data-toggle="tab">在线测试</a></li> <li><a href="#sample74" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info74"> <div class="well"> 小程序登录** </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>code</td> <td>string</td> <td>是</td> <td>小程序code</td> </tr> <tr> <td>nickname</td> <td>string</td> <td>是</td> <td>小程序昵称</td> </tr> <tr> <td>avatar</td> <td>string</td> <td>是</td> <td>小程序头像</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox74"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form74" id="form74"> <div class="form-group"> <label class="control-label" for="code">code</label> <input type="string" class="form-control input-sm" id="code" required placeholder="小程序code" name="code"> </div> <div class="form-group"> <label class="control-label" for="nickname">nickname</label> <input type="string" class="form-control input-sm" id="nickname" required placeholder="小程序昵称" name="nickname"> </div> <div class="form-group"> <label class="control-label" for="avatar">avatar</label> <input type="string" class="form-control input-sm" id="avatar" required placeholder="小程序头像" name="avatar"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="74">提交</button> <button type="reset" class="btn btn-info" rel="74">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers74"></pre> <pre id="response74"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample74"> <div class="row"> <div class="col-md-12"> <pre id="sample_response74">{ "code": 1, "msg": "登录成功", "time": "1553839125", "data": { "userInfo": { "token": "677afb39-1a4f-4492-84d3-0bcf32016b8a",//token "user_id": 27,//用户id "createtime": 1553839125,//登录时间 "expiretime": 1556431125,//token失效时间 "expires_in": 2592000//token失效剩余时间(单位s) }, "openid": 1485212522522//openid } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-75"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion75" href="#collapseOne75"> 手机验证码登录 <span class="text-muted">/api/user/mobilelogin</span></a> </h4> </div> <div id="collapseOne75" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab75"> <li class="active"><a href="#info75" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox75" data-toggle="tab">在线测试</a></li> <li><a href="#sample75" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info75"> <div class="well"> 手机验证码登录 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox75"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mobilelogin" method="get" name="form75" id="form75"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="75">提交</button> <button type="reset" class="btn btn-info" rel="75">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers75"></pre> <pre id="response75"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample75"> <div class="row"> <div class="col-md-12"> <pre id="sample_response75">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-76"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion76" href="#collapseOne76"> 注册会员 <span class="text-muted">/api/user/register</span></a> </h4> </div> <div id="collapseOne76" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab76"> <li class="active"><a href="#info76" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox76" data-toggle="tab">在线测试</a></li> <li><a href="#sample76" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info76"> <div class="well"> 注册会员 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>string</td> <td>是</td> <td>用户名</td> </tr> <tr> <td>password</td> <td>string</td> <td>是</td> <td>密码</td> </tr> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox76"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/register" method="get" name="form76" id="form76"> <div class="form-group"> <label class="control-label" for="username">username</label> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username"> </div> <div class="form-group"> <label class="control-label" for="password">password</label> <input type="string" class="form-control input-sm" id="password" required placeholder="密码" name="password"> </div> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="76">提交</button> <button type="reset" class="btn btn-info" rel="76">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers76"></pre> <pre id="response76"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample76"> <div class="row"> <div class="col-md-12"> <pre id="sample_response76">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-77"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion77" href="#collapseOne77"> 注销登录 <span class="text-muted">/api/user/logout</span></a> </h4> </div> <div id="collapseOne77" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab77"> <li class="active"><a href="#info77" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox77" data-toggle="tab">在线测试</a></li> <li><a href="#sample77" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info77"> <div class="well"> 注销登录 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox77"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/logout" method="get" name="form77" id="form77"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="77">提交</button> <button type="reset" class="btn btn-info" rel="77">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers77"></pre> <pre id="response77"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample77"> <div class="row"> <div class="col-md-12"> <pre id="sample_response77">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-78"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion78" href="#collapseOne78"> 修改会员个人信息 <span class="text-muted">/api/user/profile</span></a> </h4> </div> <div id="collapseOne78" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab78"> <li class="active"><a href="#info78" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox78" data-toggle="tab">在线测试</a></li> <li><a href="#sample78" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info78"> <div class="well"> 修改会员个人信息 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>avatar</td> <td>string</td> <td>是</td> <td>头像地址</td> </tr> <tr> <td>username</td> <td>string</td> <td>是</td> <td>用户名</td> </tr> <tr> <td>nickname</td> <td>string</td> <td>是</td> <td>昵称</td> </tr> <tr> <td>bio</td> <td>string</td> <td>是</td> <td>个人简介</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox78"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/profile" method="get" name="form78" id="form78"> <div class="form-group"> <label class="control-label" for="avatar">avatar</label> <input type="string" class="form-control input-sm" id="avatar" required placeholder="头像地址" name="avatar"> </div> <div class="form-group"> <label class="control-label" for="username">username</label> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username"> </div> <div class="form-group"> <label class="control-label" for="nickname">nickname</label> <input type="string" class="form-control input-sm" id="nickname" required placeholder="昵称" name="nickname"> </div> <div class="form-group"> <label class="control-label" for="bio">bio</label> <input type="string" class="form-control input-sm" id="bio" required placeholder="个人简介" name="bio"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="78">提交</button> <button type="reset" class="btn btn-info" rel="78">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers78"></pre> <pre id="response78"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample78"> <div class="row"> <div class="col-md-12"> <pre id="sample_response78">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-79"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion79" href="#collapseOne79"> 修改邮箱 <span class="text-muted">/api/user/changeemail</span></a> </h4> </div> <div id="collapseOne79" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab79"> <li class="active"><a href="#info79" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox79" data-toggle="tab">在线测试</a></li> <li><a href="#sample79" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info79"> <div class="well"> 修改邮箱 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox79"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changeemail" method="get" name="form79" id="form79"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="79">提交</button> <button type="reset" class="btn btn-info" rel="79">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers79"></pre> <pre id="response79"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample79"> <div class="row"> <div class="col-md-12"> <pre id="sample_response79">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-80"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion80" href="#collapseOne80"> 修改手机号 <span class="text-muted">/api/user/changemobile</span></a> </h4> </div> <div id="collapseOne80" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab80"> <li class="active"><a href="#info80" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox80" data-toggle="tab">在线测试</a></li> <li><a href="#sample80" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info80"> <div class="well"> 修改手机号 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox80"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/changemobile" method="get" name="form80" id="form80"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="手机号" name="email"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="80">提交</button> <button type="reset" class="btn btn-info" rel="80">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers80"></pre> <pre id="response80"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample80"> <div class="row"> <div class="col-md-12"> <pre id="sample_response80">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-81"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion81" href="#collapseOne81"> 第三方登录 <span class="text-muted">/api/user/third</span></a> </h4> </div> <div id="collapseOne81" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab81"> <li class="active"><a href="#info81" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox81" data-toggle="tab">在线测试</a></li> <li><a href="#sample81" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info81"> <div class="well"> 第三方登录 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>platform</td> <td>string</td> <td>是</td> <td>平台名称</td> </tr> <tr> <td>code</td> <td>string</td> <td>是</td> <td>Code码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox81"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/third" method="get" name="form81" id="form81"> <div class="form-group"> <label class="control-label" for="platform">platform</label> <input type="string" class="form-control input-sm" id="platform" required placeholder="平台名称" name="platform"> </div> <div class="form-group"> <label class="control-label" for="code">code</label> <input type="string" class="form-control input-sm" id="code" required placeholder="Code码" name="code"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="81">提交</button> <button type="reset" class="btn btn-info" rel="81">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers81"></pre> <pre id="response81"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample81"> <div class="row"> <div class="col-md-12"> <pre id="sample_response81">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-82"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion82" href="#collapseOne82"> 重置密码 <span class="text-muted">/api/user/resetpwd</span></a> </h4> </div> <div id="collapseOne82" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab82"> <li class="active"><a href="#info82" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox82" data-toggle="tab">在线测试</a></li> <li><a href="#sample82" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info82"> <div class="well"> 重置密码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>newpassword</td> <td>string</td> <td>是</td> <td>新密码</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox82"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/resetpwd" method="get" name="form82" id="form82"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="newpassword">newpassword</label> <input type="string" class="form-control input-sm" id="newpassword" required placeholder="新密码" name="newpassword"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="82">提交</button> <button type="reset" class="btn btn-info" rel="82">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers82"></pre> <pre id="response82"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample82"> <div class="row"> <div class="col-md-12"> <pre id="sample_response82">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>验证接口</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-83"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion83" href="#collapseOne83"> 检测邮箱 <span class="text-muted">/api/validate/check_email_available</span></a> </h4> </div> <div id="collapseOne83" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab83"> <li class="active"><a href="#info83" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox83" data-toggle="tab">在线测试</a></li> <li><a href="#sample83" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info83"> <div class="well"> 检测邮箱 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>id</td> <td>string</td> <td>是</td> <td>排除会员ID</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox83"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_available" method="get" name="form83" id="form83"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="83">提交</button> <button type="reset" class="btn btn-info" rel="83">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers83"></pre> <pre id="response83"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample83"> <div class="row"> <div class="col-md-12"> <pre id="sample_response83">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-84"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion84" href="#collapseOne84"> 检测用户名 <span class="text-muted">/api/validate/check_username_available</span></a> </h4> </div> <div id="collapseOne84" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab84"> <li class="active"><a href="#info84" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox84" data-toggle="tab">在线测试</a></li> <li><a href="#sample84" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info84"> <div class="well"> 检测用户名 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>username</td> <td>string</td> <td>是</td> <td>用户名</td> </tr> <tr> <td>id</td> <td>string</td> <td>是</td> <td>排除会员ID</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox84"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_username_available" method="get" name="form84" id="form84"> <div class="form-group"> <label class="control-label" for="username">username</label> <input type="string" class="form-control input-sm" id="username" required placeholder="用户名" name="username"> </div> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="84">提交</button> <button type="reset" class="btn btn-info" rel="84">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers84"></pre> <pre id="response84"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample84"> <div class="row"> <div class="col-md-12"> <pre id="sample_response84">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-85"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion85" href="#collapseOne85"> 检测手机 <span class="text-muted">/api/validate/check_mobile_available</span></a> </h4> </div> <div id="collapseOne85" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab85"> <li class="active"><a href="#info85" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox85" data-toggle="tab">在线测试</a></li> <li><a href="#sample85" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info85"> <div class="well"> 检测手机 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>id</td> <td>string</td> <td>是</td> <td>排除会员ID</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox85"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_available" method="get" name="form85" id="form85"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="string" class="form-control input-sm" id="id" required placeholder="排除会员ID" name="id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="85">提交</button> <button type="reset" class="btn btn-info" rel="85">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers85"></pre> <pre id="response85"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample85"> <div class="row"> <div class="col-md-12"> <pre id="sample_response85">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-86"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion86" href="#collapseOne86"> 检测手机 <span class="text-muted">/api/validate/check_mobile_exist</span></a> </h4> </div> <div id="collapseOne86" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab86"> <li class="active"><a href="#info86" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox86" data-toggle="tab">在线测试</a></li> <li><a href="#sample86" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info86"> <div class="well"> 检测手机 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox86"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_mobile_exist" method="get" name="form86" id="form86"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="86">提交</button> <button type="reset" class="btn btn-info" rel="86">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers86"></pre> <pre id="response86"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample86"> <div class="row"> <div class="col-md-12"> <pre id="sample_response86">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-87"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion87" href="#collapseOne87"> 检测邮箱 <span class="text-muted">/api/validate/check_email_exist</span></a> </h4> </div> <div id="collapseOne87" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab87"> <li class="active"><a href="#info87" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox87" data-toggle="tab">在线测试</a></li> <li><a href="#sample87" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info87"> <div class="well"> 检测邮箱 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox87"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_email_exist" method="get" name="form87" id="form87"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="邮箱" name="mobile"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="87">提交</button> <button type="reset" class="btn btn-info" rel="87">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers87"></pre> <pre id="response87"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample87"> <div class="row"> <div class="col-md-12"> <pre id="sample_response87">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-88"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion88" href="#collapseOne88"> 检测手机验证码 <span class="text-muted">/api/validate/check_sms_correct</span></a> </h4> </div> <div id="collapseOne88" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab88"> <li class="active"><a href="#info88" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox88" data-toggle="tab">在线测试</a></li> <li><a href="#sample88" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info88"> <div class="well"> 检测手机验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox88"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_sms_correct" method="get" name="form88" id="form88"> <div class="form-group"> <label class="control-label" for="mobile">mobile</label> <input type="string" class="form-control input-sm" id="mobile" required placeholder="手机号" name="mobile"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="88">提交</button> <button type="reset" class="btn btn-info" rel="88">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers88"></pre> <pre id="response88"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample88"> <div class="row"> <div class="col-md-12"> <pre id="sample_response88">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-89"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion89" href="#collapseOne89"> 检测邮箱验证码 <span class="text-muted">/api/validate/check_ems_correct</span></a> </h4> </div> <div id="collapseOne89" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab89"> <li class="active"><a href="#info89" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox89" data-toggle="tab">在线测试</a></li> <li><a href="#sample89" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info89"> <div class="well"> 检测邮箱验证码 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>email</td> <td>string</td> <td>是</td> <td>邮箱</td> </tr> <tr> <td>captcha</td> <td>string</td> <td>是</td> <td>验证码</td> </tr> <tr> <td>event</td> <td>string</td> <td>是</td> <td>事件</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox89"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/validate/check_ems_correct" method="get" name="form89" id="form89"> <div class="form-group"> <label class="control-label" for="email">email</label> <input type="string" class="form-control input-sm" id="email" required placeholder="邮箱" name="email"> </div> <div class="form-group"> <label class="control-label" for="captcha">captcha</label> <input type="string" class="form-control input-sm" id="captcha" required placeholder="验证码" name="captcha"> </div> <div class="form-group"> <label class="control-label" for="event">event</label> <input type="string" class="form-control input-sm" id="event" required placeholder="事件" name="event"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="89">提交</button> <button type="reset" class="btn btn-info" rel="89">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers89"></pre> <pre id="response89"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample89"> <div class="row"> <div class="col-md-12"> <pre id="sample_response89">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <h2>支付接口**</h2> <hr> <div class="panel panel-default"> <div class="panel-heading" id="heading-90"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion90" href="#collapseOne90"> 支付订单 <span class="text-muted">/api/wxpay/pay</span></a> </h4> </div> <div id="collapseOne90" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab90"> <li class="active"><a href="#info90" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox90" data-toggle="tab">在线测试</a></li> <li><a href="#sample90" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info90"> <div class="well"> 支付订单 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>openid</td> <td>string</td> <td>是</td> <td>小程序openid</td> </tr> <tr> <td>pay_order_sn</td> <td>string</td> <td>是</td> <td>支付订单号</td> </tr> <tr> <td>type</td> <td>string</td> <td>是</td> <td>支付方式(wx:微信支付,balance:余额支付)</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox90"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/pay" method="POST" name="form90" id="form90"> <div class="form-group"> <label class="control-label" for="openid">openid</label> <input type="string" class="form-control input-sm" id="openid" required placeholder="小程序openid" name="openid"> </div> <div class="form-group"> <label class="control-label" for="pay_order_sn">pay_order_sn</label> <input type="string" class="form-control input-sm" id="pay_order_sn" required placeholder="支付订单号" name="pay_order_sn"> </div> <div class="form-group"> <label class="control-label" for="type">type</label> <input type="string" class="form-control input-sm" id="type" required placeholder="支付方式(wx:微信支付,balance:余额支付)" name="type"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="90">提交</button> <button type="reset" class="btn btn-info" rel="90">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers90"></pre> <pre id="response90"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample90"> <div class="row"> <div class="col-md-12"> <pre id="sample_response90">{code: 0, msg: "无效的订单", time: "1554176100", data: null}</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-91"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion91" href="#collapseOne91"> 商品订单去付款 <span class="text-muted">/api/wxpay/toPay</span></a> </h4> </div> <div id="collapseOne91" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab91"> <li class="active"><a href="#info91" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox91" data-toggle="tab">在线测试</a></li> <li><a href="#sample91" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info91"> <div class="well"> 商品订单去付款 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>o_id</td> <td>integer</td> <td>是</td> <td>订单id</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox91"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/toPay" method="GET" name="form91" id="form91"> <div class="form-group"> <label class="control-label" for="o_id">o_id</label> <input type="integer" class="form-control input-sm" id="o_id" required placeholder="订单id" name="o_id"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="91">提交</button> <button type="reset" class="btn btn-info" rel="91">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers91"></pre> <pre id="response91"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample91"> <div class="row"> <div class="col-md-12"> <pre id="sample_response91">{ "code": 1, "msg": "成功", "time": "1554184134", "data": { "pay_order_sn": "155418413436253500503" } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-92"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion92" href="#collapseOne92"> 微信异步通知(不需调用) <span class="text-muted">/api/wxpay/notify</span></a> </h4> </div> <div id="collapseOne92" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab92"> <li class="active"><a href="#info92" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox92" data-toggle="tab">在线测试</a></li> <li><a href="#sample92" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info92"> <div class="well"> 微信异步通知(不需调用) </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox92"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/notify" method="get" name="form92" id="form92"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="92">提交</button> <button type="reset" class="btn btn-info" rel="92">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers92"></pre> <pre id="response92"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample92"> <div class="row"> <div class="col-md-12"> <pre id="sample_response92">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-93"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion93" href="#collapseOne93"> 充值 <span class="text-muted">/api/wxpay/payCharge</span></a> </h4> </div> <div id="collapseOne93" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab93"> <li class="active"><a href="#info93" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox93" data-toggle="tab">在线测试</a></li> <li><a href="#sample93" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info93"> <div class="well"> 充值 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>amount</td> <td>integer</td> <td>是</td> <td>充值金额</td> </tr> <tr> <td>openid</td> <td>integer</td> <td>是</td> <td>openid</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox93"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/payCharge" method="POST" name="form93" id="form93"> <div class="form-group"> <label class="control-label" for="amount">amount</label> <input type="integer" class="form-control input-sm" id="amount" required placeholder="充值金额" name="amount"> </div> <div class="form-group"> <label class="control-label" for="openid">openid</label> <input type="integer" class="form-control input-sm" id="openid" required placeholder="openid" name="openid"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="93">提交</button> <button type="reset" class="btn btn-info" rel="93">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers93"></pre> <pre id="response93"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample93"> <div class="row"> <div class="col-md-12"> <pre id="sample_response93">{ "code": 1, "msg": "成功", "time": "1554184134", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-94"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion94" href="#collapseOne94"> 微信异步通知(不需调用) <span class="text-muted">/api/wxpay/notifyCharge</span></a> </h4> </div> <div id="collapseOne94" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab94"> <li class="active"><a href="#info94" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox94" data-toggle="tab">在线测试</a></li> <li><a href="#sample94" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info94"> <div class="well"> 微信异步通知(不需调用) </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox94"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/notifyCharge" method="get" name="form94" id="form94"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="94">提交</button> <button type="reset" class="btn btn-info" rel="94">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers94"></pre> <pre id="response94"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample94"> <div class="row"> <div class="col-md-12"> <pre id="sample_response94">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-95"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion95" href="#collapseOne95"> 分享购买成功调用,增加积分并获得相应的积分 <span class="text-muted">/api/wxpay/addScore</span></a> </h4> </div> <div id="collapseOne95" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab95"> <li class="active"><a href="#info95" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox95" data-toggle="tab">在线测试</a></li> <li><a href="#sample95" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info95"> <div class="well"> 分享购买成功调用,增加积分并获得相应的积分 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>share_uid</td> <td>integer</td> <td>是</td> <td>分享uid</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox95"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/addScore" method="GET" name="form95" id="form95"> <div class="form-group"> <label class="control-label" for="share_uid">share_uid</label> <input type="integer" class="form-control input-sm" id="share_uid" required placeholder="分享uid" name="share_uid"> </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="95">提交</button> <button type="reset" class="btn btn-info" rel="95">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers95"></pre> <pre id="response95"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample95"> <div class="row"> <div class="col-md-12"> <pre id="sample_response95">{ "code": 1, "msg": "成功", "time": "1554184134", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-96"> <h4 class="panel-title"> <span class="label label-success">GET</span> <a data-toggle="collapse" data-parent="#accordion96" href="#collapseOne96"> 本人购买成功调用,增加积分并获得相应的积分 <span class="text-muted">/api/wxpay/addPersonScore</span></a> </h4> </div> <div id="collapseOne96" class="panel-collapse collapse"> <div class="panel-body"> <!-- Nav tabs --> <ul class="nav nav-tabs" id="doctab96"> <li class="active"><a href="#info96" data-toggle="tab">基础信息</a></li> <li><a href="#sandbox96" data-toggle="tab">在线测试</a></li> <li><a href="#sample96" data-toggle="tab">返回示例</a></li> </ul> <!-- Tab panes --> <div class="tab-content"> <div class="tab-pane active" id="info96"> <div class="well"> 本人购买成功调用,增加积分并获得相应的积分 </div> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>string</td> <td>是</td> <td>请求的Token</td> </tr> </tbody> </table> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> 无 </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>正文</strong></div> <div class="panel-body"> 无 </div> </div> </div><!-- #info --> <div class="tab-pane" id="sandbox96"> <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"><strong>Headers</strong></div> <div class="panel-body"> <div class="headers"> <div class="form-group"> <label class="control-label" for="token">token</label> <input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token"> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/wxpay/addPersonScore" method="GET" name="form96" id="form96"> <div class="form-group"> 无 </div> <div class="form-group"> <button type="submit" class="btn btn-success send" rel="96">提交</button> <button type="reset" class="btn btn-info" rel="96">重置</button> </div> </form> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>响应输出</strong></div> <div class="panel-body"> <div class="row"> <div class="col-md-12" style="overflow-x:auto"> <pre id="response_headers96"></pre> <pre id="response96"></pre> </div> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading"><strong>返回参数</strong></div> <div class="panel-body"> 无 </div> </div> </div> </div> </div><!-- #sandbox --> <div class="tab-pane" id="sample96"> <div class="row"> <div class="col-md-12"> <pre id="sample_response96">{ "code": 1, "msg": "成功", "time": "1554184134", "data": null }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> </div> <hr> <div class="row mt0 footer"> <div class="col-md-6" align="left"> Generated on 2019-05-15 13:22:15 </div> <div class="col-md-6" align="right"> <a href="https://www.fastadmin.net" target="_blank">FastAdmin</a> </div> </div> </div> <!-- /container --> <!-- jQuery --> <script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script> <!-- Bootstrap Core JavaScript --> <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script> <script type="text/javascript"> function syntaxHighlight(json) { if (typeof json != 'string') { json = JSON.stringify(json, undefined, 2); } json = json.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) { var cls = 'number'; if (/^"/.test(match)) { if (/:$/.test(match)) { cls = 'key'; } else { cls = 'string'; } } else if (/true|false/.test(match)) { cls = 'boolean'; } else if (/null/.test(match)) { cls = 'null'; } return '<span class="' + cls + '">' + match + '</span>'; }); } function prepareStr(str) { try { return syntaxHighlight(JSON.stringify(JSON.parse(str.replace(/'/g, '"')), null, 2)); } catch (e) { return str; } } var storage = (function () { var uid = new Date; var storage; var result; try { (storage = window.localStorage).setItem(uid, uid); result = storage.getItem(uid) == uid; storage.removeItem(uid); return result && storage; } catch (exception) { } }()); $.fn.serializeObject = function () { var o = {}; var a = this.serializeArray(); $.each(a, function () { if (!this.value) { return; } if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(this.value || ''); } else { o[this.name] = this.value || ''; } }); return o; }; $(document).ready(function () { if (storage) { $('#token').val(storage.getItem('token')); $('#apiUrl').val(storage.getItem('apiUrl')); } $('[data-toggle="tooltip"]').tooltip({ placement: 'bottom' }); $(window).on("resize", function(){ $("#sidebar").css("max-height", $(window).height()-80); }); $(window).trigger("resize"); $(document).on("click", "#sidebar .list-group > .list-group-item", function(){ $("#sidebar .list-group > .list-group-item").removeClass("current"); $(this).addClass("current"); }); $(document).on("click", "#sidebar .child a", function(){ var heading = $("#heading-"+$(this).data("id")); if(!heading.next().hasClass("in")){ $("a", heading).trigger("click"); } $("html,body").animate({scrollTop:heading.offset().top-70}); }); $('code[id^=response]').hide(); $.each($('pre[id^=sample_response],pre[id^=sample_post_body]'), function () { if ($(this).html() == 'NA') { return; } var str = prepareStr($(this).html()); $(this).html(str); }); $("[data-toggle=popover]").popover({placement: 'right'}); $('[data-toggle=popover]').on('shown.bs.popover', function () { var $sample = $(this).parent().find(".popover-content"), str = $(this).data('content'); if (typeof str == "undefined" || str === "") { return; } var str = prepareStr(str); $sample.html('<pre>' + str + '</pre>'); }); $('body').on('click', '#save_data', function (e) { if (storage) { storage.setItem('token', $('#token').val()); storage.setItem('apiUrl', $('#apiUrl').val()); } else { alert('Your browser does not support local storage'); } }); $('body').on('click', '.send', function (e) { e.preventDefault(); var form = $(this).closest('form'); //added /g to get all the matched params instead of only first var matchedParamsInRoute = $(form).attr('action').match(/[^{]+(?=\})/g); var theId = $(this).attr('rel'); //keep a copy of action attribute in order to modify the copy //instead of the initial attribute var url = $(form).attr('action'); var method = $(form).prop('method').toLowerCase() || 'get'; var formData = new FormData(); $(form).find('input').each(function (i, input) { if ($(input).attr('type').toLowerCase() == 'file') { formData.append($(input).attr('name'), $(input)[0].files[0]); method = 'post'; } else { formData.append($(input).attr('name'), $(input).val()) } }); var index, key, value; if (matchedParamsInRoute) { var params = {}; formData.forEach(function(value, key){ params[key] = value; }); for (index = 0; index < matchedParamsInRoute.length; ++index) { try { key = matchedParamsInRoute[index]; value = params[key]; if (typeof value == "undefined") value = ""; url = url.replace("\{" + key + "\}", value); formData.delete(key); } catch (err) { console.log(err); } } } var headers = {}; var token = $('#token').val(); if (token.length > 0) { headers['token'] = token; } $("#sandbox" + theId + " .headers input[type=text]").each(function () { val = $(this).val(); if (val.length > 0) { headers[$(this).prop('name')] = val; } }); $.ajax({ url: $('#apiUrl').val() + url, data: method == 'get' ? $(form).serialize() : formData, type: method, dataType: 'json', contentType: false, processData: false, headers: headers, success: function (data, textStatus, xhr) { if (typeof data === 'object') { var str = JSON.stringify(data, null, 2); $('#response' + theId).html(syntaxHighlight(str)); } else { $('#response' + theId).html(data || ''); } $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders()); $('#response' + theId).show(); }, error: function (xhr, textStatus, error) { try { var str = JSON.stringify($.parseJSON(xhr.responseText), null, 2); } catch (e) { var str = xhr.responseText; } $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders()); $('#response' + theId).html(syntaxHighlight(str)); $('#response' + theId).show(); } }); return false; }); }); </script> </body> </html>