Skip to content

[feat] 상품 정보 수정 API#32

Merged
Koneweekk merged 2 commits intodevfrom
K5P-40/feat/crud-상품
Jul 9, 2024

Hidden character warning

The head ref may contain hidden characters: "K5P-40/feat/crud-\uc0c1\ud488"
Merged

[feat] 상품 정보 수정 API#32
Koneweekk merged 2 commits intodevfrom
K5P-40/feat/crud-상품

Conversation

@Koneweekk
Copy link
Copy Markdown
Contributor

@Koneweekk Koneweekk commented Jul 9, 2024

관련 이슈

구현 기능

상품 정보 수정

  • 상품 정보 수정 dto, controller, service 작성
  • 컨트롤러, 서비스 테스트 코드 작성
  • 이전에 작성한 API 변수명 정리

상품 삭제

  • 상품 삭제 controller, service 구현 완료
  • 상품 삭제 컨트롤러, 서비스 테스트 코드 작성 완료
  • 이전 서비스 코드 @transactional 추가

참고 사항

Koneweekk added 2 commits July 9, 2024 10:38
- 상품 정보 수정 dto, controller, service 작성
- 컨트롤러, 서비스 테스트 코드 작성
- 이전에 작성한 API 변수명 정리
- 상품 삭제 controller, service 구현 완료
- 상품 삭제 컨트롤러, 서비스 테스트 코드 작성 완료
- 이전 서비스 코드 @transactional 추가
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jul 9, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@Koneweekk Koneweekk merged commit db8b4d3 into dev Jul 9, 2024
@dtd1614 dtd1614 added the feat 기능 개발 label Jul 9, 2024

private String itemImageDirectory = "item";
public String itemImageDirectory = "item";
public String defaultImageUrl = "https://billing-wise-bucket.s3.ap-northeast-2.amazonaws.com/test.png";
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

이렇게 문자열을 지정할 때는 private static final로 선언하고 upper snake case로 작성하는 것을 추천드립니다.
url 주소니까 가장 좋은 것은 yml에 선언해서 불러오는 것이 좋아보이네요

this.imageUrl = imageUrl;
}

public void setName(String name) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

set 메서드를 만들어야 한다면 field에 @Setter 선언하는 것도 고려해보면 좋을 것 같네요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants