repository = $repository; } /** * TODO 团列表 * @return \think\response\Json * @author Qinii * @day 1/12/21 */ public function lst() { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword','status','date','mer_id','is_trader','user_name']); $data = $this->repository->getAdminList($where,$page,$limit); return app('json')->success($data); } /** * TODO 团成员列表 * @param $id * @return \think\response\Json * @author Qinii * @day 1/12/21 */ public function detail($id) { [$page, $limit] = $this->getPage(); if(!$this->repository->get($id)) return app('json')->fail('数据不存在'); $where = ['group_buying_id' => $id]; $list = app()->make(ProductGroupUserRepository::class)->getAdminList($where,$page,$limit); return app('json')->success($list); } }