WorkerGoodsCateController.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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\modules\admin\controllers\BaseController;
  9. use app\modules\admin\models\worker\WorkerGoodsCateForm;
  10. class WorkerGoodsCateController extends BaseController
  11. {
  12. // 服务商品分类列表
  13. public function actionWorkerGoodsCateList() {
  14. $form = new WorkerGoodsCateForm();
  15. $form->attributes = get_params();
  16. $form->store_id = get_store_id();
  17. return $this->asJson($form->workerGoodsCateList());
  18. }
  19. // 服务商品分类设置
  20. public function actionWorkerGoodsCateSave() {
  21. $form = new WorkerGoodsCateForm();
  22. $form->attributes = post_params();
  23. $form->store_id = get_store_id();
  24. return $this->asJson($form->workerGoodsCateSave());
  25. }
  26. // 服务商品分类状态修改
  27. public function actionWorkerGoodsCateStatus() {
  28. $form = new WorkerGoodsCateForm();
  29. $form->attributes = post_params();
  30. $form->store_id = get_store_id();
  31. return $this->asJson($form->workerGoodsCateStatus());
  32. }
  33. public function actionGoodsCateList() {
  34. $form = new WorkerGoodsCateForm();
  35. $form->is_show = 1;
  36. $form->no_page = 1;
  37. $form->store_id = get_store_id();
  38. return $this->asJson($form->workerGoodsCateList());
  39. }
  40. }