Skip to content

Conversation

@jinchiim
Copy link
Collaborator

@jinchiim jinchiim commented May 3, 2023

SERVER PR

1. 기본 과제
2. 심화 과제
3. 🐥이런 점이 새로웠어요/어려웠어요

🐕 과제 구현 명세

1. 기본 과제

세미나 시간에 했던 코드지만 아직... 좀 더 공부중입니다.
심화 과제 제출할때 같이 작성하겠습니다!

2. 심화과제

BoardUser을 매핑 하여 유저 가 글을 작성하고, 글을 검색하는 기능을 추가했습니다!!

처음에는 userId를 통해서 글을 검색하는 식으로 완성했는데, 🔍🔍
생각해보면 그렇다면 정보가 외부에 노출되는게 아닌가 싶어서 title을 검색하는 식으로 바꿨습니다!

그리고 @Builder도 사용해봤어요!😋😋

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "user_id", nullable = false, foreignKey = @ForeignKey(ConstraintMode.CONSTRAINT))
    private User user;

    @Builder
    private Board(User user, String title, String content, Boolean isPublic) {
        this.user = user;
        this.title =title;
        this.content = content;
        this.isPublic = isPublic;
    }

원래는 기존에 했던 7주차를 수정해서 사진이 없을경우는 없이 처리하도록 만들어 주고 싶었는데
처음부터 기능을 작성해보는 연습이 필요할 것 같아서

@PostMapping(value = "/upload")
    @ResponseStatus(HttpStatus.CREATED)
    public ApiResponse upload(@UserId Long userId, @ModelAttribute @Valid final BoardRequestDto request){
        boardService.upload(userId, request);
        return ApiResponse.success(Success.CREATE_BOARD_SUCCESS);
    }

    @GetMapping(value = "/search")
    @ResponseStatus(HttpStatus.OK)
    public List<BoardResponseDto> search(@UserId Long Id, @RequestParam("searchText") String searchText){
        List<BoardResponseDto> searchedBoard = boardService.search(searchText);

        return searchedBoard;
    }

새로 만들었습니다!!

image

뿌듯해옹🥳🥳

🐥이런 점이 새로웠어요/어려웠어요

아직 어노테이션이나, 구조적인 면에서 파악하는데에 시간이 좀 걸려서 작성이 좀 더뎌지는 것 같습니다.😢😢😢
특히 Exeption에 관해서 찾아보고 있는데 어떤 상황일때 던지는 지에 대한 부분이 조금 어려운 것 같네요

@jinchiim jinchiim added the 🥳기본 과제🥳 기본 과제 제출 label May 3, 2023
@jinchiim jinchiim self-assigned this May 3, 2023
Copy link
Member

@jun02160 jun02160 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니당 !! 짱짱 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMG_2574
p5: 이거 전에 제가 공부했던 내용인데 어떤 순서로 동작하는지 이해할 때 참고하시면 좋을 것 같아 남겨둡니다 ㅎㅎ

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

미쳤다 ㄷㄷ

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와 저 지금 봤어요

IMG_2574 p5: 이거 전에 제가 공부했던 내용인데 어떤 순서로 동작하는지 이해할 때 참고하시면 좋을 것 같아 남겨둡니다 ㅎㅎ

진짜...대박이예요...저...진짜 감동받았어요.........

@unanchoi
Copy link

unanchoi commented May 4, 2023

특히 Exeption에 관해서 찾아보고 있는데 어떤 상황일때 던지는 지에 대한 부분이 조금 어려운 것 같네요

점심먹으면서 Exception에 대한 talk 시간을 가져볼까요 ^^

@jinchiim
Copy link
Collaborator Author

특히 Exeption에 관해서 찾아보고 있는데 어떤 상황일때 던지는 지에 대한 부분이 조금 어려운 것 같네요

점심먹으면서 Exception에 대한 talk 시간을 가져볼까요 ^^

그저 샤브샤브만 먹은... 윤한님 알려주세요

@jinchiim jinchiim changed the title [Week3] 기본과제 제출 [Week3] 기본과제 & 심화과제 제출 Jun 15, 2023
@jinchiim jinchiim added the 🔥심화 과제🔥 심화 과제 제출 label Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔥심화 과제🔥 심화 과제 제출 🥳기본 과제🥳 기본 과제 제출

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants