Skip to content

Commit

Permalink
Merge pull request #153 from FOREGG-DEV/dev
Browse files Browse the repository at this point in the history
♻️ refactor: 지원금 Res 수정 및 스웨거 tag name 추가
  • Loading branch information
DongJun1110 authored Sep 4, 2024
2 parents 0400ae7 + ca4837d commit f6e9fe9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
import foregg.foreggserver.service.subsidyService.SubsidyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RequiredArgsConstructor
@RestController
@RequestMapping("/subsidy")
@Tag(name = "지원금 API")
public class SubsidyController {

private final SubsidyService subsidyService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public static SubsidyResponseDTO toDetailResponseDTO(String period, List<Subsidy
SubsidyResponseDTO.SubsidyDetailResponseDTO result = SubsidyResponseDTO.SubsidyDetailResponseDTO.builder()
.id(ss.getId())
.nickname(ss.getNickname())
.color(ss.getColor())
.amount(ss.getAmount())
.expenditure(ss.getExpenditure())
.available(ss.getAvailable())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package foregg.foreggserver.dto.subsidyDTO;

import foregg.foreggserver.domain.enums.SubsidyColorType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
Expand All @@ -23,6 +24,7 @@ public class SubsidyResponseDTO {
public static class SubsidyDetailResponseDTO {
private Long id;
private String nickname;
private SubsidyColorType color;
private int amount;
private int expenditure;
private int available;
Expand Down

0 comments on commit f6e9fe9

Please sign in to comment.