Add authentication #1

Merged
FatttSnake merged 24 commits from FatttSnake into dev 2023-10-09 10:38:31 +08:00
Showing only changes of commit 6a9ad8d490 - Show all commits

View File

@@ -5,7 +5,7 @@ import io.swagger.v3.oas.models.info.Contact
import io.swagger.v3.oas.models.info.Info import io.swagger.v3.oas.models.info.Info
import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration import org.springframework.context.annotation.Configuration
import top.fatweb.api.constants.ServerConstants import top.fatweb.api.constant.ServerConstants
@Configuration @Configuration
class SwaggerConfig { class SwaggerConfig {
@@ -13,7 +13,11 @@ class SwaggerConfig {
@Bean @Bean
fun customOpenAPI(): OpenAPI? { fun customOpenAPI(): OpenAPI? {
val contact = Contact().name("FatttSnake").url("https://fatweb.top").email("fatttsnake@fatweb.top") val contact = Contact().name("FatttSnake").url("https://fatweb.top").email("fatttsnake@fatweb.top")
return OpenAPI().info(Info().title("FatWeb API 文档").description("FatWeb 后端 API 文档,包含各个 Controller 调用信息").contact(contact).version( return OpenAPI().info(
ServerConstants.version)) Info().title("FatWeb API 文档").description("FatWeb 后端 API 文档,包含各个 Controller 调用信息")
.contact(contact).version(
ServerConstants.version
)
)
} }
} }