-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hotfix] ConsumptionGoal Error 핫픽스
- Loading branch information
Showing
24 changed files
with
851 additions
and
547 deletions.
There are no files selected for viewing
49 changes: 28 additions & 21 deletions
49
src/main/java/com/bbteam/budgetbuddies/domain/category/controller/CategoryController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,41 @@ | ||
package com.bbteam.budgetbuddies.domain.category.controller; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import com.bbteam.budgetbuddies.domain.category.dto.CategoryRequestDTO; | ||
import com.bbteam.budgetbuddies.domain.category.dto.CategoryResponseDTO; | ||
import com.bbteam.budgetbuddies.domain.category.service.CategoryService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/categories") | ||
public class CategoryController implements CategoryApi { | ||
|
||
private final CategoryService categoryService; | ||
|
||
@Override | ||
@PostMapping("/add/{userId}") | ||
public ResponseEntity<CategoryResponseDTO> createCategory( | ||
@PathVariable Long userId, | ||
@RequestBody CategoryRequestDTO categoryRequestDTO) { | ||
CategoryResponseDTO response = categoryService.createCategory(userId, categoryRequestDTO); | ||
return ResponseEntity.ok(response); | ||
} | ||
|
||
@Override | ||
@GetMapping("/get/{userId}") | ||
public ResponseEntity<List<CategoryResponseDTO>> getUserCategories(@PathVariable Long userId) { | ||
List<CategoryResponseDTO> response = categoryService.getUserCategories(userId); | ||
return ResponseEntity.ok(response); | ||
} | ||
private final CategoryService categoryService; | ||
|
||
@Override | ||
@PostMapping("/add/{userId}") | ||
public ResponseEntity<CategoryResponseDTO> createCategory( | ||
@PathVariable Long userId, | ||
@RequestBody CategoryRequestDTO categoryRequestDTO) { | ||
CategoryResponseDTO response = categoryService.createCategory(userId, categoryRequestDTO); | ||
return ResponseEntity.ok(response); | ||
} | ||
|
||
@Override | ||
@GetMapping("/get/{userId}") | ||
public ResponseEntity<List<CategoryResponseDTO>> getUserCategories(@PathVariable Long userId) { | ||
List<CategoryResponseDTO> response = categoryService.getUserCategories(userId); | ||
return ResponseEntity.ok(response); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...m/bbteam/budgetbuddies/domain/consumptiongoal/converter/ConsumptionAnalysisConverter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...ain/java/com/bbteam/budgetbuddies/domain/consumptiongoal/converter/PeerInfoConverter.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
.../java/com/bbteam/budgetbuddies/domain/consumptiongoal/converter/TopCategoryConverter.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
...va/com/bbteam/budgetbuddies/domain/consumptiongoal/converter/TopConsumptionConverter.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.