| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers;
- use app\models\Goods;
- use app\models\Option;
- use app\constants\OptionSetting;
- use app\modules\admin\models\ActivityWechatRoomForm;
- class ActivityWechatRoomController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取列表
- */
- public function actionList()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = get_params();
- $res = $form->search();
- return $this->asJson($res);
- }
- public function actionListSelect()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = get_params();
- $res = $form->listSelect();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 保存信息
- */
- public function actionSave()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = post_params();
- $res = $form->save();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取信息
- */
- public function actionGetInfo()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = get_params();
- $res = $form->getInfo();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 修改状态
- */
- public function actionDel()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = post_params();
- $res = $form->del();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 修改状态
- */
- public function actionClose()
- {
- $form = new ActivityWechatRoomForm();
- $form->attributes = post_params();
- $res = $form->close();
- return $this->asJson($res);
- }
- }
|