remove all redundant boilerplate
This commit is contained in:
ClientPart
ClientServerCommon
Core/src/main/kotlin/com/insanusmokrassar/postssystem/core
ServerPart
@ -1,4 +1,3 @@
|
||||
package com.insanusmokrassar.postssystem.core.api
|
||||
|
||||
interface PostsAPI : ReadPostsAPI,
|
||||
WritePostsAPI
|
||||
interface PostsAPI : ReadPostsAPI, WritePostsAPI
|
||||
|
@ -13,4 +13,4 @@ interface WritePostsAPI {
|
||||
suspend fun deletePost(id: PostId): Boolean
|
||||
|
||||
suspend fun updatePostContent(postId: PostId, post: Post): Boolean
|
||||
}
|
||||
}
|
||||
|
@ -22,12 +22,10 @@ interface RegisteredPost : Post {
|
||||
val modificationDate: DateTime
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data class SimplePost(
|
||||
override val content: PostContents
|
||||
) : Post
|
||||
|
||||
@Serializable
|
||||
data class SimpleRegisteredPost(
|
||||
override val id: PostId,
|
||||
override val content: RegisteredPostContents,
|
||||
|
@ -3,7 +3,7 @@ package com.insanusmokrassar.postssystem.core.utils.pagination
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
data class PaginationRequest(
|
||||
data class SimplePagination(
|
||||
override val page: Int,
|
||||
override val size: Int
|
||||
) : Pagination
|
Reference in New Issue
Block a user