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

[fix]아이디/사업자번호 중복확인 수정 #32

Merged
merged 1 commit into from
Sep 17, 2023
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 @@ -18,6 +18,7 @@

@RestController
@RequiredArgsConstructor
@CrossOrigin
@RequestMapping("/api/v1/cart")
@Slf4j
public class CartController {
Expand All @@ -26,7 +27,6 @@ public class CartController {
private final UserService userService;

//장바구니 전체 조회
@CrossOrigin
@GetMapping("/list")
public ResponseEntity<?> cartMainPage(HttpServletRequest request
) {
Expand All @@ -48,7 +48,6 @@ public ResponseEntity<?> cartMainPage(HttpServletRequest request


//장바구니에 추가
@CrossOrigin
@PostMapping("/add")
public ResponseEntity<?> addCart(@Validated @RequestBody CartRequestDTO dto, HttpServletRequest request
) {
Expand All @@ -69,7 +68,6 @@ public ResponseEntity<?> addCart(@Validated @RequestBody CartRequestDTO dto, Htt
}

//장바구니 수정
@CrossOrigin
@PutMapping("/modify")
public ResponseEntity<?> modifyCart(@Validated @RequestBody CartModifyRequesDTO dto){
cartResponseDTO cartResponseDTO = cartService.modifyCart(dto);
Expand All @@ -78,7 +76,6 @@ public ResponseEntity<?> modifyCart(@Validated @RequestBody CartModifyRequesDTO
}

//장바구니 제품 삭제
@CrossOrigin
@DeleteMapping("/{cartId}")
public ResponseEntity<?> deleteCart(@PathVariable Long cartId, HttpServletRequest request
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
@RequiredArgsConstructor
@RequestMapping("/api/v1/user")
@Slf4j
@CrossOrigin
@SessionAttributes("user")
public class UserController {

private final UserService userService;

//회원가입
@CrossOrigin
@PostMapping("/sign-up")
public ResponseEntity<?> signUpUser(@Validated @RequestBody SignUpRequestDTO dto
) {
Expand All @@ -41,9 +41,8 @@ public ResponseEntity<?> signUpUser(@Validated @RequestBody SignUpRequestDTO dto
}

//아이디&사업자번호 중복확인
@CrossOrigin
@GetMapping("/check-duplicate")
public ResponseEntity<?> check(String type,String keyword) {
public ResponseEntity<?> check(@RequestParam String type, @RequestParam String keyword) {
log.info("/user/check-business-number GET! --{} --{}", type, keyword);

if(keyword.trim().equals("")){
Expand All @@ -57,7 +56,6 @@ public ResponseEntity<?> check(String type,String keyword) {
}

//로그인
@CrossOrigin
@PostMapping("/sign-in")
public ResponseEntity<?> signIn(
@Validated @RequestBody LoginRequestDTO dto, HttpServletRequest request
Expand Down