started to fill client part
This commit is contained in:
ClientPart
ClientServerCommon
Core
build.gradlegradle/wrapper
settings.gradlesrc/main/kotlin/com/github/insanusmokrassar/postssystem/core
38
ClientServerCommon/build.gradle
Normal file
38
ClientServerCommon/build.gradle
Normal file
@ -0,0 +1,38 @@
|
||||
project.version = "0.1.0"
|
||||
project.group = "com.insanusmokrassar"
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
||||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:$gradle_bintray_plugin_version"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: 'kotlin'
|
||||
apply plugin: 'kotlinx-serialization'
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
maven { url "https://kotlin.bintray.com/kotlinx" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
||||
api project(":Core")
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs = [ disableImplicitReflectionSerializerAnnotation ]
|
||||
}
|
||||
}
|
6
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/Paths.kt
Normal file
6
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/Paths.kt
Normal file
@ -0,0 +1,6 @@
|
||||
package com.insanusmokrassar.postssystem.core.clientserver.common
|
||||
|
||||
const val getPostByIdAddress = "core/posts/get/id"
|
||||
const val getPostsByContentIdAddress = "core/posts/get/content_id"
|
||||
const val getPostsByDatesAddress = "core/posts/get/dates"
|
||||
const val getPostsByPaginationAddress = "core/posts/get/pagination"
|
11
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/ReadModels.kt
Normal file
11
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/ReadModels.kt
Normal file
@ -0,0 +1,11 @@
|
||||
package com.insanusmokrassar.postssystem.core.clientserver.common
|
||||
|
||||
import com.insanusmokrassar.postssystem.core.post.PostId
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
sealed class ReadModel
|
||||
|
||||
@Serializable
|
||||
class ReadPostsById(
|
||||
val postId: PostId
|
||||
)
|
Reference in New Issue
Block a user