temp progress on binary correct including
This commit is contained in:
features/common/common
build.gradle
src
commonMain
kotlin
dev
inmo
postssystem
features
common
common
jsMain
kotlin
dev
inmo
postssystem
features
common
common
jvmMain
kotlin
dev
inmo
postssystem
features
common
common
services/posts
client
src
commonMain
kotlin
dev
inmo
postssystem
jsMain
kotlin
dev
inmo
postssystem
services
posts
client
jvmMain
kotlin
dev
inmo
postssystem
services
posts
client
common
server
src
jvmMain
kotlin
dev
inmo
postssystem
services
15
services/posts/common/src/commonMain/kotlin/dev/inmo/postssystem/services/posts/common/Constants.kt
15
services/posts/common/src/commonMain/kotlin/dev/inmo/postssystem/services/posts/common/Constants.kt
@ -1,5 +1,20 @@
|
||||
package dev.inmo.postssystem.services.posts.common
|
||||
|
||||
import kotlinx.serialization.SerialFormat
|
||||
import kotlinx.serialization.cbor.Cbor
|
||||
import kotlinx.serialization.modules.SerializersModule
|
||||
import kotlinx.serialization.modules.SerializersModuleBuilder
|
||||
|
||||
const val postsRootPath = "posts"
|
||||
const val postsCreateTempPathPart = "temp"
|
||||
|
||||
const val postsPostIdParameter = "postId"
|
||||
|
||||
fun SerialFormat.createWithSerializerModuleExtension(
|
||||
configurator: SerializersModuleBuilder.() -> Unit
|
||||
) = Cbor {
|
||||
serializersModule = SerializersModule {
|
||||
include(this@createWithSerializerModuleExtension.serializersModule)
|
||||
configurator()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user