From 9885c6c249aa5aef7f7e9b0b0efb0f0286352748 Mon Sep 17 00:00:00 2001 From: jyjyjy25 Date: Wed, 6 Mar 2024 13:16:44 +0900 Subject: [PATCH] =?UTF-8?q?Docs:=20=EC=9C=A0=EC=A0=80=20Role=20=EC=A1=B0?= =?UTF-8?q?=ED=9A=8C=20API=20Swagger=20=EC=84=B8=ED=8C=85=20(#162)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/tavebalak/OTTify/user/controller/UserController.java | 1 + .../java/tavebalak/OTTify/user/dto/Response/UserRoleDto.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/tavebalak/OTTify/user/controller/UserController.java b/src/main/java/tavebalak/OTTify/user/controller/UserController.java index 2272cdb..1312937 100644 --- a/src/main/java/tavebalak/OTTify/user/controller/UserController.java +++ b/src/main/java/tavebalak/OTTify/user/controller/UserController.java @@ -152,6 +152,7 @@ public BaseResponse> getParticipatedDiscussion(@PageableDe return BaseResponse.success(userService.getParticipatedDiscussion(pageable)); } + @ApiOperation(value = "Role 조회 api", notes = "유저의 ROLE을 조회합니다.") @GetMapping("/role") @ResponseStatus(HttpStatus.OK) public BaseResponse getUserRole() { diff --git a/src/main/java/tavebalak/OTTify/user/dto/Response/UserRoleDto.java b/src/main/java/tavebalak/OTTify/user/dto/Response/UserRoleDto.java index 5820ca3..f8d0d4e 100644 --- a/src/main/java/tavebalak/OTTify/user/dto/Response/UserRoleDto.java +++ b/src/main/java/tavebalak/OTTify/user/dto/Response/UserRoleDto.java @@ -1,11 +1,13 @@ package tavebalak.OTTify.user.dto.Response; +import io.swagger.annotations.ApiModelProperty; import lombok.Getter; import tavebalak.OTTify.common.constant.Role; @Getter public class UserRoleDto { + @ApiModelProperty(value = "Role") private Role role; public UserRoleDto(Role role) {