dataLists(new LotteryRegionLists()); } public function add() { $params = (new LotteryRegionValidate())->post()->goCheck('add'); LotteryRegionLogic::add($params); return $this->success('添加成功', [], 1, 1); } public function edit() { $params = (new LotteryRegionValidate())->post()->goCheck('edit'); $result = LotteryRegionLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(LotteryRegionLogic::getError()); } public function delete() { $params = (new LotteryRegionValidate())->post()->goCheck('delete'); LotteryRegionLogic::delete($params); return $this->success('删除成功', [], 1, 1); } public function detail() { $params = (new LotteryRegionValidate())->goCheck('detail'); $result = LotteryRegionLogic::detail($params); return $this->data($result); } }