Commit 65ff1571 authored by 周健威's avatar 周健威

修改代码

parent 07ef5c9a
......@@ -101,6 +101,17 @@ public class UploadController{
return JsonResultUtil.createSuccessResultWithObj(uploadService.uploadFile(file,prefix));
}
@RequestMapping(value = "/admin/uploadDispose", method = RequestMethod.POST)
public JSONObject adminUploadDispose(
@RequestParam("file") MultipartFile file,
@RequestParam(value = "prefix",defaultValue = "app")String prefix,
DisposeDTO dto
)throws Exception {
String contentType = file.getContentType(); //图片文件类型
return JsonResultUtil.createSuccessResultWithObj(uploadService.uploadFileDispose(file, prefix, dto));
}
@RequestMapping(value = "/app/unauth/admin/upload", method = RequestMethod.POST)
public JSONObject uploads(
@RequestParam("file") MultipartFile file,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment