Skip to content
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

판매 등록시 계좌 번호를 받도록 변경 #99

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class Product extends BaseEntity {

private String description;

private String account;

private Long price;

private String imageUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ public record CreateProductReq(
String description,

@NotNull(message = "가격은 필수 입력 값 입니다.")
Long price
Long price,

@NotNull(message = "계좌는 필수 입력 값 입니다.")
String account
) {

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public void createProduct(CreateProductReq request, MultipartFile image) {
productRepository.save(Product.builder()
.title(request.title())
.description(request.description())
.account(request.account())
.price(request.price())
.imageUrl(s3ClientService.upload(image, PUBLIC_READ).orElse(null))
.user(userService.getCurrentUser())
Expand Down
Loading