Feat: 프로젝트 로직 추가 - S11P21S002-37
This commit is contained in:
parent
46270b5734
commit
0f929ea3e1
@ -79,9 +79,9 @@ public class ProjectController {
|
|||||||
@SwaggerApiSuccess(description = "프로젝트를 성공적으로 삭제합니다.")
|
@SwaggerApiSuccess(description = "프로젝트를 성공적으로 삭제합니다.")
|
||||||
@SwaggerApiError({ErrorCode.PROJECT_NOT_FOUND, ErrorCode.PARTICIPANT_UNAUTHORIZED, ErrorCode.SERVER_ERROR})
|
@SwaggerApiError({ErrorCode.PROJECT_NOT_FOUND, ErrorCode.PARTICIPANT_UNAUTHORIZED, ErrorCode.SERVER_ERROR})
|
||||||
@DeleteMapping("/projects/{project_id}")
|
@DeleteMapping("/projects/{project_id}")
|
||||||
public ResponseEntity<Void> deleteProject(@CurrentUser final Integer memberId,
|
public BaseResponse<Void> deleteProject(@CurrentUser final Integer memberId,
|
||||||
@PathVariable("project_id") final Integer projectId) {
|
@PathVariable("project_id") final Integer projectId) {
|
||||||
projectService.deleteProject(memberId, projectId);
|
projectService.deleteProject(memberId, projectId);
|
||||||
return ResponseEntity.noContent().build();
|
return SuccessResponse.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user