-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/main/java/com/mpnp/baechelin/admin/controller/AdminController.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,9 +1,29 @@ | ||
package com.mpnp.baechelin.admin.controller; | ||
|
||
import com.mpnp.baechelin.admin.dto.AdminResponseDto; | ||
import com.mpnp.baechelin.admin.service.AdminService; | ||
import io.swagger.annotations.ApiOperation; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
import org.springframework.security.core.userdetails.User; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequiredArgsConstructor | ||
@RequestMapping("/admin") | ||
public class AdminController { | ||
|
||
private final AdminService adminService; | ||
|
||
// TODO 관리자 로그인 구현 | ||
|
||
@ApiOperation(value = "유저가 등록한 업장을 관리자 페이지에서 조회하는 메소드") | ||
@GetMapping("/approval") | ||
public AdminResponseDto getApprovalStoreList( | ||
@AuthenticationPrincipal User user | ||
) { | ||
return null; | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
src/main/java/com/mpnp/baechelin/admin/repository/AdminRepository.java
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
src/main/java/com/mpnp/baechelin/admin/service/AdminService.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,9 +1,17 @@ | ||
package com.mpnp.baechelin.admin.service; | ||
|
||
import com.mpnp.baechelin.admin.dto.AdminResponseDto; | ||
import com.mpnp.baechelin.store.repository.UserRegisterStoreRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class AdminService { | ||
|
||
private final UserRegisterStoreRepository userRegisterStoreRepository; | ||
|
||
public AdminResponseDto getApprovalStoreList() { | ||
return null; | ||
} | ||
} |