controller 저장 위치
- /web/api/v0
- /web/api/product
- /domain/commerce/web/api
출력 네이밍
응답 객체 네이밍
- 도메인 + result
- 도메인 + 용도(동사) + result
CreateHousewarmingPostResult
QuestionPostInfoResult
UserInfoResult
- 일반 조회(단건)
- UserResult(기본 정보)
- 특수 케이스 조회
- 페이징: UserPagedResult
- 수정: UserUpdatedResult
- .created(컨텐츠(이미지와 연관관계가 있는) URI).body()
- 현 방식
- 업로드 이전: 프론트는 이미지 업로드 전이기에 S3url 위치를 모름
- contents: “글내용 ${image1} 글내용 ${image2}
- 서버에 register 요청 옴: 서버가 S3url을 알게 됨
- 나중에 Get 요청이 올 때 서버에서 처리
${image1}
을 → imageData의 url로 대체- 왈라와랄컨텣츠
${image1}
컨ㅇㄹㄴㅇㄹ야호!${image2}
- [이미지1 메타데이터(s3 url), 이미지2 메타데이터(s3 url)]
- 이미지 수정
- 왈라와랄컨텣츠컨ㅇㄹㄴㅇㄹ야호!
${image2}
으악ㅇ장자ㅏㅇ ${image3} - 이미지2는 이미 서버에 저장, 이미지 3은 새로움
- 이미지 1을 지워라 + 이미지3 데이터를 저장하라!
- 싹지우고 다시
- Service.method(Command command) returns “지금 얘기하는 것”
- controller service
- request. command
커맨드: 매개변수
리턴 타입: 별개(지금 논의중인 대상)
- 도메인(Service) 용
- ReviewInformation
- PagedReviewInformation