service = new EnshrineService(); $this->noticeService = new EnshrineNoticeService(); $this->motionService = new MotionService(); } /** * 供奉记录 * @return array */ public function index(){ return $this->service->getDataList($this->userId); } /** * 供奉物品 * @return array */ public function goods(){ return $this->service->goods(); } /** * 选择佛像 * @return mixed */ public function select(){ return $this->service->select($this->userId); } /** * 送圣 * @return array */ public function packoff(){ return $this->service->packoff($this->userId); } /** * 超度牌位 * @return mixed */ public function chaodu(Request $request, EnshrineValidator $validator){ $params = $validator->check($request->all(),'chaodu'); if(!is_array($params)){ return message($params, false); } return $this->service->chaodu($this->userId); } /** * 保存供奉操作记录 * @return array */ public function actionRecord(){ return $this->service->actionRecord($this->userId); } /** * 供奉操作记录 * @return array */ public function xinyuan(){ return $this->service->actionList($this->userId); } /** * 供奉操作记录处理 * @return array */ public function catchXuyuan(){ return $this->service->catchXuyuan($this->userId); } /** * 购买物品 * @return array */ public function buy(){ return $this->service->buy($this->userId); } /** * 贡品购买记录 * @return array */ public function orderList(){ return $this->service->orderList($this->userId); } /** * 发布忏悔/回向记录 * @return mixed */ public function noticePublish(Request $request, EnshrineNoticeValidator $validator){ $params = $validator->check($request->all(),'publish'); if(!is_array($params)){ return message($params, false); } return $this->noticeService->publish($this->userId); } /** * 忏悔回向记录 * @return mixed */ public function notice(){ return $this->noticeService->getDataList($this->userId); } /** * 忏悔回向记录删除 * @return mixed */ public function noticeDel(){ return $this->noticeService->del($this->userId); } /** * 念佛记录 * @return array */ public function motion(){ return $this->motionService->save($this->userId); } /** * 念佛统计 * @return array */ public function motionCount(){ return $this->motionService->counts($this->userId); } }