251202_01_ENH: User 관련 기능 구현
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.kri.contact.server.controller;
|
||||
|
||||
import com.kri.common.webmvc.RequestUserContext;
|
||||
import com.kri.contact.server.dto.RoleInfoDto;
|
||||
import com.kri.contact.server.service.RoleService;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/role")
|
||||
@RequiredArgsConstructor
|
||||
@Tag(name = "Role", description = "권한 관리 API")
|
||||
public class RoleController {
|
||||
private final RoleService roleService;
|
||||
|
||||
@GetMapping()
|
||||
public List<RoleInfoDto> getRoleList(RequestUserContext ctx){
|
||||
return roleService.getRoleList(ctx.getUserRole());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user