dataLists(new SupervisionTestBlocksSpecimensLists()); } /** * @notes 添加工程监理--试块试件见证 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 14:02 */ public function add() { $params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('add'); $result = SupervisionTestBlocksSpecimensLogic::add($params,$this->adminId); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(SupervisionTestBlocksSpecimensLogic::getError()); } /** * @notes 编辑工程监理--试块试件见证 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 14:02 */ public function edit() { $params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('edit'); $result = SupervisionTestBlocksSpecimensLogic::edit($params,$this->adminId); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(SupervisionTestBlocksSpecimensLogic::getError()); } /** * @notes 删除工程监理--试块试件见证 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 14:02 */ public function delete() { $params = (new SupervisionTestBlocksSpecimensValidate())->post()->goCheck('delete'); $result = SupervisionTestBlocksSpecimensLogic::delete($params); if (true === $result) { return $this->success('删除成功', [], 1, 1); } return $this->fail(SupervisionTestBlocksSpecimensLogic::getError()); } /** * @notes 获取工程监理--试块试件见证详情 * @return \think\response\Json * @author likeadmin * @date 2024/02/29 14:02 */ public function detail() { $params = (new SupervisionTestBlocksSpecimensValidate())->goCheck('detail'); $result = SupervisionTestBlocksSpecimensLogic::detail($params); return $this->data($result); } }