WorkerController.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. namespace app\modules\client\controllers\v1;
  3. use app\modules\client\controllers\BaseController;
  4. use app\modules\client\models\v1\WorkerForm;
  5. class WorkerController extends BaseController
  6. {
  7. //服务人员列表
  8. public function actionWorkerList() {
  9. $form = new WorkerForm();
  10. $form->attributes = get_params();
  11. $form->store_id = get_store_id();
  12. return $this->asJson($form->workerList());
  13. }
  14. //获取筛选信息
  15. public function actionWorkerIndex() {
  16. $form = new WorkerForm();
  17. $form->attributes = get_params();
  18. $form->store_id = get_store_id();
  19. return $this->asJson($form->workerIndex());
  20. }
  21. //获取服务人员信息
  22. public function actionWorkerInfo() {
  23. $form = new WorkerForm();
  24. $form->attributes = get_params();
  25. $form->store_id = get_store_id();
  26. return $this->asJson($form->workerInfo());
  27. }
  28. //获取服务商品详细信息
  29. public function actionWorkerGoodsInfo() {
  30. $form = new WorkerForm();
  31. $form->attributes = get_params();
  32. $form->store_id = get_store_id();
  33. return $this->asJson($form->workerGoodsInfo());
  34. }
  35. //获取商品分类列表
  36. public function actionWorkerGoodsCateList() {
  37. $form = new WorkerForm();
  38. $form->attributes = get_params();
  39. $form->store_id = get_store_id();
  40. return $this->asJson($form->workerGoodsCateList());
  41. }
  42. //获取商品分类列表
  43. public function actionWorkerCateList() {
  44. $form = new WorkerForm();
  45. $form->attributes = get_params();
  46. $form->store_id = get_store_id();
  47. return $this->asJson($form->workerCateList());
  48. }
  49. //获取服务商品列表
  50. public function actionWorkerGoodsList() {
  51. $form = new WorkerForm();
  52. $form->attributes = get_params();
  53. $form->store_id = get_store_id();
  54. return $this->asJson($form->workerGoodsList());
  55. }
  56. //获取服务人员可预约时间
  57. public function actionWorkerTime() {
  58. $form = new WorkerForm();
  59. $form->attributes = get_params();
  60. $form->store_id = get_store_id();
  61. return $this->asJson($form->workerTime());
  62. }
  63. }