| | |
| | | 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; |
| | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RestController |
| | | @RequestMapping("/docker") |
| | | @SuppressWarnings("ALL") |
| | | public class SysDockerController { |
| | | @Resource |
| | |
| | | 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()); |
| | | } |
| | | } |
| | | } |