251202_01_ENH: User 관련 기능 구현

This commit is contained in:
2025-12-02 13:46:44 +09:00
parent bff9747d52
commit d13595f315
52 changed files with 1279 additions and 159 deletions

View File

@@ -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());
}
}