修正put model功能

This commit is contained in:
Raymond Yang 2023-05-18 11:35:10 +08:00
parent 51d5eae6c0
commit b811352620

View File

@ -59,7 +59,7 @@ fun Application.configureArModelRouting() {
call.sendUnauthorized()
return@put
}
val body = call.receive<ArModel>()
val body = call.receive<ArModelDto>().toArModel()
val id = call.parameters["id"].toString()
val isSuccess = modelService.updateById(id, body)
call.sendSuccess(mapOf("success" to isSuccess))