post('page', 1); // 默认第一页 $size = $request->post('size', 15); // 默认每页15条 $status = $request->post('status', 0); // 默认状态为0(全部) $time = $request->post('time', null); // 默认时间不做过滤 $user_id = $request->data['id']; return ApiResponseApp::success(UserRewardDao::search($user_id, $status, $time, $page, $size)); } /** * @Apidoc\Title("1.0 消息根据type 判断类型") * @Apidoc\Url("api/common/messageList") * @Apidoc\Method("POST") */ public function messageList(Request $request) { $type = $request->get('type'); /** * 返回轮播图 */ if ($type == 5) { } } }