删除重复接口
This commit is contained in:
@@ -1,44 +0,0 @@
|
||||
package com.njcn.system.controller;
|
||||
|
||||
|
||||
import com.njcn.oss.utils.FileStorageUtil;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.*;
|
||||
|
||||
|
||||
/**
|
||||
* Description:
|
||||
* Date: 2023/8/30 11:08【需求编号】
|
||||
*
|
||||
* @author clam
|
||||
* @version V1.0.0
|
||||
*/
|
||||
|
||||
@Slf4j
|
||||
@Api(tags = "图片处理")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
@RequestMapping("/image")
|
||||
public class ImageToStreamController extends BaseController {
|
||||
|
||||
private final FileStorageUtil fileStorageUtil;
|
||||
|
||||
/**
|
||||
* 下载图片
|
||||
*/
|
||||
@GetMapping("/toStream")
|
||||
@ApiImplicitParam(name = "bgImage", value = "图片路径", required = true)
|
||||
public void toStream(@RequestParam("bgImage") String bgImage,HttpServletResponse response) {
|
||||
fileStorageUtil.downloadStream(response, bgImage);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user