|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package apelet.common.openapi.controller; |
|
|
|
package apelet.common.openapi.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import apelet.common.core.annotation.NoAuthInterface; |
|
|
|
import apelet.common.core.constant.ErrorCodeEnum; |
|
|
|
import apelet.common.core.constant.ErrorCodeEnum; |
|
|
|
import apelet.common.core.object.ResponseResult; |
|
|
|
import apelet.common.core.object.ResponseResult; |
|
|
|
import apelet.common.openapi.dto.OpenApiKbFilePageDto; |
|
|
|
import apelet.common.openapi.dto.OpenApiKbFilePageDto; |
|
|
|
@ -11,12 +12,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam; |
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.IOException; |
|
|
|
@ -36,6 +32,7 @@ import java.util.List; |
|
|
|
@RestController |
|
|
|
@RestController |
|
|
|
@RequestMapping("${common-openapi.urlPrefix:/openapi}/v1/kb") |
|
|
|
@RequestMapping("${common-openapi.urlPrefix:/openapi}/v1/kb") |
|
|
|
@ConditionalOnProperty(name = "common-openapi.operationEnabled", havingValue = "true") |
|
|
|
@ConditionalOnProperty(name = "common-openapi.operationEnabled", havingValue = "true") |
|
|
|
|
|
|
|
@NoAuthInterface |
|
|
|
public class OpenApiKbController { |
|
|
|
public class OpenApiKbController { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
|