suda -> live

This commit is contained in:
Klaus 2023-09-03 00:45:46 +09:00
parent 7ca71f90db
commit aa457cc2fb
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class SodaExceptionHandler {
private val logger = LoggerFactory.getLogger(this::class.java)
@ExceptionHandler(SodaException::class)
fun handleSudaException(e: SodaException) = run {
fun handleSodaException(e: SodaException) = run {
logger.error("API error", e)
ApiResponse.error(
message = e.message,

View File

@ -1,6 +1,6 @@
package kr.co.vividnext.sodalive.live.room
data class CreateSudaRoomRequest(
data class CreateLiveRoomRequest(
val title: String,
val content: String,
val coverImageUrl: String? = null,

View File

@ -161,7 +161,7 @@ class LiveRoomService(
@Transactional
fun createLiveRoom(coverImage: MultipartFile?, requestString: String, member: Member): CreateLiveRoomResponse {
val request = objectMapper.readValue(requestString, CreateSudaRoomRequest::class.java)
val request = objectMapper.readValue(requestString, CreateLiveRoomRequest::class.java)
if (request.coverImageUrl == null && coverImage == null) {
throw SodaException("커버이미지를 선택해 주세요.")
}
@ -604,7 +604,7 @@ class LiveRoomService(
val coverImagePath = s3Uploader.upload(
inputStream = coverImage.inputStream,
bucket = coverImageBucket,
filePath = "suda_room_cover/${room.id}/$coverImageFileName",
filePath = "live_room_cover/${room.id}/$coverImageFileName",
metadata = metadata
)