feat(agent-read): 관리자 에이전트 닉네임 검색 컨트롤러를 추가한다
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package kr.co.vividnext.sodalive.admin.partner.agent.read
|
||||
|
||||
import kr.co.vividnext.sodalive.admin.member.AdminSimpleMemberResponse
|
||||
import kr.co.vividnext.sodalive.common.ApiResponse
|
||||
import org.springframework.data.domain.Pageable
|
||||
import org.springframework.security.access.prepost.PreAuthorize
|
||||
@@ -28,6 +29,14 @@ class AdminAgentReadController(
|
||||
service.searchAssignableCreators(searchWord = searchWord, offset = pageable.offset, limit = pageable.pageSize.toLong())
|
||||
)
|
||||
|
||||
@GetMapping("/search-by-nickname")
|
||||
fun searchAgentByNickname(
|
||||
@RequestParam(value = "search_word") searchWord: String,
|
||||
@RequestParam(value = "size", required = false) size: Int?
|
||||
): ApiResponse<List<AdminSimpleMemberResponse>> = ApiResponse.ok(
|
||||
service.searchAgentByNickname(searchWord = searchWord, size = size ?: 20)
|
||||
)
|
||||
|
||||
@GetMapping("/{agentId}/creator/list")
|
||||
fun getAssignedCreators(
|
||||
@PathVariable agentId: Long,
|
||||
|
||||
Reference in New Issue
Block a user