Skip to content

Commit

Permalink
Docs: 유저 Role 조회 API Swagger 세팅 (TAVE-balak#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyjyjy25 committed Mar 6, 2024
1 parent 5e74bed commit 9885c6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ public BaseResponse<List<MyDiscussionDto>> getParticipatedDiscussion(@PageableDe
return BaseResponse.success(userService.getParticipatedDiscussion(pageable));
}

@ApiOperation(value = "Role 조회 api", notes = "유저의 ROLE을 조회합니다.")
@GetMapping("/role")
@ResponseStatus(HttpStatus.OK)
public BaseResponse<UserRoleDto> getUserRole() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down

0 comments on commit 9885c6c

Please sign in to comment.