|
|
|
@ -272,6 +272,7 @@ public interface FileService {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 是否添加默认水印
|
|
|
|
* 是否添加默认水印
|
|
|
|
|
|
|
|
*
|
|
|
|
* @param watermark
|
|
|
|
* @param watermark
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -364,6 +365,16 @@ public interface FileService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
String saveImage(InputStream in);
|
|
|
|
String saveImage(InputStream in);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 保存图片
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param image 图片
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
default String saveImage(Image image) {
|
|
|
|
|
|
|
|
return saveImage(ImgUtil.toStream(image, "png"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 保存图片
|
|
|
|
* 保存图片
|
|
|
|
*
|
|
|
|
*
|
|
|
|
|