| @@ -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); | |||||
| } | |||||
| } | |||||
| @@ -60,18 +60,6 @@ public class DatasetServiceImpl implements DatasetService { | |||||
| @Resource | @Resource | ||||
| private DatasetVersionService datasetVersionService; | private DatasetVersionService datasetVersionService; | ||||
| private MinioClient minioClient; | |||||
| @Value("${minio.endpoint}") | |||||
| private String minioEndpoint; | |||||
| @Value("${minio.accessKey}") | |||||
| private String minioAccessKey; | |||||
| @Value("${minio.secretKey}") | |||||
| private String minioSecretKey; | |||||
| // 固定存储桶名 | // 固定存储桶名 | ||||
| private final String bucketName = "platform-data"; | private final String bucketName = "platform-data"; | ||||
| @@ -52,18 +52,9 @@ public class ModelsServiceImpl implements ModelsService { | |||||
| @Resource | @Resource | ||||
| private ModelsVersionDao modelsVersionDao; | private ModelsVersionDao modelsVersionDao; | ||||
| private MinioClient minioClient; | |||||
| @Resource | @Resource | ||||
| private ModelsVersionService modelsVersionService; | private ModelsVersionService modelsVersionService; | ||||
| @Value("${minio.endpoint}") | |||||
| private String minioEndpoint; | |||||
| @Value("${minio.accessKey}") | |||||
| private String minioAccessKey; | |||||
| @Value("${minio.secretKey}") | |||||
| private String minioSecretKey; | |||||
| // 固定存储桶名 | // 固定存储桶名 | ||||
| private final String bucketName = "platform-data"; | private final String bucketName = "platform-data"; | ||||