mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-04 23:59:29 +00:00
Revert "more annotations to god of annotations"
This reverts commit f8a8808508
.
This commit is contained in:
@@ -11,9 +11,7 @@ import dev.inmo.micro_utils.repos.ktor.common.crud.*
|
||||
import io.ktor.client.HttpClient
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorReadStandardCrudRepo<ObjectType, IdType> (
|
||||
private val baseUrl: String,
|
||||
private val client: HttpClient = HttpClient(),
|
||||
|
@@ -3,9 +3,7 @@ package dev.inmo.micro_utils.repos.ktor.client.crud
|
||||
import dev.inmo.micro_utils.repos.*
|
||||
import io.ktor.client.HttpClient
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorStandardCrudRepo<ObjectType, IdType, InputValue> (
|
||||
baseUrl: String,
|
||||
baseSubpart: String,
|
||||
|
@@ -11,9 +11,7 @@ import io.ktor.client.HttpClient
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.*
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorWriteStandardCrudRepo<ObjectType, IdType, InputValue> (
|
||||
private val baseUrl: String,
|
||||
private val client: HttpClient = HttpClient(),
|
||||
|
@@ -11,9 +11,7 @@ import dev.inmo.micro_utils.repos.ktor.common.key_value.*
|
||||
import io.ktor.client.*
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorReadStandardKeyValueRepo<Key, Value> (
|
||||
private var baseUrl: String,
|
||||
private var client: HttpClient = HttpClient(),
|
||||
|
@@ -5,9 +5,7 @@ import dev.inmo.micro_utils.repos.ReadStandardKeyValueRepo
|
||||
import dev.inmo.micro_utils.repos.WriteStandardKeyValueRepo
|
||||
import io.ktor.client.*
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorStandartKeyValueRepo<K, V> (
|
||||
baseUrl: String,
|
||||
baseSubpart: String,
|
||||
|
@@ -11,9 +11,7 @@ import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.PairSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorWriteStandardKeyValueRepo<K, V> (
|
||||
private var baseUrl: String,
|
||||
private var client: HttpClient = HttpClient(),
|
||||
|
@@ -5,9 +5,7 @@ import dev.inmo.micro_utils.repos.ReadOneToManyKeyValueRepo
|
||||
import dev.inmo.micro_utils.repos.WriteOneToManyKeyValueRepo
|
||||
import io.ktor.client.HttpClient
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorOneToManyKeyValueRepo<Key, Value>(
|
||||
baseUrl: String,
|
||||
baseSubpart: String,
|
||||
|
@@ -11,9 +11,7 @@ import dev.inmo.micro_utils.repos.ktor.common.one_to_many.*
|
||||
import io.ktor.client.HttpClient
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorReadOneToManyKeyValueRepo<Key, Value> (
|
||||
private val baseUrl: String,
|
||||
private val client: HttpClient = HttpClient(),
|
||||
@@ -85,4 +83,5 @@ class KtorReadOneToManyKeyValueRepo<Key, Value> (
|
||||
),
|
||||
Long.serializer()
|
||||
)
|
||||
|
||||
}
|
@@ -11,9 +11,7 @@ import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.serialization.KSerializer
|
||||
import kotlinx.serialization.builtins.PairSerializer
|
||||
import kotlinx.serialization.builtins.serializer
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class KtorWriteOneToManyKeyValueRepo<Key, Value> (
|
||||
private val baseUrl: String,
|
||||
private val client: HttpClient = HttpClient(),
|
||||
|
@@ -1,12 +1,6 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.crud
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val getByPaginationRouting = "getByPagination"
|
||||
@JsExport
|
||||
const val getByIdRouting = "getById"
|
||||
@JsExport
|
||||
const val containsRouting = "contains"
|
||||
@JsExport
|
||||
const val countRouting = "count"
|
||||
|
@@ -1,19 +1,10 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.crud
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val newObjectsFlowRouting = "newObjectsFlow"
|
||||
@JsExport
|
||||
const val updatedObjectsFlowRouting = "updatedObjectsFlow"
|
||||
@JsExport
|
||||
const val deletedObjectsIdsFlowRouting = "deletedObjectsIdsFlow"
|
||||
|
||||
@JsExport
|
||||
const val createRouting = "create"
|
||||
@JsExport
|
||||
const val updateRouting = "update"
|
||||
@JsExport
|
||||
const val updateManyRouting = "updateMany"
|
||||
@JsExport
|
||||
const val deleteByIdRouting = "deleteById"
|
||||
|
@@ -1,8 +1,4 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.key_value
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val keyParameterName = "key"
|
||||
@JsExport
|
||||
const val reversedParameterName = "reversed"
|
@@ -1,9 +1,7 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.key_value
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
@Serializable
|
||||
data class KeyValuePostObject<K, V> (
|
||||
val key: K,
|
||||
|
@@ -1,23 +1,12 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.key_value
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val getRoute = "get"
|
||||
@JsExport
|
||||
const val valuesRoute = "values"
|
||||
@JsExport
|
||||
const val keysRoute = "keys"
|
||||
@JsExport
|
||||
const val containsRoute = "contains"
|
||||
@JsExport
|
||||
const val countRoute = "count"
|
||||
|
||||
@JsExport
|
||||
const val onNewValueRoute = "onNewValue"
|
||||
@JsExport
|
||||
const val onValueRemovedRoute = "onValueRemoved"
|
||||
@JsExport
|
||||
const val setRoute = "set"
|
||||
@JsExport
|
||||
const val unsetRoute = "unset"
|
@@ -1,10 +1,5 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.one_to_many
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val keyParameterName = "key"
|
||||
@JsExport
|
||||
const val valueParameterName = "value"
|
||||
@JsExport
|
||||
const val reversedParameterName = "reversed"
|
@@ -1,30 +1,16 @@
|
||||
package dev.inmo.micro_utils.repos.ktor.common.one_to_many
|
||||
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
const val getRoute = "get"
|
||||
@JsExport
|
||||
const val keysRoute = "keys"
|
||||
@JsExport
|
||||
const val containsByKeyRoute = "containsByKey"
|
||||
@JsExport
|
||||
const val containsByKeyValueRoute = "containsByKeyValue"
|
||||
@JsExport
|
||||
const val countByKeyRoute = "countByKey"
|
||||
@JsExport
|
||||
const val countRoute = "count"
|
||||
|
||||
@JsExport
|
||||
const val onNewValueRoute = "onNewValue"
|
||||
@JsExport
|
||||
const val onValueRemovedRoute = "onValueRemoved"
|
||||
@JsExport
|
||||
const val onDataClearedRoute = "onDataCleared"
|
||||
|
||||
@JsExport
|
||||
const val addRoute = "add"
|
||||
@JsExport
|
||||
const val removeRoute = "remove"
|
||||
@JsExport
|
||||
const val clearRoute = "clear"
|
Reference in New Issue
Block a user