| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\worker;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\worker\WorkerLevelForm;
- class WorkerLevelController extends BaseController
- {
- // 服务分类列表
- public function actionWorkerLevelList() {
- $form = new WorkerLevelForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerLevelList());
- }
- // 服务分类设置
- public function actionWorkerLevelSave() {
- $form = new WorkerLevelForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerLevelSave());
- }
- // 服务分类状态修改
- public function actionWorkerLevelStatus() {
- $form = new WorkerLevelForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerLevelStatus());
- }
- }
|