attributes = get_params(); $res = $form->search(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取活动记录 */ public function actionActivityList() { $form = new FreeQueueForm(); $form->attributes = get_params(); $res = $form->searchActivity(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取活动记录详情 */ public function actionActivityDetailList() { $form = new FreeQueueForm(); $form->attributes = get_params(); $res = $form->searchActivityDetail(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取参与记录 */ public function actionActivityJoin() { $form = new FreeQueueForm(); $form->attributes = get_params(); $res = $form->searchJoin(); return $this->asJson($res); } /** * Undocumented function * @desc: 参与记录详情 */ public function actionActivityJoinDetail() { //主键id用key标识并进行获取 $form = new FreeQueueForm(); $form->attributes = get_params(); $res = $form->searchJoinDetail(); return $this->asJson($res); } /** * @return \yii\web\Response * 保存信息 */ public function actionSave() { $form = new FreeQueueForm(); $form->attributes = post_params(); $res = $form->save(post_params()); return $this->asJson($res); } /** * @return \yii\web\Response * 获取信息 */ public function actionGetInfo() { $form = new FreeQueueForm(); $form->attributes = get_params(); $res = $form->getInfo(); return $this->asJson($res); } /** * @return \yii\web\Response * 修改状态 */ public function actionSetStatus() { $form = new FreeQueueForm(); $form->attributes = post_params(); $res = $form->setStatus(); return $this->asJson($res); } }