使用Grails在Controllers中生成代码时,想知道这段代码在做什么:
' *' {response eroVCdtCallDetailsInstance,[status:CREATED]}
request.withFormat {
form multipartForm {
flash.message = message(code: 'default.created.message', args: [message(code: 'eroVCdtCallDetails.label', default: 'EroVCdtCallDetails'), eroVCdtCallDetailsInstance.id])
redirect eroVCdtCallDetailsInstance
}
'*' { respond eroVCdtCallDetailsInstance, [status: CREATED] }
}