start fill server part
This commit is contained in:
ClientPart/src/main/kotlin/com/insanusmokrassar/postssystem/core/client
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common
Core/src/main/kotlin/com/insanusmokrassar/postssystem/core
ServerPart
settings.gradle@ -4,3 +4,12 @@ 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"
|
||||
|
||||
//class ReadPaths(
|
||||
// val baseAddress: String
|
||||
//) {
|
||||
// val postByIdAddress = "$baseAddress/$getPostByIdAddress"
|
||||
// val postsByContentIdAddress = "$baseAddress/$getPostsByContentIdAddress"
|
||||
// val postsByDatesAddress = "$baseAddress/$getPostsByDatesAddress"
|
||||
// val postsByPaginationAddress = "$baseAddress/$getPostsByPaginationAddress"
|
||||
//}
|
||||
|
9
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/models/DateTimeRequest.kt
Normal file
9
ClientServerCommon/src/main/kotlin/com/insanusmokrassar/postssystem/core/clientserver/common/models/DateTimeRequest.kt
Normal file
@ -0,0 +1,9 @@
|
||||
package com.insanusmokrassar.postssystem.core.clientserver.common.models
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class DateTimeRequest (
|
||||
val from: Long?,
|
||||
val to: Long?
|
||||
)
|
Reference in New Issue
Block a user