크리에이터 관리자 - 시그니처 관리 페이지
- sortType을 필수 parameter에서 제거
This commit is contained in:
		| @@ -22,12 +22,18 @@ class CreatorAdminSignatureController(private val service: CreatorAdminSignature | ||||
|     @GetMapping | ||||
|     fun getSignatureCanList( | ||||
|         pageable: Pageable, | ||||
|         @RequestParam("sort-type", required = false) sortType: SignatureCanSortType = SignatureCanSortType.NEWEST, | ||||
|         @RequestParam("sort-type", required = false) sortType: SignatureCanSortType?, | ||||
|         @AuthenticationPrincipal(expression = "#this == 'anonymousUser' ? null : member") member: Member? | ||||
|     ) = run { | ||||
|         if (member == null) throw SodaException("로그인 정보를 확인해주세요.") | ||||
|  | ||||
|         ApiResponse.ok(data = service.getSignatureList(pageable, sortType, memberId = member.id!!)) | ||||
|         ApiResponse.ok( | ||||
|             data = service.getSignatureList( | ||||
|                 pageable, | ||||
|                 sortType ?: SignatureCanSortType.NEWEST, | ||||
|                 memberId = member.id!! | ||||
|             ) | ||||
|         ) | ||||
|     } | ||||
|  | ||||
|     @PostMapping | ||||
|   | ||||
		Reference in New Issue
	
	Block a user