13693261870
2024-12-24 d877ac3faecbee5ed64bc23665347d14706663c9
se-modules/se-docker/src/main/java/com/se/docker/controller/SysDockerController.java
@@ -5,6 +5,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.se.common.core.domain.R;
@@ -12,6 +13,7 @@
import javax.annotation.Resource;
@RestController
@RequestMapping("/docker")
@SuppressWarnings("ALL")
public class SysDockerController {
    @Resource
@@ -20,14 +22,14 @@
    private static final Logger log = LoggerFactory.getLogger(SysDockerController.class);
    @GetMapping("test")
    public R<Object> upload(MultipartFile file) {
    public R<Object> test(MultipartFile file) {
        try {
            String str = sysDockerService.test();
            return R.ok(str);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            return R.fail();
            return R.fail(e.getMessage());
        }
    }
}