forked from loafle/openapi-generator-original
[kotlin][spring] Remove EOL from template (#16045)
* remove EOL from template * better code format
This commit is contained in:
parent
75067b2581
commit
852eb956db
@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
|
|||||||
import io.swagger.v3.oas.models.security.SecurityScheme
|
import io.swagger.v3.oas.models.security.SecurityScheme
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
class SpringDocConfiguration {
|
class SpringDocConfiguration {
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
|
|||||||
import java.util.Optional
|
import java.util.Optional
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
class PetApiController(
|
class PetApiController(
|
||||||
|
@ -15,7 +15,6 @@ import java.util.Optional
|
|||||||
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
interface PetApiDelegate {
|
interface PetApiDelegate {
|
||||||
|
|
||||||
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
||||||
|
@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
|
|||||||
import java.util.Optional
|
import java.util.Optional
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
class StoreApiController(
|
class StoreApiController(
|
||||||
|
@ -14,7 +14,6 @@ import java.util.Optional
|
|||||||
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
interface StoreApiDelegate {
|
interface StoreApiDelegate {
|
||||||
|
|
||||||
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
||||||
|
@ -5,7 +5,6 @@ import org.springframework.web.bind.annotation.RequestMapping
|
|||||||
import java.util.Optional
|
import java.util.Optional
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
@RequestMapping("\${openapi.openAPIPetstore.base-path:/v2}")
|
||||||
class UserApiController(
|
class UserApiController(
|
||||||
|
@ -14,7 +14,6 @@ import java.util.Optional
|
|||||||
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
* Implement this interface with a {@link org.springframework.stereotype.Service} annotated class.
|
||||||
*/
|
*/
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
interface UserApiDelegate {
|
interface UserApiDelegate {
|
||||||
|
|
||||||
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
fun getRequest(): Optional<NativeWebRequest> = Optional.empty()
|
||||||
|
@ -11,7 +11,6 @@ import io.swagger.v3.oas.models.Components
|
|||||||
import io.swagger.v3.oas.models.security.SecurityScheme
|
import io.swagger.v3.oas.models.security.SecurityScheme
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
class SpringDocConfiguration {
|
class SpringDocConfiguration {
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ import javax.servlet.ServletContext
|
|||||||
|
|
||||||
|
|
||||||
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
@javax.annotation.Generated(value = ["org.openapitools.codegen.languages.KotlinSpringServerCodegen"])
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableSwagger2
|
@EnableSwagger2
|
||||||
class SpringFoxConfiguration {
|
class SpringFoxConfiguration {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user