| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace app\modules\client\controllers\v1;
- use app\modules\client\controllers\BaseController;
- use app\modules\client\models\v1\WorkerForm;
- class WorkerController extends BaseController
- {
- //服务人员列表
- public function actionWorkerList() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerList());
- }
- //获取筛选信息
- public function actionWorkerIndex() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerIndex());
- }
- //获取服务人员信息
- public function actionWorkerInfo() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerInfo());
- }
- //获取服务商品详细信息
- public function actionWorkerGoodsInfo() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerGoodsInfo());
- }
- //获取商品分类列表
- public function actionWorkerGoodsCateList() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerGoodsCateList());
- }
- //获取商品分类列表
- public function actionWorkerCateList() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerCateList());
- }
- //获取服务商品列表
- public function actionWorkerGoodsList() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerGoodsList());
- }
- //获取服务人员可预约时间
- public function actionWorkerTime() {
- $form = new WorkerForm();
- $form->attributes = get_params();
- $form->store_id = get_store_id();
- return $this->asJson($form->workerTime());
- }
- }
|