1
13693261870
2024-12-08 6a588fb6d07ae95ea8d85e28245f7254e9a40fd2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.se.docker.controller;
 
import com.se.docker.service.SysDockerService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import com.se.common.core.domain.R;
 
import javax.annotation.Resource;
 
@RestController
@SuppressWarnings("ALL")
public class SysDockerController {
    @Resource
    SysDockerService sysDockerService;
 
    private static final Logger log = LoggerFactory.getLogger(SysDockerController.class);
 
    @GetMapping("test")
    public R<Object> upload(MultipartFile file) {
        try {
            String str = sysDockerService.test();
 
            return R.ok(str);
        } catch (Exception e) {
            log.error(e.getMessage(), e);
            return R.fail();
        }
    }
}