add PublishingService
This commit is contained in:
parent
c566099fdf
commit
272df545a3
@ -7,9 +7,9 @@ kotlin_serialisation_core_version=1.0.0-RC
|
|||||||
ktor_version=1.4.0
|
ktor_version=1.4.0
|
||||||
|
|
||||||
klockVersion=1.12.0
|
klockVersion=1.12.0
|
||||||
uuidVersion=0.2.1
|
uuidVersion=0.2.2
|
||||||
|
|
||||||
exposed_version=0.26.2
|
exposed_version=0.27.1
|
||||||
test_sqlite_version=3.32.3.2
|
test_sqlite_version=3.32.3.2
|
||||||
|
|
||||||
javax_activation_version=1.1.1
|
javax_activation_version=1.1.1
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.insanusmokrassar.postssystem.core.publishing
|
||||||
|
|
||||||
|
import com.insanusmokrassar.postssystem.core.post.repo.PostsRepo
|
||||||
|
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishedPostsWriteRepo
|
||||||
|
import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo
|
||||||
|
|
||||||
|
class PublishingService(
|
||||||
|
private val postsRepo: PostsRepo,
|
||||||
|
private val publishedPostsRepo: PublishedPostsWriteRepo,
|
||||||
|
private val keysRepo: PublishingKeysRepo
|
||||||
|
) : PublishingRegistrar by BusinessPublishingRegistrar(
|
||||||
|
keysRepo
|
||||||
|
), PublishingTrigger by BusinessPublishingTrigger(
|
||||||
|
postsRepo,
|
||||||
|
publishedPostsRepo,
|
||||||
|
keysRepo
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user