|
|
|
@@ -0,0 +1,31 @@ |
|
|
|
package com.ruoyi.platform.controller.labelStudio; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.web.controller.BaseController; |
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.core.web.domain.GenericsAjaxResult; |
|
|
|
import com.ruoyi.platform.service.JupyterService; |
|
|
|
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; |
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileInputStream; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/labelStudio") |
|
|
|
@Api("labelStudio service") |
|
|
|
public class labelStudioController extends BaseController { |
|
|
|
@Value("${labelStudio.url}") |
|
|
|
private String url; |
|
|
|
@GetMapping(value = "/getURL") |
|
|
|
@ApiOperation("得到访问地址") |
|
|
|
public GenericsAjaxResult<String> getURL() throws IOException { |
|
|
|
return genericsSuccess(url); |
|
|
|
} |
|
|
|
} |