refactor/use all connector methods for code generator - WIP

This commit is contained in:
hongwei 2025-01-15 23:58:20 +08:00
parent 803f1e660c
commit cfddb1dc89
3 changed files with 9 additions and 1 deletions

View File

@ -37,9 +37,13 @@ object CommonsCaseClassGenerator extends App {
}
// private val str: String = ru.typeOf[Bank].decls.map(it => s"${it.name} :${it.typeSignature.typeSymbol.name}").mkString(", \n")
private val caseClassStrings: Set[String] = missingReturnModels.map(mkClass)
println("#################################Started########################################################################")
caseClassStrings.foreach {
println
}
println()
println("#################################Finished########################################################################")
println("Please copy and compair the result to obp-commons/src/main/scala/com/openbankproject/commons/model/CommonModel.scala")
System.exit(0)
}

View File

@ -273,6 +273,9 @@ object ConnectorBuilderUtil {
}
}
//TODO WIP, need to fix the code to support the following methods
// val commonMethodNames = Connector.getConnectorInstance("mapped").callableMethods.keySet.toList
val commonMethodNames = List(
"getAdapterInfo",
"getChallengeThreshold",

View File

@ -34,6 +34,7 @@ object InOutCaseClassGenerator extends App {
|case class InBound${it.name.toString.capitalize} (inboundAdapterCallContext: InboundAdapterCallContext, status: Status, data: $payload) extends InBoundTrait[$payload]
""".stripMargin
})
println("#################################Started########################################################################")
code.foreach(println)
println("#################################Finished########################################################################")