dataLists(new SupervisionWitnessSamplingDetailLists()); } /** * @notes 添加工程监理--见证取样明细 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 09:22 */ public function add() { $params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('add'); $result = SupervisionWitnessSamplingDetailLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionWitnessSamplingDetailLogic::getError()); } /** * @notes 编辑工程监理--见证取样明细 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 09:22 */ public function edit() { $params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('edit'); $result = SupervisionWitnessSamplingDetailLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionWitnessSamplingDetailLogic::getError()); } /** * @notes 检验工程监理--见证取样明细 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 09:22 */ public function check() { $params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('check'); $result = SupervisionWitnessSamplingDetailLogic::check($params,$this->adminId); if (true === $result) { return $this->success('检验成功', [], 1, 1); } return $this->fail(SupervisionWitnessSamplingDetailLogic::getError()); } /** * @notes 删除工程监理--见证取样明细 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 09:22 */ public function delete() { $params = (new SupervisionWitnessSamplingDetailValidate())->post()->goCheck('delete'); $result = SupervisionWitnessSamplingDetailLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(SupervisionWitnessSamplingDetailLogic::getError()); } /** * @notes 获取工程监理--见证取样明细详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 09:22 */ public function detail() { $params = (new SupervisionWitnessSamplingDetailValidate())->goCheck('detail'); $result = SupervisionWitnessSamplingDetailLogic::detail($params); return $this->data($result); } }