repository = $repository; } /** * Common: 信息列表 * Author: wu-hui * Time: 2024/06/14 17:22 * @return mixed * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ public function getList(){ [$page, $limit] = $this->getPage(); $params = $this->request->params(['level_id','mer_id','uid','search_text']); $data = $this->repository->getList((array)$params,(int)$page,(int)$limit); return app('json')->success($data); } /** * Common: 删除信息 * Author: wu-hui * Time: 2024/06/14 17:38 * @param $id * @return mixed */ public function delInfo($id){ $this->repository->getSearchModel(['id' => $id])->delete(); return app('json')->success('删除成功'); } }