WorkerCateController.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\modules\admin\controllers\worker;
  8. use app\models\WechatConfig;
  9. use app\modules\admin\controllers\BaseController;
  10. use app\modules\admin\models\WechatConfigForm;
  11. use app\modules\admin\models\worker\WorkerCateForm;
  12. class WorkerCateController extends BaseController
  13. {
  14. // 服务分类列表
  15. public function actionWorkerCateList() {
  16. $form = new WorkerCateForm();
  17. $form->attributes = get_params();
  18. $form->store_id = get_store_id();
  19. return $this->asJson($form->workerCateList());
  20. }
  21. // 服务分类设置
  22. public function actionWorkerCateSave() {
  23. $form = new WorkerCateForm();
  24. $form->attributes = post_params();
  25. $form->store_id = get_store_id();
  26. return $this->asJson($form->workerCateSave());
  27. }
  28. // 服务分类状态修改
  29. public function actionWorkerCateStatus() {
  30. $form = new WorkerCateForm();
  31. $form->attributes = post_params();
  32. $form->store_id = get_store_id();
  33. return $this->asJson($form->workerCateStatus());
  34. }
  35. }