dataLists(new ProjectProfitSetLists()); } /** * @notes 添加项目利润设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/14 15:39 */ public function add() { $params = (new ProjectProfitSetValidate())->post()->goCheck('add'); $result = ProjectProfitSetLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(ProjectProfitSetLogic::getError()); } /** * @notes 编辑项目利润设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/14 15:39 */ public function edit() { $params = (new ProjectProfitSetValidate())->post()->goCheck('edit'); $result = ProjectProfitSetLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(ProjectProfitSetLogic::getError()); } /** * @notes 删除项目利润设置 * @return \think\response\Json * @author likeadmin * @date 2023/12/14 15:39 */ public function delete() { $params = (new ProjectProfitSetValidate())->post()->goCheck('delete'); ProjectProfitSetLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取项目利润设置详情 * @return \think\response\Json * @author likeadmin * @date 2023/12/14 15:39 */ public function detail() { $params = (new ProjectProfitSetValidate())->goCheck('detail'); $result = ProjectProfitSetLogic::detail($params); return $this->data($result); } }