dataLists(new ProjectTravelReimbursementDetailLists()); } /** * @notes 添加报销明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/18 13:57 */ public function add() { $params = (new ProjectTravelReimbursementDetailValidate())->post()->goCheck('add'); $result = ProjectTravelReimbursementDetailLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectTravelReimbursementDetailLogic::getError()); } /** * @notes 编辑报销明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/18 13:57 */ public function edit() { $params = (new ProjectTravelReimbursementDetailValidate())->post()->goCheck('edit'); $result = ProjectTravelReimbursementDetailLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectTravelReimbursementDetailLogic::getError()); } /** * @notes 删除报销明细 * @return \think\response\Json * @author likeadmin * @date 2024/01/18 13:57 */ public function delete() { $params = (new ProjectTravelReimbursementDetailValidate())->post()->goCheck('delete'); ProjectTravelReimbursementDetailLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取报销明细详情 * @return \think\response\Json * @author likeadmin * @date 2024/01/18 13:57 */ public function detail() { $params = (new ProjectTravelReimbursementDetailValidate())->goCheck('detail'); $result = ProjectTravelReimbursementDetailLogic::detail($params); return $this->data($result); } }