mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-09-04 23:59:29 +00:00
more annotations to god of annotations
This commit is contained in:
@@ -11,7 +11,9 @@ 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,7 +3,9 @@ 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,7 +11,9 @@ 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,7 +11,9 @@ 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,7 +5,9 @@ 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,7 +11,9 @@ 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,7 +5,9 @@ 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,7 +11,9 @@ 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(),
|
||||
@@ -83,5 +85,4 @@ class KtorReadOneToManyKeyValueRepo<Key, Value> (
|
||||
),
|
||||
Long.serializer()
|
||||
)
|
||||
|
||||
}
|
@@ -11,7 +11,9 @@ 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,6 +1,12 @@
|
||||
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,10 +1,19 @@
|
||||
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,4 +1,8 @@
|
||||
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,7 +1,9 @@
|
||||
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,12 +1,23 @@
|
||||
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,5 +1,10 @@
|
||||
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,16 +1,30 @@
|
||||
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