|
|
|
@@ -0,0 +1,25 @@ |
|
|
|
package com.ruoyi.platform.controller.knowledgeGraph; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.web.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.web.domain.GenericsAjaxResult; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/knowledgeGraph") |
|
|
|
@Api("knowledgeGraph service") |
|
|
|
public class KnowledgeGraphController extends BaseController { |
|
|
|
@Value("${knowledgeGraphUrl}") |
|
|
|
private String url; |
|
|
|
|
|
|
|
@GetMapping(value = "/getURL") |
|
|
|
@ApiOperation("得到访问地址") |
|
|
|
public GenericsAjaxResult<String> getURL() { |
|
|
|
return genericsSuccess(url); |
|
|
|
} |
|
|
|
} |