Skip to content

Commit 9f8f455

Browse files
committed
chore : 잘못된 참조 수정
1 parent 9439efd commit 9f8f455

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/main/java/in/koreatech/koin/admin/coopShop/controller/AdminCoopShopApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.springframework.web.bind.annotation.PathVariable;
99
import org.springframework.web.bind.annotation.RequestParam;
1010

11+
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopResponse;
1112
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopsResponse;
1213
import in.koreatech.koin.domain.coopshop.dto.CoopShopResponse;
1314
import in.koreatech.koin.global.auth.Auth;
@@ -49,7 +50,7 @@ ResponseEntity<AdminCoopShopsResponse> getCoopsShops(
4950
)
5051
@Operation(summary = "특정 생협 매장 정보 조회")
5152
@GetMapping("/admin/coop/{coopId}")
52-
ResponseEntity<CoopShopResponse> getCoopShop(
53+
ResponseEntity<AdminCoopShopResponse> getCoopShop(
5354
@Auth(permit = {ADMIN}) Integer adminId,
5455
@Parameter(in = PATH) @PathVariable Integer coopId
5556
);

src/main/java/in/koreatech/koin/admin/coopShop/controller/AdminCoopShopController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import org.springframework.web.bind.annotation.RequestParam;
99
import org.springframework.web.bind.annotation.RestController;
1010

11+
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopResponse;
1112
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopsResponse;
1213
import in.koreatech.koin.admin.coopShop.service.AdminCoopShopService;
13-
import in.koreatech.koin.domain.coopshop.dto.CoopShopResponse;
1414
import in.koreatech.koin.global.auth.Auth;
1515
import lombok.RequiredArgsConstructor;
1616

@@ -32,11 +32,11 @@ public ResponseEntity<AdminCoopShopsResponse> getCoopsShops(
3232
}
3333

3434
@GetMapping("/admin/coop/{coopId}")
35-
public ResponseEntity<CoopShopResponse> getCoopShop(
35+
public ResponseEntity<AdminCoopShopResponse> getCoopShop(
3636
@Auth(permit = {ADMIN}) Integer adminId,
3737
@PathVariable Integer coopId
3838
) {
39-
CoopShopResponse coopShop = adminCoopShopService.getCoopShop(coopId);
39+
AdminCoopShopResponse coopShop = adminCoopShopService.getCoopShop(coopId);
4040
return ResponseEntity.ok(coopShop);
4141
}
4242

src/main/java/in/koreatech/koin/admin/coopShop/dto/AdminCoopShopResponse.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import com.fasterxml.jackson.databind.annotation.JsonNaming;
99

10-
import in.koreatech.koin.domain.coopshop.dto.CoopShopResponse;
1110
import in.koreatech.koin.domain.coopshop.model.CoopOpen;
1211
import in.koreatech.koin.domain.coopshop.model.CoopShop;
1312
import io.swagger.v3.oas.annotations.media.Schema;

src/main/java/in/koreatech/koin/admin/coopShop/service/AdminCoopShopService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import org.springframework.data.domain.Sort;
66
import org.springframework.stereotype.Service;
77

8+
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopResponse;
89
import in.koreatech.koin.admin.coopShop.dto.AdminCoopShopsResponse;
910
import in.koreatech.koin.admin.coopShop.repository.AdminCoopShopRepository;
1011
import in.koreatech.koin.domain.coopshop.dto.CoopShopResponse;
@@ -30,8 +31,8 @@ public AdminCoopShopsResponse getCoopsShops(Integer page, Integer limit, Boolean
3031
return AdminCoopShopsResponse.of(result, criteria);
3132
}
3233

33-
public CoopShopResponse getCoopShop(Integer id) {
34+
public AdminCoopShopResponse getCoopShop(Integer id) {
3435
CoopShop coopShop = adminCoopShopRepository.getById(id);
35-
return CoopShopResponse.from(coopShop);
36+
return AdminCoopShopResponse.from(coopShop);
3637
}
3738
}

0 commit comments

Comments
 (0)