|
| 1 | +package com.potato.balbambalbam.user.withdrawal.controller; |
| 2 | + |
| 3 | +import com.potato.balbambalbam.user.token.jwt.JWTUtil; |
| 4 | +import com.potato.balbambalbam.user.withdrawal.dto.WithdrawalResponseDto; |
| 5 | +import com.potato.balbambalbam.user.withdrawal.service.WithdrawalService; |
| 6 | +import io.swagger.v3.oas.annotations.Operation; |
| 7 | +import io.swagger.v3.oas.annotations.media.Content; |
| 8 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 9 | +import io.swagger.v3.oas.annotations.responses.ApiResponse; |
| 10 | +import io.swagger.v3.oas.annotations.responses.ApiResponses; |
| 11 | +import io.swagger.v3.oas.annotations.tags.Tag; |
| 12 | +import lombok.RequiredArgsConstructor; |
| 13 | +import org.springframework.http.ResponseEntity; |
| 14 | +import org.springframework.web.bind.annotation.PostMapping; |
| 15 | +import org.springframework.web.bind.annotation.RequestHeader; |
| 16 | +import org.springframework.web.bind.annotation.RestController; |
| 17 | + |
| 18 | + |
| 19 | +@RequiredArgsConstructor |
| 20 | +@RestController |
| 21 | +@Tag(name = "Withdrawal API", description = "탈퇴 사유를 저장한다.") |
| 22 | +public class WithdrawalController { |
| 23 | + private final JWTUtil jwtUtil; |
| 24 | + //private final WithdrawalService withdrawalService; |
| 25 | + |
| 26 | + @Operation(summary = "탈퇴 사유 받기", description = "사용자의 월별 출석 날짜를 조회합니다.") |
| 27 | + @ApiResponses(value = { |
| 28 | + @ApiResponse(responseCode = "200", description = "조회 성공", content = @Content(schema = @Schema(implementation = WithdrawalResponseDto.class))), |
| 29 | + }) |
| 30 | + @PostMapping("/user/withdrawal") |
| 31 | + public ResponseEntity<WithdrawalResponseDto> setWithdrawal(@RequestHeader("access") String access) { |
| 32 | + Long userId = jwtUtil.getUserId(access); |
| 33 | + //return ResponseEntity.ok(); |
| 34 | + return null; |
| 35 | + } |
| 36 | +} |
0 commit comments