| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\worker;
- use app\models\WechatConfig;
- use app\modules\admin\controllers\BaseController;
- use app\modules\admin\models\WechatConfigForm;
- use app\modules\admin\models\worker\WorkerCateForm;
- class WorkerCateController extends BaseController
- {
- // 服务分类列表
- public function actionWorkerCateList() {
- $form = new WorkerCateForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerCateList());
- }
- // 服务分类设置
- public function actionWorkerCateSave() {
- $form = new WorkerCateForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerCateSave());
- }
- // 服务分类状态修改
- public function actionWorkerCateStatus() {
- $form = new WorkerCateForm();
- $form->attributes = post_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerCateStatus());
- }
- }
|