dataLists(); } function add() { $params = (new GoodsServiceGuaranteeValidate())->post()->goCheck('add'); $res = (new GoodsServiceGuaranteeLogic)->add($params); if (true === $res) { return $this->success('添加成功',[],1,1); } return $this->fail($res); } function edit() { $params = (new GoodsServiceGuaranteeValidate())->post()->goCheck('edit'); $res = (new GoodsServiceGuaranteeLogic)->edit($params); if (true === $res) { return $this->success('编辑成功',[],1,1); } return $this->fail($res); } function delete() { $params = (new GoodsServiceGuaranteeValidate())->post()->goCheck('delete'); $res = (new GoodsServiceGuaranteeLogic)->delete($params); if (true === $res) { return $this->success('删除成功',[],1,1); } return $this->fail($res); } }