|
|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package wanijo.wanijo2.domain.handler
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional
|
|
|
|
|
import wanijo.wanijo2.domain.DocumentDao
|
|
|
|
|
import wanijo.wanijo2.domain.DocumentTaggingDao
|
|
|
|
|
import wanijo.wanijo2.domain.event.DeleteTaggingCommand
|
|
|
|
|
@ -12,6 +13,7 @@ class DeleteTaggingHandler(
|
|
|
|
|
val documentDao: DocumentDao
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
fun exec(command: DeleteTaggingCommand) {
|
|
|
|
|
taggingDao.delete(
|
|
|
|
|
command.documentId,
|
|
|
|
|
|