项目相关功能完善

This commit is contained in:
2025-05-08 14:10:45 +08:00
parent 8ea4f2bafd
commit 0d51623bbf
4 changed files with 65 additions and 2 deletions

View File

@@ -38,4 +38,23 @@ class ProjectController extends BaseController
'修改成功'
);
}
/**
* 修改项目内容
* @Method POST
* @return JsonResponse
* @throws Exception
*/
public function changeType(): JsonResponse
{
$id = request()->post('id');
$type = request()->post('type');
if (empty($id) || empty($type)) {
return jerr('参数错误');
}
return jok(
$this->service->changeType($id, $type),
'修改成功'
);
}
}