Skip to content

Commit

Permalink
feat: #119-헬퍼 매칭글 수정 Controller 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueBerrySoda committed May 2, 2024
1 parent 9365ba8 commit 69b72c2
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,17 @@ public ResponseEntity<ApiResult<HelpResponse>> readHelp(
.ok(new ApiResult<>("Successfully read help", helpResponse));
}

@PutMapping("/update")
@Operation(summary = "헬퍼글 수정", description = "request 정보를 기반으로 글을 수정합니다.")
@ApiResponse(responseCode = "200", description = "완료시 200을 리턴합니다.")
public ResponseEntity<ApiResult<Integer>> updateHelp(/*@RequestHeader String token,*/
@Parameter(description = "수정할 헬퍼글의 id와 헬퍼글의 request가 들어갑니다.", required = true)
@RequestBody HelpPutRequest request) {
String userId = UUID.randomUUID().toString();//jwtTokenProvider.extractUUID(token);
helpService.updateHelp(userId, request);
return ResponseEntity
.ok(new ApiResult<>("Successfully update help", 200));
}


}

0 comments on commit 69b72c2

Please sign in to comment.