| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers;
- use app\modules\admin\models\DeliveryRulesForm;
- class DeliveryRulesController extends BaseController
- {
- /**
- * @return \yii\web\Response
- * 获取列表
- */
- public function actionList()
- {
- $form = new DeliveryRulesForm();
- $form->attributes = get_params();
- $res = $form->search();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 保存信息
- */
- public function actionSave()
- {
- $form = new DeliveryRulesForm();
- $form->attributes = post_params();
- $res = $form->save();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 修改状态
- */
- public function actionSetStatus()
- {
- $form = new DeliveryRulesForm();
- $form->attributes = get_params();
- $res = $form->setStatus();
- return $this->asJson($res);
- }
- public function actionSelectList()
- {
- $form = new DeliveryRulesForm();
- $form->attributes = get_params();
- $res = $form->getSelectList();
- return $this->asJson($res);
- }
- }
|