Task: Add spring web modules for general purpose to use for extenal and internal modules and projects
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package com.cubetiqs.web.infrastructure.component
|
||||
|
||||
interface BaseFunctionComponent<I, O> {
|
||||
fun execute(input: I?): O?
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.cubetiqs.web.infrastructure.data
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
interface BaseEntity <ID : Serializable> : Serializable {
|
||||
fun setId(id: ID)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.cubetiqs.web.infrastructure.event
|
||||
|
||||
import java.io.Serializable
|
||||
|
||||
interface BaseEvent : Serializable
|
||||
@@ -0,0 +1,9 @@
|
||||
package com.cubetiqs.web.infrastructure.listener
|
||||
|
||||
import com.cubetiqs.web.infrastructure.event.BaseEvent
|
||||
|
||||
interface BaseEventListener {
|
||||
fun persist(event: BaseEvent) {
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.cubetiqs.web.infrastructure.repository
|
||||
|
||||
interface BaseRepository
|
||||
@@ -0,0 +1,3 @@
|
||||
package com.cubetiqs.web.infrastructure.service
|
||||
|
||||
interface BaseService
|
||||
Reference in New Issue
Block a user