Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Feat/lostandfound [#7] #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

qlido
Copy link

@qlido qlido commented Jul 21, 2023

LostFound기능을 재정비 하였습니다

progress 대신 State로 습득물 분실물을 구분하고

softDelete처리를 progress 를 기준으로 하였습니다.

또한 api를 Restful하게 수정 했습니다

close #7

@qlido qlido changed the title Feat/lostandfound Feat/lostandfound [#7] Jul 21, 2023
@min050410
Copy link

public enum State {
    LOST,
    FOUND
}

public enum Process {
    IN_PROGRESS,
    FINISHED
}

State와 Process의 enum입니다. LOST면 IN_PROGRESS이고 FOUND이면 FINISHED 아닌가요? 두개를 분리해서 사용하는 이유가 궁금합니다.

Copy link

@min050410 min050410 left a comment

Choose a reason for hiding this comment

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

코드 잘 봤습니다! 전체적으로 깔끔하네요 👍

Comment on lines 23 to 25
@DeleteMapping("/{id}")
public LostFoundRes updateProcess(@PathVariable Long id) {
return lostFoundDefinitionService.updateProcess(id);

Choose a reason for hiding this comment

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

PutMapping에서 DeleteMapping으로 변경하신 이유가 있나요?

Copy link
Author

Choose a reason for hiding this comment

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

process가 Fininsh로 바뀌는 것이 사용자관점에서 삭제를 하는 것으로 보고 바꾸었습니다.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat : 분실물 찾기 게시판 수정 요청
2 participants