service = new FoxiangService(); $this->cateService = new FoxiangCatesService(); } /** * 列表 * @return array */ public function index(){ $params = request()->all(); return $this->service->getDataList($params); } /** * 选择佛像 * @return mixed */ public function select(){ return $this->service->select($this->userId); } /** * 获取文章分类 * @return mixed */ public function cates(){ return $this->cateService->getOptions(); } /** * 供奉记录 * @return array */ public function enshrineList(){ return $this->service->getEnshrineList($this->userId); } /** * 送圣 * @return array */ public function packoff(){ return $this->service->packoff($this->userId); } }