Move file and add interface to improve Archi Hexa
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package eventDemo.business.notification
|
||||
|
||||
import eventDemo.configuration.UUIDSerializer
|
||||
import eventDemo.libs.command.Command
|
||||
import kotlinx.serialization.Serializable
|
||||
import java.util.UUID
|
||||
|
||||
@Serializable
|
||||
data class CommandErrorNotification(
|
||||
@Serializable(with = UUIDSerializer::class)
|
||||
override val id: UUID = UUID.randomUUID(),
|
||||
val message: String,
|
||||
val command: Command,
|
||||
) : Notification,
|
||||
CommandNotification
|
||||
Reference in New Issue
Block a user