Skip to content

Commit

Permalink
feat: 新增插件修改回调事件 #9566
Browse files Browse the repository at this point in the history
  • Loading branch information
hejieehe committed Oct 26, 2023
1 parent ed9e519 commit 5641905
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,15 @@ open class DefaultModelCheckPlugin constructor(
}

override fun afterCreateElementInExistsModel(existModel: Model, sourceModel: Model?, param: AfterCreateParam) {
val sourceModelStr = if (sourceModel != null) {
JsonUtil.toJson(sourceModel, false)
} else {
""
}
logger.info(
"afterCreateElementInExistsModel|existModel[${JsonUtil.toJson(existModel, false)}]|" +
"sourceModel[${sourceModelStr}]"
)
recursiveElement(existModel = existModel) {
createPrepare(sourceModel, it, param)
}
Expand Down

0 comments on commit 5641905

Please sign in to comment.