项目相关功能完善
This commit is contained in:
@@ -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),
|
||||
'修改成功'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user