添加删除图片接口
This commit is contained in:
@ -37,4 +37,11 @@ public class PictureServiceImpl implements PictureService {
|
||||
pictureDao.save(pictureEntity);
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "添加成功!", locale);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String deletePicture(String picturePath) {
|
||||
Locale locale = LocaleContextHolder.getLocale();
|
||||
String deleteResult = ExcelUploadUtil.delFile(picturePath, 2);
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, deleteResult, locale);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user