...
|
...
|
@@ -16,42 +16,6 @@ class Activity extends Api |
|
|
protected $noNeedRight = ['*'];
|
|
|
protected $noNeedLogin = ['*'];
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (活动名称列表)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
* @ApiParams (name="id", type="integer", required=true, description="活动ID")
|
|
|
* @ApiParams (name="page", type="integer", required=true, description="页数")
|
|
|
* @ApiReturn ({
|
|
|
'code':'1',
|
|
|
'msg':'返回成功'
|
|
|
'data':
|
|
|
"list": {
|
|
|
"total": 4, 总条数
|
|
|
"per_page": 10,每页数量
|
|
|
"current_page": 1,当前页
|
|
|
"last_page": 1,最后一页
|
|
|
"data": [
|
|
|
{
|
|
|
"goods_id": 21,
|
|
|
"goods_name": "小米Mix3",
|
|
|
"price": "100.00",
|
|
|
"line_price": "1000.00",划线价
|
|
|
"image_text": "图片路径"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"timeslot": "秒杀时间段"
|
|
|
"image": "广告图"
|
|
|
})
|
|
|
*/
|
|
|
public function activity()
|
|
|
{
|
|
|
|
|
|
$list = Db::name('activity')->select();
|
|
|
$this->success('活动商品列表',['list'=>$list]);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (活动商品列表)
|
...
|
...
|
|