feat(calculate-ratio): 정산 비율 삭제 URL 수정
This commit is contained in:
@@ -4,6 +4,7 @@ import kr.co.vividnext.sodalive.common.ApiResponse
|
|||||||
import org.springframework.data.domain.Pageable
|
import org.springframework.data.domain.Pageable
|
||||||
import org.springframework.security.access.prepost.PreAuthorize
|
import org.springframework.security.access.prepost.PreAuthorize
|
||||||
import org.springframework.web.bind.annotation.GetMapping
|
import org.springframework.web.bind.annotation.GetMapping
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable
|
||||||
import org.springframework.web.bind.annotation.PostMapping
|
import org.springframework.web.bind.annotation.PostMapping
|
||||||
import org.springframework.web.bind.annotation.RequestBody
|
import org.springframework.web.bind.annotation.RequestBody
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
import org.springframework.web.bind.annotation.RequestMapping
|
||||||
@@ -33,8 +34,8 @@ class CreatorSettlementRatioController(private val service: CreatorSettlementRat
|
|||||||
@RequestBody request: CreateCreatorSettlementRatioRequest
|
@RequestBody request: CreateCreatorSettlementRatioRequest
|
||||||
) = ApiResponse.ok(service.updateCreatorSettlementRatio(request))
|
) = ApiResponse.ok(service.updateCreatorSettlementRatio(request))
|
||||||
|
|
||||||
@PostMapping("/delete")
|
@PostMapping("/delete/{memberId}")
|
||||||
fun deleteCreatorSettlementRatio(
|
fun deleteCreatorSettlementRatio(
|
||||||
@RequestBody memberId: Long
|
@PathVariable memberId: Long
|
||||||
) = ApiResponse.ok(service.deleteCreatorSettlementRatio(memberId))
|
) = ApiResponse.ok(service.deleteCreatorSettlementRatio(memberId))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user