package com.file.center.controller;


import com.file.center.util.CopyImageDTO;
import com.file.center.util.ImageUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明:
 *
 * @author Li
 */
@RequestMapping("/OCRTool")
@RestController
public class OCRToolController {


    @PostMapping("/copyImage")
    public String copyImage(@RequestBody CopyImageDTO dto) throws Exception {
        System.out.println("参数是:" + dto.toString());
        return ImageUtils.downloadByURL(dto);
    }
}