forked from loafle/openapi-generator-original
replace tab with spaces, minor code format change (#8774)
This commit is contained in:
@@ -3,21 +3,22 @@ package org.openapitools.api
|
||||
import org.openapitools.model.ModelApiResponse
|
||||
import org.openapitools.model.Pet
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
interface PetApiService {
|
||||
|
||||
suspend fun addPet(body: Pet): Unit
|
||||
suspend fun addPet(body: Pet): Unit
|
||||
|
||||
suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
|
||||
suspend fun deletePet(petId: kotlin.Long, apiKey: kotlin.String?): Unit
|
||||
|
||||
fun findPetsByStatus(status: kotlin.collections.List<kotlin.String>): Flow<Pet>
|
||||
fun findPetsByStatus(status: kotlin.collections.List<kotlin.String>): Flow<Pet>
|
||||
|
||||
fun findPetsByTags(tags: kotlin.collections.List<kotlin.String>): Flow<Pet>
|
||||
fun findPetsByTags(tags: kotlin.collections.List<kotlin.String>): Flow<Pet>
|
||||
|
||||
suspend fun getPetById(petId: kotlin.Long): Pet
|
||||
suspend fun getPetById(petId: kotlin.Long): Pet
|
||||
|
||||
suspend fun updatePet(body: Pet): Unit
|
||||
suspend fun updatePet(body: Pet): Unit
|
||||
|
||||
suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
|
||||
suspend fun updatePetWithForm(petId: kotlin.Long, name: kotlin.String?, status: kotlin.String?): Unit
|
||||
|
||||
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
|
||||
suspend fun uploadFile(petId: kotlin.Long, additionalMetadata: kotlin.String?, file: org.springframework.core.io.Resource?): ModelApiResponse
|
||||
}
|
||||
|
||||
@@ -2,13 +2,14 @@ package org.openapitools.api
|
||||
|
||||
import org.openapitools.model.Order
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
interface StoreApiService {
|
||||
|
||||
suspend fun deleteOrder(orderId: kotlin.String): Unit
|
||||
suspend fun deleteOrder(orderId: kotlin.String): Unit
|
||||
|
||||
suspend fun getInventory(): Map<String, kotlin.Int>
|
||||
suspend fun getInventory(): Map<String, kotlin.Int>
|
||||
|
||||
suspend fun getOrderById(orderId: kotlin.Long): Order
|
||||
suspend fun getOrderById(orderId: kotlin.Long): Order
|
||||
|
||||
suspend fun placeOrder(body: Order): Order
|
||||
suspend fun placeOrder(body: Order): Order
|
||||
}
|
||||
|
||||
@@ -2,21 +2,22 @@ package org.openapitools.api
|
||||
|
||||
import org.openapitools.model.User
|
||||
import kotlinx.coroutines.flow.Flow;
|
||||
|
||||
interface UserApiService {
|
||||
|
||||
suspend fun createUser(body: User): Unit
|
||||
suspend fun createUser(body: User): Unit
|
||||
|
||||
suspend fun createUsersWithArrayInput(body: Flow<User>): Unit
|
||||
suspend fun createUsersWithArrayInput(body: Flow<User>): Unit
|
||||
|
||||
suspend fun createUsersWithListInput(body: Flow<User>): Unit
|
||||
suspend fun createUsersWithListInput(body: Flow<User>): Unit
|
||||
|
||||
suspend fun deleteUser(username: kotlin.String): Unit
|
||||
suspend fun deleteUser(username: kotlin.String): Unit
|
||||
|
||||
suspend fun getUserByName(username: kotlin.String): User
|
||||
suspend fun getUserByName(username: kotlin.String): User
|
||||
|
||||
suspend fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
|
||||
suspend fun loginUser(username: kotlin.String, password: kotlin.String): kotlin.String
|
||||
|
||||
suspend fun logoutUser(): Unit
|
||||
suspend fun logoutUser(): Unit
|
||||
|
||||
suspend fun updateUser(username: kotlin.String, body: User): Unit
|
||||
suspend fun updateUser(username: kotlin.String, body: User): Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user