add writable parts of server and client

This commit is contained in:
2019-10-17 21:34:52 +06:00
parent a3cc3e8537
commit 3e7a2c1f0d
9 changed files with 153 additions and 19 deletions

View File

@@ -5,6 +5,14 @@ const val getPostsByContentIdAddress = "core/posts/get/content_id"
const val getPostsByDatesAddress = "core/posts/get/dates"
const val getPostsByPaginationAddress = "core/posts/get/pagination"
const val eventPostsCreatedAddress = "core/posts/event/created"
const val eventPostsUpdatedAddress = "core/posts/event/updated"
const val eventPostsDeletedAddress = "core/posts/event/deleted"
const val createPostAddress = "core/posts/create"
const val updatePostAddress = "core/posts/update"
const val deletePostAddress = "core/posts/delete"
//class ReadPaths(
// val baseAddress: String
//) {

View File

@@ -0,0 +1,11 @@
package com.insanusmokrassar.postssystem.core.clientserver.common.models
import com.insanusmokrassar.postssystem.core.post.PostContents
import com.insanusmokrassar.postssystem.core.post.PostId
import kotlinx.serialization.Serializable
@Serializable
data class UpdatePostRequest(
val id: PostId,
val content: PostContents
)