...
|
...
|
@@ -46,6 +46,35 @@ class Index extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (轮播图详情)
|
|
|
* @ApiSummary (轮播图详情)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/index/picdetail)
|
|
|
*
|
|
|
* @ApiParams (name="id", type="int", required=false, description="图片id")
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "成功",
|
|
|
"time": "1571492001",
|
|
|
"data": {
|
|
|
"content"://内容
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function picdetail()
|
|
|
{
|
|
|
$id = $this->request->param('id');
|
|
|
if(empty($id)){
|
|
|
$this->error('缺少必要参数');
|
|
|
}
|
|
|
$data = Db::name('pic')
|
|
|
->where('id',$id)
|
|
|
->find();
|
|
|
$this->success('success',$data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (首页咨询分类列表)
|
|
|
* @ApiSummary (首页咨询分类列表)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|