| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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\SaasCategoryForm;
- class SaasCategoryController extends BaseController
- {
- public function actionList()
- {
- $form = new SaasCategoryForm();
- return $this->asJson($form->getList());
- }
- public function actionChangeStatus()
- {
- $id = post_params('id');
- $form = new SaasCategoryForm();
- return $this->asJson($form->changeStatus($id));
- }
- public function actionDelete()
- {
- $id = post_params('id');
- $form = new SaasCategoryForm();
- return $this->asJson($form->delete($id));
- }
- public function actionEdit()
- {
- $params = all_params();
- $form = new SaasCategoryForm();
- return $this->asJson($form->edit($params));
- }
- }
|