<!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="溯源后台管理"> <title>溯源后台管理</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; } } .label-primary { background-color: #248aff; } </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">溯源后台管理</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> <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> <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> <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> <a href="javascript:;" data-id="12" 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="13" class="list-group-item">加载初始化</a> <a href="javascript:;" data-id="14" class="list-group-item">上传文件</a> <a href="javascript:;" data-id="15" class="list-group-item"></a> <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> <a href="javascript:;" data-id="26" class="list-group-item">清空历史记录</a> <a href="javascript:;" data-id="27" 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="28" 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="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> </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="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> </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="34" class="list-group-item">农场管理中农场信息</a> <a href="javascript:;" data-id="43" class="list-group-item">我的关注</a> <a href="javascript:;" data-id="49" class="list-group-item">项目评论列表</a> <a href="javascript:;" data-id="48" class="list-group-item">添加项目评论</a> <a href="javascript:;" data-id="47" class="list-group-item">溯源历史</a> <a href="javascript:;" data-id="46" class="list-group-item">添加溯源记录</a> <a href="javascript:;" data-id="45" class="list-group-item">我的溯源码</a> <a href="javascript:;" data-id="44" class="list-group-item">我的粉丝</a> <a href="javascript:;" data-id="42" class="list-group-item">农场取消关注</a> <a href="javascript:;" data-id="35" class="list-group-item">项目列表</a> <a href="javascript:;" data-id="41" class="list-group-item">农场关注</a> <a href="javascript:;" data-id="40" class="list-group-item">项目取消点赞</a> <a href="javascript:;" data-id="39" class="list-group-item">项目点赞</a> <a href="javascript:;" data-id="38" class="list-group-item">项目溯源</a> <a href="javascript:;" data-id="37" class="list-group-item">项目详情</a> <a href="javascript:;" data-id="36" class="list-group-item">添加项目</a> <a href="javascript:;" data-id="50" 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="51" class="list-group-item">发送验证码</a> <a href="javascript:;" data-id="52" 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="53" class="list-group-item">获取sessionKey和openid</a> <a href="javascript:;" data-id="54" class="list-group-item"></a> <a href="javascript:;" data-id="55" class="list-group-item">小程序登录注册</a> <a href="javascript:;" data-id="56" class="list-group-item">通过code获取token</a> <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">邻居家的余粮</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="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> <a href="javascript:;" data-id="64" class="list-group-item">单个收货地址</a> <a href="javascript:;" data-id="65" class="list-group-item">新增收货地址</a> <a href="javascript:;" data-id="66" class="list-group-item">更新收货地址</a> <a href="javascript:;" data-id="67" class="list-group-item">删除收货地址</a> <a href="javascript:;" data-id="68" class="list-group-item">生成用户邀请好友二维码</a> <a href="javascript:;" data-id="69" class="list-group-item"></a> <a href="javascript:;" data-id="70" class="list-group-item"></a> <a href="javascript:;" data-id="71" class="list-group-item"></a> <a href="javascript:;" data-id="72" class="list-group-item"></a> <a href="javascript:;" data-id="73" 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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion0" href="#collapseOne0"> 添加活动 <span class="text-muted">/api/active/index</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"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>theme</td> <td>string</td> <td>否</td> <td>农场主题</td> </tr> <tr> <td>thumbnail</td> <td>string</td> <td>否</td> <td>产品图片</td> </tr> <tr> <td>image</td> <td>string</td> <td>否</td> <td>轮播图</td> </tr> <tr> <td>starttime</td> <td>string</td> <td>否</td> <td>活动开始时间</td> </tr> <tr> <td>endtime</td> <td>string</td> <td>否</td> <td>活动结束时间</td> </tr> <tr> <td>apply_starttime</td> <td>string</td> <td>否</td> <td>报名开始时间</td> </tr> <tr> <td>apply_endtime</td> <td>string</td> <td>否</td> <td>报名结束时间</td> </tr> <tr> <td>address</td> <td>string</td> <td>否</td> <td>活动地点</td> </tr> <tr> <td>desc</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="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/active/index" method="POST" name="form0" id="form0"> <div class="form-group"> <label class="control-label" for="theme">theme</label> <input type="string" class="form-control input-sm" id="theme" placeholder="农场主题" name="theme"> </div> <div class="form-group"> <label class="control-label" for="thumbnail">thumbnail</label> <input type="string" class="form-control input-sm" id="thumbnail" placeholder="产品图片" name="thumbnail"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="string" class="form-control input-sm" id="image" placeholder="轮播图" name="image"> </div> <div class="form-group"> <label class="control-label" for="starttime">starttime</label> <input type="string" class="form-control input-sm" id="starttime" placeholder="活动开始时间" name="starttime"> </div> <div class="form-group"> <label class="control-label" for="endtime">endtime</label> <input type="string" class="form-control input-sm" id="endtime" placeholder="活动结束时间" name="endtime"> </div> <div class="form-group"> <label class="control-label" for="apply_starttime">apply_starttime</label> <input type="string" class="form-control input-sm" id="apply_starttime" placeholder="报名开始时间" name="apply_starttime"> </div> <div class="form-group"> <label class="control-label" for="apply_endtime">apply_endtime</label> <input type="string" class="form-control input-sm" id="apply_endtime" placeholder="报名结束时间" name="apply_endtime"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="活动地点" name="address"> </div> <div class="form-group"> <label class="control-label" for="desc">desc</label> <input type="string" class="form-control input-sm" id="desc" placeholder="活动简介" name="desc"> </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": "SUCCESS", "time": "1553839125", "data": { } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-1"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion1" href="#collapseOne1"> 活动详情 <span class="text-muted">/api/active/detail</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>int</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/active/detail" method="POST" name="form1" id="form1"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="int" class="form-control input-sm" id="id" 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": "SUCCESS", "time": "1553839125", "data": { "id":活动ID "farm_id":农场ID "image"://活动banner "theme"://活动主题 "user_num"://报名人数 "status"://活动状态(0未开始1进行中2已结束) "address"://活动地点 "activetime"://活动时间 "starttime"://活动开始时间 "endtime"://活动结束时间 "apply_starttime"://报名开始时间 "apply_endtime"://报名结束时间 "applytime"://报名时间 "desc"://活动简介 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion2" href="#collapseOne2"> 活动编辑 <span class="text-muted">/api/active/upd</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"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>id</td> <td>int</td> <td>否</td> <td>活动id</td> </tr> <tr> <td>theme</td> <td>string</td> <td>否</td> <td>农场主题</td> </tr> <tr> <td>thumbnail</td> <td>string</td> <td>否</td> <td>产品图片</td> </tr> <tr> <td>image</td> <td>string</td> <td>否</td> <td>轮播图</td> </tr> <tr> <td>starttime</td> <td>string</td> <td>否</td> <td>活动开始时间</td> </tr> <tr> <td>endtime</td> <td>string</td> <td>否</td> <td>活动结束时间</td> </tr> <tr> <td>apply_starttime</td> <td>string</td> <td>否</td> <td>报名开始时间</td> </tr> <tr> <td>apply_endtime</td> <td>string</td> <td>否</td> <td>报名结束时间</td> </tr> <tr> <td>address</td> <td>string</td> <td>否</td> <td>活动地点</td> </tr> <tr> <td>desc</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="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/active/upd" method="POST" name="form2" id="form2"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="int" class="form-control input-sm" id="id" placeholder="活动id" name="id"> </div> <div class="form-group"> <label class="control-label" for="theme">theme</label> <input type="string" class="form-control input-sm" id="theme" placeholder="农场主题" name="theme"> </div> <div class="form-group"> <label class="control-label" for="thumbnail">thumbnail</label> <input type="string" class="form-control input-sm" id="thumbnail" placeholder="产品图片" name="thumbnail"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="string" class="form-control input-sm" id="image" placeholder="轮播图" name="image"> </div> <div class="form-group"> <label class="control-label" for="starttime">starttime</label> <input type="string" class="form-control input-sm" id="starttime" placeholder="活动开始时间" name="starttime"> </div> <div class="form-group"> <label class="control-label" for="endtime">endtime</label> <input type="string" class="form-control input-sm" id="endtime" placeholder="活动结束时间" name="endtime"> </div> <div class="form-group"> <label class="control-label" for="apply_starttime">apply_starttime</label> <input type="string" class="form-control input-sm" id="apply_starttime" placeholder="报名开始时间" name="apply_starttime"> </div> <div class="form-group"> <label class="control-label" for="apply_endtime">apply_endtime</label> <input type="string" class="form-control input-sm" id="apply_endtime" placeholder="报名结束时间" name="apply_endtime"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="活动地点" name="address"> </div> <div class="form-group"> <label class="control-label" for="desc">desc</label> <input type="string" class="form-control input-sm" id="desc" placeholder="活动简介" name="desc"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion3" href="#collapseOne3"> 活动报名 <span class="text-muted">/api/active/apply</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>active_id</td> <td>int</td> <td>否</td> <td>活动ID</td> </tr> <tr> <td>name</td> <td>string</td> <td>否</td> <td>姓名</td> </tr> <tr> <td>phone</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="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/active/apply" method="POST" name="form3" id="form3"> <div class="form-group"> <label class="control-label" for="active_id">active_id</label> <input type="int" class="form-control input-sm" id="active_id" placeholder="活动ID" name="active_id"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" placeholder="姓名" name="name"> </div> <div class="form-group"> <label class="control-label" for="phone">phone</label> <input type="string" class="form-control input-sm" id="phone" placeholder="电话" name="phone"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="地址" name="address"> </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": "SUCCESS", "time": "1553839125", "data": { } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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/active/hotactive</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"> 无 </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/active/hotactive" method="POST" name="form4" id="form4"> <div class="form-group"> 无 </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": "SUCCESS", "time": "1553839125", "data": { "id":活动ID "farm_id":农场ID "thumbnail":活动图片 "theme"://活动主题 "user_num"://报名人数 "status"://活动状态(0未开始1进行中2已结束) "address"://活动地点 "activetime"://活动时间 "applytime"://报名时间 "desc"://活动简介 "is_bao"://是否报过名(1没有报过2报过了</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion5" href="#collapseOne5"> 发起历史 <span class="text-muted">/api/active/hisactive</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"> 无 </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/active/hisactive" method="POST" name="form5" id="form5"> <div class="form-group"> 无 </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": "SUCCESS", "time": "1553839125", "data": { "id":活动ID "farm_id":农场ID "thumbnail":活动图片 "theme"://活动主题 "user_num"://报名人数 "status"://活动状态(0未开始1进行中2已结束) "address"://活动地点 "activetime"://活动时间 "applytime"://报名时间 "desc"://活动简介 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion6" href="#collapseOne6"> 农场主入驻农场 <span class="text-muted">/api/attestation/addForm</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"> <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>shen</td> <td>int</td> <td>否</td> <td>身份</td> </tr> <tr> <td>name</td> <td>string</td> <td>否</td> <td>姓名</td> </tr> <tr> <td>phone</td> <td>string</td> <td>否</td> <td>电话</td> </tr> <tr> <td>idcard</td> <td>string</td> <td>否</td> <td>身份证号</td> </tr> <tr> <td>front</td> <td>string</td> <td>否</td> <td>身份证正面</td> </tr> <tr> <td>behind</td> <td>string</td> <td>否</td> <td>身份证反面</td> </tr> <tr> <td>farm_name</td> <td>string</td> <td>否</td> <td>农场名</td> </tr> <tr> <td>province</td> <td>string</td> <td>是</td> <td>省</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市</td> </tr> <tr> <td>county</td> <td>string</td> <td>是</td> <td>区/县</td> </tr> <tr> <td>address</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> <tr> <td>content</td> <td>int</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>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/attestation/addForm" method="POST" name="form6" id="form6"> <div class="form-group"> <label class="control-label" for="shen">shen</label> <input type="int" class="form-control input-sm" id="shen" placeholder="身份" name="shen"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" placeholder="姓名" name="name"> </div> <div class="form-group"> <label class="control-label" for="phone">phone</label> <input type="string" class="form-control input-sm" id="phone" placeholder="电话" name="phone"> </div> <div class="form-group"> <label class="control-label" for="idcard">idcard</label> <input type="string" class="form-control input-sm" id="idcard" placeholder="身份证号" name="idcard"> </div> <div class="form-group"> <label class="control-label" for="front">front</label> <input type="string" class="form-control input-sm" id="front" placeholder="身份证正面" name="front"> </div> <div class="form-group"> <label class="control-label" for="behind">behind</label> <input type="string" class="form-control input-sm" id="behind" placeholder="身份证反面" name="behind"> </div> <div class="form-group"> <label class="control-label" for="farm_name">farm_name</label> <input type="string" class="form-control input-sm" id="farm_name" placeholder="农场名" name="farm_name"> </div> <div class="form-group"> <label class="control-label" for="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区/县" name="county"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="位置" name="address"> </div> <div class="form-group"> <label class="control-label" for="lng">lng</label> <input type="string" class="form-control input-sm" id="lng" 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" placeholder="纬度" name="lat"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="int" class="form-control input-sm" id="content" placeholder="简介" name="content"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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/attestation/company</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"> <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>shen</td> <td>int</td> <td>否</td> <td>身份</td> </tr> <tr> <td>name</td> <td>string</td> <td>否</td> <td>法人姓名</td> </tr> <tr> <td>phone</td> <td>string</td> <td>否</td> <td>手机号</td> </tr> <tr> <td>tel</td> <td>string</td> <td>否</td> <td>座机</td> </tr> <tr> <td>company_name</td> <td>string</td> <td>否</td> <td>企业名称</td> </tr> <tr> <td>idcard</td> <td>string</td> <td>否</td> <td>纳税人识别号</td> </tr> <tr> <td>image</td> <td>string</td> <td>否</td> <td>营业执照</td> </tr> <tr> <td>farm_name</td> <td>string</td> <td>否</td> <td>农场名称</td> </tr> <tr> <td>province</td> <td>string</td> <td>是</td> <td>省</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市</td> </tr> <tr> <td>county</td> <td>string</td> <td>是</td> <td>区/县</td> </tr> <tr> <td>address</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> <tr> <td>content</td> <td>int</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>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/attestation/company" method="POST" name="form7" id="form7"> <div class="form-group"> <label class="control-label" for="shen">shen</label> <input type="int" class="form-control input-sm" id="shen" placeholder="身份" name="shen"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" placeholder="法人姓名" name="name"> </div> <div class="form-group"> <label class="control-label" for="phone">phone</label> <input type="string" class="form-control input-sm" id="phone" placeholder="手机号" name="phone"> </div> <div class="form-group"> <label class="control-label" for="tel">tel</label> <input type="string" class="form-control input-sm" id="tel" placeholder="座机" name="tel"> </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" placeholder="企业名称" name="company_name"> </div> <div class="form-group"> <label class="control-label" for="idcard">idcard</label> <input type="string" class="form-control input-sm" id="idcard" placeholder="纳税人识别号" name="idcard"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="string" class="form-control input-sm" id="image" placeholder="营业执照" name="image"> </div> <div class="form-group"> <label class="control-label" for="farm_name">farm_name</label> <input type="string" class="form-control input-sm" id="farm_name" placeholder="农场名称" name="farm_name"> </div> <div class="form-group"> <label class="control-label" for="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区/县" name="county"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="位置" name="address"> </div> <div class="form-group"> <label class="control-label" for="lng">lng</label> <input type="string" class="form-control input-sm" id="lng" 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" placeholder="纬度" name="lat"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="int" class="form-control input-sm" id="content" placeholder="简介" name="content"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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/attestation/government</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>shen</td> <td>int</td> <td>否</td> <td>身份</td> </tr> <tr> <td>name</td> <td>string</td> <td>否</td> <td>法人姓名</td> </tr> <tr> <td>phone</td> <td>string</td> <td>否</td> <td>手机号</td> </tr> <tr> <td>tel</td> <td>string</td> <td>否</td> <td>座机</td> </tr> <tr> <td>company_name</td> <td>string</td> <td>否</td> <td>单位名称</td> </tr> <tr> <td>idcard</td> <td>string</td> <td>否</td> <td>纳税人识别号</td> </tr> <tr> <td>image</td> <td>string</td> <td>否</td> <td>营业执照</td> </tr> <tr> <td>province</td> <td>string</td> <td>是</td> <td>省</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市</td> </tr> <tr> <td>county</td> <td>string</td> <td>是</td> <td>区/县</td> </tr> <tr> <td>address</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> <tr> <td>content</td> <td>int</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/attestation/government" method="POST" name="form8" id="form8"> <div class="form-group"> <label class="control-label" for="shen">shen</label> <input type="int" class="form-control input-sm" id="shen" placeholder="身份" name="shen"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" placeholder="法人姓名" name="name"> </div> <div class="form-group"> <label class="control-label" for="phone">phone</label> <input type="string" class="form-control input-sm" id="phone" placeholder="手机号" name="phone"> </div> <div class="form-group"> <label class="control-label" for="tel">tel</label> <input type="string" class="form-control input-sm" id="tel" placeholder="座机" name="tel"> </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" placeholder="单位名称" name="company_name"> </div> <div class="form-group"> <label class="control-label" for="idcard">idcard</label> <input type="string" class="form-control input-sm" id="idcard" placeholder="纳税人识别号" name="idcard"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="string" class="form-control input-sm" id="image" placeholder="营业执照" name="image"> </div> <div class="form-group"> <label class="control-label" for="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区/县" name="county"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="位置" name="address"> </div> <div class="form-group"> <label class="control-label" for="lng">lng</label> <input type="string" class="form-control input-sm" id="lng" 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" placeholder="纬度" name="lat"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="int" class="form-control input-sm" id="content" placeholder="简介" name="content"> </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"> 无 </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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 农场入驻信息 <span class="text-muted">/api/attestation/info</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"> <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="sandbox9"> <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/attestation/info" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 我的认证基础信息 <span class="text-muted">/api/attestation/attestation</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"> <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="sandbox10"> <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/attestation/attestation" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//农场id "name":"name",//姓名 "identity":"身份",//身份 "farm_name"://农场名 "lng"://经度 "lat"://纬度 "address":"address",//详细地址 "project_num"://创建项目 "createtime"://入驻时间 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 查询认证机构信息 <span class="text-muted">/api/attestation/institution</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"> <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>province</td> <td>string</td> <td>是</td> <td>省份信息</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市区</td> </tr> <tr> <td>county</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="sandbox11"> <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/attestation/institution" method="POST" name="form11" id="form11"> <div class="form-group"> <label class="control-label" for="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省份信息" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市区" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区县信息" name="county"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { id://机构id institution://机构 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-12"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 提交认证信息 <span class="text-muted">/api/attestation/sub</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"> <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>farm_id</td> <td>int</td> <td>是</td> <td>农场id</td> </tr> <tr> <td>institution</td> <td>string</td> <td>是</td> <td>认证机构</td> </tr> <tr> <td>institution_id</td> <td>int</td> <td>是</td> <td>认证机构ID</td> </tr> <tr> <td>name</td> <td>string</td> <td>是</td> <td>申请人</td> </tr> <tr> <td>identity</td> <td>string</td> <td>是</td> <td>身份</td> </tr> <tr> <td>farm_name</td> <td>string</td> <td>是</td> <td>农场名</td> </tr> <tr> <td>project_num</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="sandbox12"> <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/attestation/sub" method="POST" name="form12" id="form12"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" required placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="institution">institution</label> <input type="string" class="form-control input-sm" id="institution" required placeholder="认证机构" name="institution"> </div> <div class="form-group"> <label class="control-label" for="institution_id">institution_id</label> <input type="int" class="form-control input-sm" id="institution_id" required placeholder="认证机构ID" name="institution_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="identity">identity</label> <input type="string" class="form-control input-sm" id="identity" required placeholder="身份" name="identity"> </div> <div class="form-group"> <label class="control-label" for="farm_name">farm_name</label> <input type="string" class="form-control input-sm" id="farm_name" required placeholder="农场名" name="farm_name"> </div> <div class="form-group"> <label class="control-label" for="project_num">project_num</label> <input type="string" class="form-control input-sm" id="project_num" required placeholder="项目个数" name="project_num"> </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="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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { id://机构id institution://机构 } }</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-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/common/init</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>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="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/common/init" method="get" name="form13" id="form13"> <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="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> <div class="panel panel-default"> <div class="panel-heading" id="heading-14"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 上传文件 <span class="text-muted">/api/common/uploadFile</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>image[]</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="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/common/uploadFile" method="POST" name="form14" id="form14"> <div class="form-group"> <label class="control-label" for="image[]">image[]</label> <input type="file" class="form-control input-sm" id="image[]" placeholder="图片" name="image[]"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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/common/getOperateSys</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"> 无 </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="sandbox15"> <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/getOperateSys" method="get" name="form15" id="form15"> <div class="form-group"> 无 </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">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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/common/imgcode</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"> 无 </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="sandbox16"> <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/imgcode" method="get" name="form16" id="form16"> <div class="form-group"> 无 </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">无</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/common/getusercode</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"> 无 </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="sandbox17"> <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/getusercode" method="get" name="form17" id="form17"> <div class="form-group"> 无 </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">无</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/common/imgShare</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"> 无 </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>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/imgShare" 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">无</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/common/get_access_token</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"> 无 </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>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/get_access_token" 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">无</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/common/http_get</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"> 无 </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="sandbox20"> <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/http_get" method="get" name="form20" id="form20"> <div class="form-group"> 无 </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">无</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/common/http_post</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"> 无 </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>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/common/http_post" 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">无</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 地区列表 <span class="text-muted">/api/farm/index</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"> 无 </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="sandbox22"> <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/farm/index" method="POST" name="form22" id="form22"> <div class="form-group"> 无 </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion23" href="#collapseOne23"> 农场列表 <span class="text-muted">/api/farm/get_all</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>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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/farm/get_all" method="POST" name="form23" id="form23"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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": "SUCCESS", "time": "1553839125", "data": { "id":"id",//农场id "name"://农场名称 "avatar"://用户头像 "score"://工分 "content"://农场简介 "fun_num"://粉丝数量 "good_num":"good_num",//点赞量 "province"://省份信息 "status"://是否授权(1授权过2未授权) "is_guan"://是否关注(1是2否</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/farm/sou</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>keyword</td> <td>string</td> <td>否</td> <td>关键字</td> </tr> <tr> <td>area</td> <td>string</td> <td>否</td> <td>地区</td> </tr> <tr> <td>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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/farm/sou" method="POST" name="form24" id="form24"> <div class="form-group"> <label class="control-label" for="keyword">keyword</label> <input type="string" class="form-control input-sm" id="keyword" placeholder="关键字" name="keyword"> </div> <div class="form-group"> <label class="control-label" for="area">area</label> <input type="string" class="form-control input-sm" id="area" placeholder="地区" name="area"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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": "SUCCESS", "time": "1553839125", "data": { "id":"id",//农场id "name"://农场名称 "avatar"://用户头像 "score"://工分 "content"://农场简介 "fun_num"://粉丝数量 "good_num":"good_num",//点赞量 "province"://省份信息 "status"://是否授权(1授权过2未授权) "is_guan"://是否关注(1是2否</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 历史记录 <span class="text-muted">/api/farm/history</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"> 无 </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/farm/history" method="POST" name="form25" id="form25"> <div class="form-group"> 无 </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": "1571492001", "data": { "id": 4,//记录id, "keyword"://搜索的内容 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-26"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 清空历史记录 <span class="text-muted">/api/farm/nohistory</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/farm/nohistory" method="POST" 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": "1571492001", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 用户农场信息 <span class="text-muted">/api/farm/other</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"> 用户农场信息 </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>farm_id</td> <td>int</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="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/farm/other" method="POST" name="form27" id="form27"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </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": "SUCCESS", "time": "1553839125", "data": { "id":"id",//农场id "name"://农场名称 "avatar"://用户头像 } }</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-28"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 农场列表 <span class="text-muted">/api/government/index</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"> 农场列表 </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>type</td> <td>inter</td> <td>否</td> <td>状态(不传或者1为待认证,2为已通过,3为已拒绝</td> </tr> <tr> <td>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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="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/government/index" method="POST" name="form28" id="form28"> <div class="form-group"> <label class="control-label" for="type">type</label> <input type="inter" class="form-control input-sm" id="type" placeholder="状态(不传或者1为待认证,2为已通过,3为已拒绝" name="type"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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": "SUCCESS", "time": "1553839125", "data": { "id"://认证ID "farm_id"://农场id "createtime"://申请日期 "name"://农场名称 "avatar"://用户头像 "content"://农场简介 "address"://农场地址 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 首页项目列表 <span class="text-muted">/api/index/index</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>type</td> <td>int</td> <td>否</td> <td>类型(不传或者1为已收获2将收获3培育中</td> </tr> <tr> <td>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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/index/index" method="POST" name="form29" id="form29"> <div class="form-group"> <label class="control-label" for="type">type</label> <input type="int" class="form-control input-sm" id="type" placeholder="类型(不传或者1为已收获2将收获3培育中" name="type"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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": "SUCCESS", "time": "1553839125", "data": { "id":项目ID, "farm_id":农场ID 'project_name'://项目名称, "image"://项目图片 'farm_name'://农场名称, "avatar"://头像 'look_num'://浏览量, "good_num"://点赞量 'thumbnail'://图片 "address"://项目地址 "status"://是否点过赞(1已经点过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-30"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 农场资讯列表 <span class="text-muted">/api/information/index</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/information/index" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { 'title'://标题, 'url': //跳转链接地址, 'form'://来源, 'look_num'://浏览量, 'thumbnail'://图片 'content'://内容, 'createtime'://创建时间 } }</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-31"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion31" href="#collapseOne31"> 奖品列表 <span class="text-muted">/api/prize/index</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"> <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="sandbox31"> <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/prize/index" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//奖品id "prize_week"://奖品期数 "prize_name"://奖品名称 "content"://奖品描述 "thumbnail"://奖品图片 "probability"://概率 "prize_num"://库存 "createtime":"createtime",//创建时间 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 抽奖 <span class="text-muted">/api/prize/chou</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"> <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>name</td> <td>string</td> <td>否</td> <td>姓名</td> </tr> <tr> <td>phone</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="sandbox32"> <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/prize/chou" method="POST" name="form32" id="form32"> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="string" class="form-control input-sm" id="name" placeholder="姓名" name="name"> </div> <div class="form-group"> <label class="control-label" for="phone">phone</label> <input type="string" class="form-control input-sm" id="phone" placeholder="电话" name="phone"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="地址" name="address"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//奖品id } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion33" href="#collapseOne33"> 中奖历史 <span class="text-muted">/api/prize/history</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"> <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="sandbox33"> <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/prize/history" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//id "user_id"://用户ID "prize_id"://奖品ID "prize_week"://奖品期数 "status"://状态 "prize_name"://奖品名称 "thumbnail"://奖品图片 "address"://收货地址 "createtime":"createtime",//获奖时间 } }</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-34"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 农场管理中农场信息 <span class="text-muted">/api/project/farm</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"> <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="sandbox34"> <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/project/farm" method="POST" name="form34" id="form34"> <div class="form-group"> 无 </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//农场id "name"://农场名称 "avatar"://头像 "score":"",//累计公分 } }</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/project/myguan</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"> 无 </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/project/myguan" method="POST" name="form43" id="form43"> <div class="form-group"> 无 </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": "SUCCESS", "time": "1553839125", "data": { "id"://关注ID "avatar"://用户头像 "user_id"://用户ID "farm_id"://农场id "createtime"://创建时间 "name"://农场名称 "project_num"://项目数量 "fun_name"://粉丝数量 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-49"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion49" href="#collapseOne49"> 项目评论列表 <span class="text-muted">/api/project/commentlist</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>farm_id</td> <td>int</td> <td>否</td> <td>农场id</td> </tr> <tr> <td>project_id</td> <td>int</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="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/project/commentlist" method="POST" name="form49" id="form49"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="project_id">project_id</label> <input type="int" class="form-control input-sm" id="project_id" placeholder="项目id" name="project_id"> </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": "SUCCESS", "time": "1553839125", "data": { "id"://评论ID "avatar"://用户头像 "nickname"://用户昵称 "farm_id"://农场id "project_id"://项目id "user_id"://用户ID "content"://评论内容 "good_name"://点赞数 "createtime"://评论时间 "is_zan"://是否点过赞(1否2是</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/project/comment</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>farm_id</td> <td>int</td> <td>否</td> <td>农场id</td> </tr> <tr> <td>project_id</td> <td>int</td> <td>否</td> <td>项目id</td> </tr> <tr> <td>conten</td> <td>int</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="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/project/comment" method="POST" name="form48" id="form48"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="project_id">project_id</label> <input type="int" class="form-control input-sm" id="project_id" placeholder="项目id" name="project_id"> </div> <div class="form-group"> <label class="control-label" for="conten">conten</label> <input type="int" class="form-control input-sm" id="conten" placeholder="评论内容" name="conten"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion47" href="#collapseOne47"> 溯源历史 <span class="text-muted">/api/project/his_record</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"> <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="sandbox47"> <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/project/his_record" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id"://溯源记录ID "image"://产品图片或者视频 "status"://项目状态(0培育中1将收获2已收获) "theme"://溯源主题 "avatar"://用户头像 "nickname"://农户昵称 "content"://溯源记录备注 "week"://星期 "weather":天气 "humidity"://湿度 "temperature"://温度 "wind"://风力 "air"://空气质量 "createtime"://创建时间 "project_id"://项目ID "project_image"://项目图片 "proect_name"://项目名称 "look_num"://浏览量 "good_num"://点赞量 "project_content"://项目简介 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion46" href="#collapseOne46"> 添加溯源记录 <span class="text-muted">/api/project/record</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"> <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>farm_id</td> <td>int</td> <td>否</td> <td>农场id</td> </tr> <tr> <td>project_id</td> <td>int</td> <td>否</td> <td>项目id</td> </tr> <tr> <td>image</td> <td>int</td> <td>否</td> <td>产品图片或者视频</td> </tr> <tr> <td>theme</td> <td>string</td> <td>否</td> <td>溯源主题</td> </tr> <tr> <td>status</td> <td>int</td> <td>否</td> <td>项目状态(0培育中1将收获2已收获)</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="sandbox46"> <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/project/record" method="POST" name="form46" id="form46"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="project_id">project_id</label> <input type="int" class="form-control input-sm" id="project_id" placeholder="项目id" name="project_id"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="int" class="form-control input-sm" id="image" placeholder="产品图片或者视频" name="image"> </div> <div class="form-group"> <label class="control-label" for="theme">theme</label> <input type="string" class="form-control input-sm" id="theme" placeholder="溯源主题" name="theme"> </div> <div class="form-group"> <label class="control-label" for="status">status</label> <input type="int" class="form-control input-sm" id="status" placeholder="项目状态(0培育中1将收获2已收获)" name="status"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="string" class="form-control input-sm" id="content" placeholder="溯源记录备注" name="content"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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/project/mycode</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>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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/project/mycode" method="POST" name="form45" id="form45"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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": "SUCCESS", "time": "1553839125", "data": { "id"://项目ID "image"://项目图片 "thumbnail"://项目溯源码 "project_name"://项目名称 "farm_name"://农场名称 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion44" href="#collapseOne44"> 我的粉丝 <span class="text-muted">/api/project/myfun</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/project/myfun" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id"://关注ID "user_avatar"://用户头像 "user_id"://用户ID "farm_id"://农场id "name"://农场名称 "project_num"://项目数量 "fun_name"://粉丝数量 "is_guan"://1未关注2已关注 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion42" href="#collapseOne42"> 农场取消关注 <span class="text-muted">/api/project/noguan</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>farm_id</td> <td>int</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="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/project/noguan" method="POST" name="form42" id="form42"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 项目列表 <span class="text-muted">/api/project/get_all</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"> <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>farm_id</td> <td>int</td> <td>否</td> <td>农场id</td> </tr> <tr> <td>page</td> <td>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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>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/project/get_all" method="POST" name="form35" id="form35"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//项目id "project_name"://项目名称 "image":"image",//项目封面图 "content"://项目简介 "look_num":"look_num",//浏览量 "good_num":"good_num",//点赞量 "status"://项目状态(0培育中1将收获2已收获) "createtime":"createtime",//创建时间 } }</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/project/guanzhu</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>farm_id</td> <td>int</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="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/project/guanzhu" method="POST" name="form41" id="form41"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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/project/nogood</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>project_id</td> <td>int</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="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/project/nogood" method="POST" name="form40" id="form40"> <div class="form-group"> <label class="control-label" for="project_id">project_id</label> <input type="int" class="form-control input-sm" id="project_id" placeholder="项目id" name="project_id"> </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": "SUCCESS", "time": "1553839125", "data": { } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-39"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion39" href="#collapseOne39"> 项目点赞 <span class="text-muted">/api/project/good</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"> <table class="table table-hover"> <thead> <tr> <th>名称</th> <th>类型</th> <th>必选</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>project_id</td> <td>int</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="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/project/good" method="POST" name="form39" id="form39"> <div class="form-group"> <label class="control-label" for="project_id">project_id</label> <input type="int" class="form-control input-sm" id="project_id" placeholder="项目id" name="project_id"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion38" href="#collapseOne38"> 项目溯源 <span class="text-muted">/api/project/pro_record</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"> <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>int</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="sandbox38"> <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/project/pro_record" method="POST" name="form38" id="form38"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="int" class="form-control input-sm" id="id" placeholder="项目id" name="id"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id"://溯源记录ID "image"://产品图片或者视频 "status"://项目状态(0培育中1将收获2已收获) "theme"://溯源主题 "avatar"://用户头像 "nickname"://农户昵称 "content"://溯源记录备注 "week"://星期 "weather":天气 "humidity"://湿度 "temperature"://温度 "wind"://风力 "air"://空气质量 "createtime":创建时间 } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion37" href="#collapseOne37"> 项目详情 <span class="text-muted">/api/project/detail</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"> <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>int</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="sandbox37"> <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/project/detail" method="POST" name="form37" id="form37"> <div class="form-group"> <label class="control-label" for="id">id</label> <input type="int" class="form-control input-sm" id="id" placeholder="项目id" name="id"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "images"://项目banner "project_name"://项目名称 "status"://项目状态(0培育中1将收获2已收获) "content"://项目简介 "look_num":"look_num",//浏览量 "good_num":"good_num",//点赞量 "farm_name"://农场名称 "farm_content"://农场简介 "is_guan"://是否关注(1否2是</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion36" href="#collapseOne36"> 添加项目 <span class="text-muted">/api/project/getadd</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"> 添加项目 </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>farm_id</td> <td>int</td> <td>否</td> <td>农场id</td> </tr> <tr> <td>image</td> <td>int</td> <td>否</td> <td>产品图片</td> </tr> <tr> <td>project_name</td> <td>string</td> <td>否</td> <td>项目名称</td> </tr> <tr> <td>name</td> <td>int</td> <td>否</td> <td>产品名称</td> </tr> <tr> <td>content</td> <td>string</td> <td>否</td> <td>项目简介</td> </tr> <tr> <td>address</td> <td>string</td> <td>否</td> <td>产品位置</td> </tr> <tr> <td>province</td> <td>string</td> <td>否</td> <td>省份信息</td> </tr> <tr> <td>city</td> <td>string</td> <td>否</td> <td>市区信息</td> </tr> <tr> <td>county</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> <tr> <td>status</td> <td>int</td> <td>否</td> <td>项目状态(0培育中1将收获2已收获)</td> </tr> <tr> <td>estimate</td> <td>string</td> <td>否</td> <td>预估产量</td> </tr> <tr> <td>estimate_time</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="sandbox36"> <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/project/getadd" method="POST" name="form36" id="form36"> <div class="form-group"> <label class="control-label" for="farm_id">farm_id</label> <input type="int" class="form-control input-sm" id="farm_id" placeholder="农场id" name="farm_id"> </div> <div class="form-group"> <label class="control-label" for="image">image</label> <input type="int" class="form-control input-sm" id="image" placeholder="产品图片" name="image"> </div> <div class="form-group"> <label class="control-label" for="project_name">project_name</label> <input type="string" class="form-control input-sm" id="project_name" placeholder="项目名称" name="project_name"> </div> <div class="form-group"> <label class="control-label" for="name">name</label> <input type="int" class="form-control input-sm" id="name" placeholder="产品名称" name="name"> </div> <div class="form-group"> <label class="control-label" for="content">content</label> <input type="string" class="form-control input-sm" id="content" placeholder="项目简介" name="content"> </div> <div class="form-group"> <label class="control-label" for="address">address</label> <input type="string" class="form-control input-sm" id="address" placeholder="产品位置" name="address"> </div> <div class="form-group"> <label class="control-label" for="province">province</label> <input type="string" class="form-control input-sm" id="province" placeholder="省份信息" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" placeholder="市区信息" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" placeholder="区县信息" name="county"> </div> <div class="form-group"> <label class="control-label" for="lng">lng</label> <input type="string" class="form-control input-sm" id="lng" 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" placeholder="纬度" name="lat"> </div> <div class="form-group"> <label class="control-label" for="status">status</label> <input type="int" class="form-control input-sm" id="status" placeholder="项目状态(0培育中1将收获2已收获)" name="status"> </div> <div class="form-group"> <label class="control-label" for="estimate">estimate</label> <input type="string" class="form-control input-sm" id="estimate" placeholder="预估产量" name="estimate"> </div> <div class="form-group"> <label class="control-label" for="estimate_time">estimate_time</label> <input type="string" class="form-control input-sm" id="estimate_time" placeholder="预估成熟期" name="estimate_time"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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/project/goodcomment</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>comment_id</td> <td>int</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="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/project/goodcomment" method="POST" name="form50" id="form50"> <div class="form-group"> <label class="control-label" for="comment_id">comment_id</label> <input type="int" class="form-control input-sm" id="comment_id" placeholder="评论id" name="comment_id"> </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": "SUCCESS", "time": "1553839125", "data": { } }</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-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/sms/send</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"> 无 </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="sandbox51"> <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="form51" id="form51"> <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="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">无</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/sms/check</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"> 无 </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="sandbox52"> <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="form52" id="form52"> <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="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">无</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-53"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion53" href="#collapseOne53"> 获取sessionKey和openid <span class="text-muted">/api/user/getSessionKey</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"> 获取sessionKey和openid </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> </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>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getSessionKey" method="POST" name="form53" id="form53"> <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="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": "1553839125", "data": { "session_key": "session_key",//token "openid": "openid",//openid }, }</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/user/http_get</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"> 无 </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="sandbox54"> <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/http_get" method="get" name="form54" id="form54"> <div class="form-group"> 无 </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">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-55"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion55" href="#collapseOne55"> 小程序登录注册 <span class="text-muted">/api/user/login</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"> 无 </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>session_key</td> <td>string</td> <td>是</td> <td>session_key</td> </tr> <tr> <td>encrypted_data</td> <td>string</td> <td>是</td> <td>encrypted_data</td> </tr> <tr> <td>iv</td> <td>string</td> <td>是</td> <td>iv</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="sandbox55"> <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="form55" id="form55"> <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="session_key">session_key</label> <input type="string" class="form-control input-sm" id="session_key" required placeholder="session_key" name="session_key"> </div> <div class="form-group"> <label class="control-label" for="encrypted_data">encrypted_data</label> <input type="string" class="form-control input-sm" id="encrypted_data" required placeholder="encrypted_data" name="encrypted_data"> </div> <div class="form-group"> <label class="control-label" for="iv">iv</label> <input type="string" class="form-control input-sm" id="iv" required placeholder="iv" name="iv"> </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": "1553839125", "data": { "token": "token",//登录唯一标识 }, }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion56" href="#collapseOne56"> 通过code获取token <span class="text-muted">/api/user/getToken</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"> 通过code获取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"> <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> </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>参数</strong></div> <div class="panel-body"> <form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getToken" method="POST" name="form56" id="form56"> <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="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": "SUCCESS", "time": "1553839125", "data": { "token": "token",//登录唯一标识 }, }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-57"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion57" href="#collapseOne57"> 用户信息 <span class="text-muted">/api/user/member</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"> <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="sandbox57"> <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/user/member" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id": "id",//用户id "nickname": "nickname",//用户昵称 "avatar": "avatar",//头像 "is_ren"://是否认证过(1认证过2没有认证过</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion58" href="#collapseOne58"> 个人中心 <span class="text-muted">/api/user/info</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"> <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="sandbox58"> <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/user/info" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id": "id",//用户id "score": //用户积分 "identity": //身份 }, }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion59" href="#collapseOne59"> 邻居家的余粮 <span class="text-muted">/api/user/residue</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"> 邻居家的余粮 </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>inter</td> <td>否</td> <td>当前页(默认1</td> </tr> <tr> <td>pageNum</td> <td>inter</td> <td>否</td> <td>每页显示数据个数(默认10)</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="sandbox59"> <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/user/residue" method="POST" name="form59" id="form59"> <div class="form-group"> <label class="control-label" for="page">page</label> <input type="inter" class="form-control input-sm" id="page" placeholder="当前页(默认1" name="page"> </div> <div class="form-group"> <label class="control-label" for="pageNum">pageNum</label> <input type="inter" class="form-control input-sm" id="pageNum" placeholder="每页显示数据个数(默认10)" name="pageNum"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":项目ID, "farm_id":农场ID 'project_name'://项目名称, "image"://项目图片 'farm_name'://农场名称, "avatar"://头像 'look_num'://浏览量, "good_num"://点赞量 'thumbnail'://图片 "address"://项目地址 "status"://是否点过赞(1已经点过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-60"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion60" href="#collapseOne60"> 修改用户头像 <span class="text-muted">/api/userinfo/updthumbnail</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"> <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>thumbnail</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="sandbox60"> <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/userinfo/updthumbnail" method="POST" name="form60" id="form60"> <div class="form-group"> <label class="control-label" for="thumbnail">thumbnail</label> <input type="string" class="form-control input-sm" id="thumbnail" required placeholder="头像" name="thumbnail"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { }, }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion61" href="#collapseOne61"> 修改用户昵称 <span class="text-muted">/api/userinfo/updnickname</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"> <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>nickname</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="sandbox61"> <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/userinfo/updnickname" method="POST" name="form61" id="form61"> <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"> <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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { }, }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion62" href="#collapseOne62"> 绑定用户手机号 <span class="text-muted">/api/userinfo/updmobile</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"> <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>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="sandbox62"> <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/userinfo/updmobile" method="POST" name="form62" id="form62"> <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="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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { }, }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion63" href="#collapseOne63"> 收货地址列表 <span class="text-muted">/api/userinfo/get_all</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"> <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="sandbox63"> <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/userinfo/get_all" method="POST" 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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { "id":"id",//收货地址id "user_id":"user_id",//用户id "name":"name",//姓名 "mobile":"mobile",//手机号 "province":"province",//省 "city":"city",//市 "county":"county",//区/县 "address":"address",//详细地址 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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/userinfo/get_one</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>take_id</td> <td>int</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="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/userinfo/get_one" method="POST" name="form64" id="form64"> <div class="form-group"> <label class="control-label" for="take_id">take_id</label> <input type="int" class="form-control input-sm" id="take_id" required placeholder="收货地址id" name="take_id"> </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": "SUCCESS", "time": "1553839125", "data": { "id":"id",//收货地址id "user_id":"user_id",//用户id "name":"name",//姓名 "mobile":"mobile",//手机号 "province":"province",//省 "city":"city",//市 "county":"county",//区/县 "address":"address",//详细地址 } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-65"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion65" href="#collapseOne65"> 新增收货地址 <span class="text-muted">/api/userinfo/create_take</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>name</td> <td>string</td> <td>是</td> <td>姓名</td> </tr> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>province</td> <td>string</td> <td>是</td> <td>省</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市</td> </tr> <tr> <td>county</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="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/userinfo/create_take" method="POST" name="form65" id="form65"> <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="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="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区/县" name="county"> </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="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": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion66" href="#collapseOne66"> 更新收货地址 <span class="text-muted">/api/userinfo/update_take</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>take_id</td> <td>string</td> <td>是</td> <td>收货地址id</td> </tr> <tr> <td>name</td> <td>string</td> <td>是</td> <td>姓名</td> </tr> <tr> <td>mobile</td> <td>string</td> <td>是</td> <td>手机号</td> </tr> <tr> <td>province</td> <td>string</td> <td>是</td> <td>省</td> </tr> <tr> <td>city</td> <td>string</td> <td>是</td> <td>市</td> </tr> <tr> <td>county</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="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/userinfo/update_take" method="POST" name="form66" id="form66"> <div class="form-group"> <label class="control-label" for="take_id">take_id</label> <input type="string" class="form-control input-sm" id="take_id" required placeholder="收货地址id" name="take_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="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="province">province</label> <input type="string" class="form-control input-sm" id="province" required placeholder="省" name="province"> </div> <div class="form-group"> <label class="control-label" for="city">city</label> <input type="string" class="form-control input-sm" id="city" required placeholder="市" name="city"> </div> <div class="form-group"> <label class="control-label" for="county">county</label> <input type="string" class="form-control input-sm" id="county" required placeholder="区/县" name="county"> </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="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": "SUCCESS", "time": "1553839125", "data": { } }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" id="heading-67"> <h4 class="panel-title"> <span class="label label-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion67" href="#collapseOne67"> 删除收货地址 <span class="text-muted">/api/userinfo/delete_take</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"> <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>take_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="sandbox67"> <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/userinfo/delete_take" method="POST" name="form67" id="form67"> <div class="form-group"> <label class="control-label" for="take_id">take_id</label> <input type="string" class="form-control input-sm" id="take_id" required placeholder="收货地址id" name="take_id"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { } }</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-primary">POST</span> <a data-toggle="collapse" data-parent="#accordion68" href="#collapseOne68"> 生成用户邀请好友二维码 <span class="text-muted">/api/userinfo/imgcode</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"> <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>route</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>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/userinfo/imgcode" method="POST" name="form68" id="form68"> <div class="form-group"> <label class="control-label" for="route">route</label> <input type="string" class="form-control input-sm" id="route" required placeholder="页面路径跟参数" name="route"> </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">{ "code": 1, "msg": "SUCCESS", "time": "1553839125", "data": { }, }</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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/userinfo/getusercode</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"> 无 </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="sandbox69"> <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/userinfo/getusercode" method="get" name="form69" id="form69"> <div class="form-group"> 无 </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">无</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/userinfo/imgShare</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"> 无 </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="sandbox70"> <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/userinfo/imgShare" method="get" name="form70" id="form70"> <div class="form-group"> 无 </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">无</pre> </div> </div> </div><!-- #sample --> </div><!-- .tab-content --> </div> </div> </div> <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"> <span class="text-muted">/api/userinfo/get_access_token</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"> </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/userinfo/get_access_token" 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"> <span class="text-muted">/api/userinfo/http_get</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"> </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/userinfo/http_get" 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> <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/userinfo/http_post</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/userinfo/http_post" 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> <hr> <div class="row mt0 footer"> <div class="col-md-6" align="left"> Generated on 2019-12-28 09:39:53 </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) { storage.getItem('token') && $('#token').val(storage.getItem('token')); storage.getItem('apiUrl') && $('#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, xhrFields: { withCredentials: true }, 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>