修正put model功能
This commit is contained in:
parent
51d5eae6c0
commit
b811352620
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user