dataLists(new PointsProductLists()); } public function add() { $params = (new PointsProductValidate())->post()->goCheck('add'); PointsProductLogic::add($params); return $this->success('添加成功', [], 1, 1); } public function edit() { $params = (new PointsProductValidate())->post()->goCheck(); PointsProductLogic::edit($params); return $this->success('编辑成功', [], 1, 1); } public function delete() { $params = (new PointsProductValidate())->post()->goCheck('delete'); PointsProductLogic::delete($params); return $this->success('删除成功', [], 1, 1); } public function detail() { $params = (new PointsProductValidate())->goCheck('detail'); return $this->data(PointsProductLogic::detail($params)); } }