[SWEP-62] Tsoa 변환(User, Tag, Image, Trash), 휴지통 API 수정 #218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sweepic Server PR List
close #214
⚒️develop의 최신 커밋을 pull 받았나요?
🔍️ 이 PR을 통해 해결하려는 문제가 무엇인가요?
✨ 이 PR에서 핵심적으로 변경된 사항은 무엇일까요? (핵심 작업 내용)
위의 Tsoa 변환은 단순히 변환 작업이고 양이 너무 많기에 코드 변경사항은 생략하겠습니다.
해당 변경사항은 코드를 참조해주세요
휴지통 API 변경사항
사진 복구 및 완전 삭제시 imageId가 아닌 mediaId를 받도록 수정하였습니다.
위 로직으로 수정하였기에 휴지통 사진 조회 기능역시 삭제하였습니다.
휴지통에 사진넣기는 기존과 동일하게 imageId로 요청을 받습니다.
휴지통 관련 파일의 이름을 trust에서 trash로 수정하였습니다.
trash.controller.ts



trash.service.ts

trash.repository.ts

이미지의 상태를 변경하는 DAO로 복구와 휴지통에 넣기에 둘다 사용되는 함수입니다.
app.ts

기존의 라우터들은 전부 삭제하였습니다.
🤚 동작 확인
yarn lint

yarn compile

/docs/v2





/docs/v2 의 경로를 요청하였을 때 모든 API가 Tsoa Swagger로 작성되었음을 확인할 수 있습니다.
🔖 핵심 변경 사항 외에 추가적으로 변경된 부분이 있나요?
🙏 Reviewer 분들이 이런 부분을 신경써서 봐 주시면 좋겠어요
🩺 이 PR에서 테스트 혹은 검증이 필요한 부분이 있을까요?
📌 PR 진행 시 이러한 점들을 참고해 주세요
📝 Assignee를 위한 CheckList