| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers;
- use Yii;
- use Exception;
- use app\modules\admin\models\SaasIntegralCatForm;
- class SaasIntegralCatController extends BaseController
- {
- public function actionList()
- {
- $form = new SaasIntegralCatForm();
- return $this->asJson($form->getList());
- }
- public function actionChangeStatus()
- {
- $id = post_params('id');
- $form = new SaasIntegralCatForm();
- return $this->asJson($form->changeStatus($id));
- }
- public function actionChangeName()
- {
- $id = post_params('id');
- $name = post_params('name');
- $form = new SaasIntegralCatForm();
- return $this->asJson($form->changeName($id, $name));
- }
- public function actionDelete()
- {
- $id = post_params('id');
- $form = new SaasIntegralCatForm();
- return $this->asJson($form->delete($id));
- }
- public function actionAdd()
- {
- $name = post_params('name');
- $form = new SaasIntegralCatForm();
- return $this->asJson($form->add($name));
- }
- }
|