repository = $repository; } /** * @param $id * @param StoreServiceLogRepository $repository * @return mixed * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author zfy * @day 2020/6/15 */ public function chatHistory($id, StoreServiceLogRepository $repository) { [$page, $limit] = $this->getPage(); return app('json')->success($repository->userList($id, $this->request->uid(), $page, $limit)); } /** * @param StoreServiceLogRepository $repository * @return mixed * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author zfy * @day 2020/6/16 */ public function getList(StoreServiceLogRepository $repository) { [$page, $limit] = $this->getPage(); return app('json')->success($repository->userMerchantList($this->request->uid(), $page, $limit)); } /** * @param StoreServiceLogRepository $repository * @return mixed * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author zfy * @day 2020/6/16 */ public function serviceUserList($merId, StoreServiceLogRepository $repository) { [$page, $limit] = $this->getPage(); return app('json')->success($repository->serviceUserList($merId, $this->request->uid(), $page, $limit)); } /** * @param $merId * @param $id * @param StoreServiceLogRepository $repository * @return mixed * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author zfy * @day 2020/6/15 */ public function serviceHistory($merId, $id, StoreServiceLogRepository $repository) { [$page, $limit] = $this->getPage(); return app('json')->success($repository->merList($merId, $id, $this->request->uid(), $page, $limit)); } }