cc.unitmesh.processor.api.base.ApiDetailRender.kt Maven / Gradle / Ivy
package cc.unitmesh.processor.api.base
interface ApiDetailRender {
fun render(apiCollections: List): String {
val apiDetailsByTag = apiCollections.map { renderCollection(it) }.filter {
it.isNotBlank()
}
return apiDetailsByTag.joinToString("\n\n") { it }
}
fun renderCollection(collection: ApiCollection): String
}