-
Couldn't load subscription status.
- Fork 1
feat: 주문 상점 전환 POST API를 추가하다 #2049
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
* feat: 빈 java 파일들 생성
* feat: ShopToOrderable Post를 스켈레톤코드 작성
* refact: DTO, Model 필드 생성 (임시)
* feat: Controller 수정
* feat: Service, Repository 단
* refact: 컨벤션 수정
* refact: 예외코드 추가 및 수정, 엔드포인트 경로 변경,
* refact: Entity 리펙토링
* refact: 미사용 import 제거
* refact: {shopId} 추가 및 개행 제거
* feat: 검증 추가 * feat: 주문가능상점변환 테스트 추가 * refact: 매개변수 stirng -> ShopToOrderableRequestStatus로 변경 * refact: 예외 명 변경
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import in.koreatech.koin.global.auth.Auth; | ||
| import jakarta.validation.Valid; | ||
|
|
||
| //Todo: ShopToOrderable 이라는 명칭은 임시임 추후 변경 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C
ShopToOrderable으로 확정하신건가용
개인적으로는 ownershop 패키지 하위로 들어가도 괜찮을 거 같은데 어떻게 생각하시나요 ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 스프린트가 아직 명확하게 요구사항이 정해지지 않아서, 우선 독립적으로 패키지를 만들어 제작을 시작했습니다.
추후 요구사항이 명확해지게 되면, 프로젝트 구조에 맞게 패키지 구조를 조정할려고 하는데 괜찮을까요?
src/main/java/in/koreatech/koin/domain/shoptoOrderable/dto/ShopToOrderableRequest.java
Show resolved
Hide resolved
src/main/java/in/koreatech/koin/domain/shoptoOrderable/dto/ShopToOrderableRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/in/koreatech/koin/domain/shoptoOrderable/dto/ShopToOrderableRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/in/koreatech/koin/domain/shoptoOrderable/model/ShopToOrderable.java
Show resolved
Hide resolved
| @Size(max = 10) | ||
| @Column(name = "bank", length = 10, nullable = false) | ||
| private String bank; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
bank를 String 말고 enum으로 관리할 수 있을까요 👀
db에서 관리하기 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 부분은 요구사항측에서 은행의 종류같은게 정해지면 enum으로 관리 하는게 좋을거같아요.
db에서 관리는 enum 말고 테이블로 (1, "OO은행") , (2,"AA은행")으로해서 연관으로 관리한다는 의미인가요?
| private String accountNumber; | ||
|
|
||
| @Enumerated(EnumType.STRING) | ||
| @Column(name = "request_status", nullable = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A
status으로 표현해도 괜찮을 거 같아요
src/main/java/in/koreatech/koin/domain/shoptoOrderable/model/ShopToOrderable.java
Show resolved
Hide resolved
...main/java/in/koreatech/koin/domain/shoptoOrderable/repository/ShopToOrderableRepository.java
Show resolved
Hide resolved
src/main/java/in/koreatech/koin/domain/shoptoOrderable/service/ShopToOrderableService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
확인해주세욥
src/main/resources/db/migration/V226__add_shop_to_orderable_request.sql
Outdated
Show resolved
Hide resolved
src/main/java/in/koreatech/koin/domain/shoptoOrderable/service/ShopToOrderableService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SwaggerGroupConfig 클래스에서 스웨거 그룹을 설정할 수 있습니다 !
패키지를 새롭게 추가하는 경우 패키지 경로를 넣어주셔야, 스웨거에서 확인이 가능합니당
@Bean
public GroupedOpenApi businessApi() {
return createGroupedOpenApi(
"2. Business API",
new String[] {
"in.koreatech.koin.domain.owner",
"in.koreatech.koin.domain.benefit",
"in.koreatech.koin.domain.ownershop",
"in.koreatech.koin.domain.shop",
"in.koreatech.koin.domain.land",
"in.koreatech.koin.domain.shoptoOrderable",
});
}






🔍 개요
🚀 주요 변경 내용
💬 참고 사항
✅ Checklist (완료 조건)