dataLists(new ProjectEquipmentBudgetDetailLists()); } /** * @notes 添加机具预算明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function add() { $params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('add'); $result = ProjectEquipmentBudgetDetailLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectEquipmentBudgetDetailLogic::getError()); } /** * @notes 编辑机具预算明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function edit() { $params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('edit'); $result = ProjectEquipmentBudgetDetailLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectEquipmentBudgetDetailLogic::getError()); } /** * @notes 删除机具预算明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function delete() { $params = (new ProjectEquipmentBudgetDetailValidate())->post()->goCheck('delete'); ProjectEquipmentBudgetDetailLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取机具预算明细详情 * @return \think\response\Json * @author likeadmin * @date 2024/01/16 11:40 */ public function detail() { $params = (new ProjectEquipmentBudgetDetailValidate())->goCheck('detail'); $result = ProjectEquipmentBudgetDetailLogic::detail($params); return $this->data($result); } }