Skip to content

Commit

Permalink
更新模板内容,调整事件拦截器代码位置
Browse files Browse the repository at this point in the history
  • Loading branch information
binking338 committed Aug 16, 2024
1 parent 1cd828d commit 3822882
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions cap4j-ddd-codegen-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,21 @@
"children": [
{
"type": "dir",
"name": "_share"
"name": "_share",
"children": [
{
"type": "dir",
"name": "configure",
"children": [
{
"type": "file",
"name": "MyDomainEventMessageInterceptor.java",
"format": "raw",
"data": "package ${basePackage}.adapter.domain._share.configure;\n\nimport org.netcorepal.cap4j.ddd.domain.event.DomainEventMessageInterceptor;\nimport org.springframework.messaging.Message;\nimport org.springframework.stereotype.Service;\n\n/**\n * 领域事件消息拦截器\n *\n * @author binking338\n */\n@Service\npublic class MyDomainEventMessageInterceptor implements DomainEventMessageInterceptor {\n @Override\n public Message beforePublish(Message message) {\n return message;\n }\n\n @Override\n public Message beforeSubscribe(Message message) {\n return message;\n }\n}\n"
}
]
}
]
},
{
"type": "dir",
Expand Down Expand Up @@ -255,18 +269,6 @@
"type": "dir",
"name": "clients"
},
{
"type": "dir",
"name": "configure",
"children": [
{
"type": "file",
"name": "MyDomainEventMessageInterceptor.java",
"format": "raw",
"data": "package ${basePackage}.application._share.configure;\n\nimport org.netcorepal.cap4j.ddd.domain.event.DomainEventMessageInterceptor;\nimport org.springframework.messaging.Message;\nimport org.springframework.stereotype.Service;\n\n/**\n * 领域事件消息拦截器\n *\n * @author binking338\n */\n@Service\npublic class MyDomainEventMessageInterceptor implements DomainEventMessageInterceptor {\n @Override\n public Message beforePublish(Message message) {\n return message;\n }\n\n @Override\n public Message beforeSubscribe(Message message) {\n return message;\n }\n}\n"
}
]
},
{
"type": "dir",
"name": "enums"
Expand Down Expand Up @@ -318,7 +320,8 @@
]
}
]
},{
},
{
"type": "dir",
"name": "resources",
"children": [
Expand All @@ -343,14 +346,15 @@
]
}
]
},{
},
{
"type": "dir",
"name": "test",
"children":[
"children": [
{
"type": "dir",
"name": "java",
"children":[
"children": [
{
"type": "dir",
"name": "${basePackage}",
Expand All @@ -376,7 +380,6 @@
"data": "target/\n!.mvn/wrapper/maven-wrapper.jar\n!**/src/main/**/target/\n!**/src/test/**/target/\n\n### IntelliJ IDEA ###\n.idea/modules.xml\n.idea/jarRepositories.xml\n.idea/compiler.xml\n.idea/libraries/\n*.iws\n*.iml\n*.ipr\n\n### Eclipse ###\n.apt_generated\n.classpath\n.factorypath\n.project\n.settings\n.springBeans\n.sts4-cache\n\n### NetBeans ###\n/nbproject/private/\n/nbbuild/\n/dist/\n/nbdist/\n/.nb-gradle/\nbuild/\n!**/src/main/**/build/\n!**/src/test/**/build/\n\n### VS Code ###\n.vscode/\n\n### Mac OS ###\n.DS_Store"
},
{

"type": "file",
"name": "pom.xml",
"format": "raw",
Expand Down

0 comments on commit 3822882

Please sign in to comment.