Skip to content

Commit

Permalink
[feat] UserId 변경 - #90
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlgnszx committed Jul 12, 2024
1 parent 898476f commit 1df1ad1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ResponseEntity<DateAccessGetAllRes> getAllDataAccessCourse(

@PostMapping(consumes = {MediaType.MULTIPART_FORM_DATA_VALUE, MediaType.APPLICATION_JSON_VALUE})
public ResponseEntity<CourseCreateRes> createCourse(
@RequestHeader final Long userId,
@UserId final Long userId,
@RequestPart("course") final CourseCreateReq courseCreateReq,
@RequestPart("tags") final List<TagCreateReq> tags,
@RequestPart("places") final List<CoursePlaceGetReq> places,
Expand Down Expand Up @@ -100,7 +100,7 @@ public ResponseEntity<Void> createCourseLike(@UserId final Long userId,
}

@DeleteMapping("/{courseId}/likes")
public ResponseEntity<Void> deleteCourseLike(@RequestHeader final Long userId,
public ResponseEntity<Void> deleteCourseLike(@UserId final Long userId,
@PathVariable final Long courseId) {
courseService.deleteCourseLike(userId, courseId);
return ResponseEntity.ok().build();
Expand Down

0 comments on commit 1df1ad1

Please sign in to comment.