diff --git a/app/adminapi/controller/financial/FinancialFeeApplicationsController.php b/app/adminapi/controller/financial/FinancialFeeApplicationsController.php new file mode 100644 index 000000000..dc01aaa7a --- /dev/null +++ b/app/adminapi/controller/financial/FinancialFeeApplicationsController.php @@ -0,0 +1,111 @@ +dataLists(new FinancialFeeApplicationLists()); + } + + + /** + * @notes 添加财务管理--费用申请 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 14:53 + */ + public function add() + { + $params = (new FinancialFeeApplicationValidate())->post()->goCheck('add'); + $result = FinancialFeeApplicationLogic::add($params); + if (true === $result) { + return $this->success('添加成功', [], 1, 1); + } + return $this->fail(FinancialFeeApplicationLogic::getError()); + } + + + /** + * @notes 编辑财务管理--费用申请 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 14:53 + */ + public function edit() + { + $params = (new FinancialFeeApplicationValidate())->post()->goCheck('edit'); + $result = FinancialFeeApplicationLogic::edit($params); + if (true === $result) { + return $this->success('编辑成功', [], 1, 1); + } + return $this->fail(FinancialFeeApplicationLogic::getError()); + } + + + /** + * @notes 删除财务管理--费用申请 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 14:53 + */ + public function delete() + { + $params = (new FinancialFeeApplicationValidate())->post()->goCheck('delete'); + $result = FinancialFeeApplicationLogic::delete($params); + if (true === $result) { + return $this->success('删除成功', [], 1, 1); + } + return $this->fail(FinancialFeeApplicationLogic::getError()); + } + + + /** + * @notes 获取财务管理--费用申请详情 + * @return \think\response\Json + * @author likeadmin + * @date 2024/03/27 14:53 + */ + public function detail() + { + $params = (new FinancialFeeApplicationValidate())->goCheck('detail'); + $result = FinancialFeeApplicationLogic::detail($params); + return $this->data($result); + } + + + } \ No newline at end of file