Skip to content

Commit

Permalink
chore: spotless ์ ์šฉ (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywonchae1 committed Jul 30, 2024
1 parent f6afb4d commit 728a8e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.depromeet.member.dto.response.MemberFindOneResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

Expand All @@ -16,6 +17,5 @@ public interface MemberApi {

@Operation(summary = "๋‹‰๋„ค์ž„ ์ˆ˜์ •")
ApiResponse<MemberFindOneResponse> updateName(
@LoginMember Long id,
@RequestBody NameUpdateRequest updateNameRequest);
@LoginMember Long id, @Valid @RequestBody NameUpdateRequest updateNameRequest);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import com.depromeet.member.dto.request.NameUpdateRequest;
import com.depromeet.member.dto.response.MemberFindOneResponse;
import com.depromeet.member.facade.MemberFacade;
import com.depromeet.member.port.in.usecase.MemberUseCase;
import com.depromeet.type.member.MemberSuccessType;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
Expand All @@ -25,9 +24,9 @@ public ApiResponse<MemberFindOneResponse> getMember(@PathVariable("id") Long id)

@PatchMapping
public ApiResponse<MemberFindOneResponse> updateName(
@LoginMember Long id,
@RequestBody NameUpdateRequest updateNameRequest) {
@LoginMember Long id, @RequestBody NameUpdateRequest updateNameRequest) {
Member member = memberFacade.updateName(id, updateNameRequest.name());
return ApiResponse.success(MemberSuccessType.UPDATE_NAME_SUCCESS, MemberFindOneResponse.of(member));
return ApiResponse.success(
MemberSuccessType.UPDATE_NAME_SUCCESS, MemberFindOneResponse.of(member));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

import jakarta.validation.constraints.NotNull;

public record NameUpdateRequest(@NotNull String name) {
}
public record NameUpdateRequest(@NotNull String name) {}

0 comments on commit 728a8e5

Please sign in to comment.