replace tab with spaces, minor code format change (#8774)

This commit is contained in:
William Cheng
2021-02-22 19:46:11 +08:00
committed by GitHub
parent e6b44349ba
commit 764a3b044c
26 changed files with 292 additions and 285 deletions

View File

@@ -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
}

View File

@@ -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
}

View File

@@ -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
}