@RestController @RequestMapping(value="/erupt-api/file") public class EruptFileController extends Object
| 构造器和说明 |
|---|
EruptFileController() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
downloadAttachment(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
EruptApiModel |
upload(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile file) |
Map<String,Object> |
uploadHtmlEditorImage(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile file) |
EruptApiModel |
uploads(String eruptName,
String fieldName,
org.springframework.web.multipart.MultipartFile[] files) |
void |
uploadUEditorImage(String eruptName,
String fieldName,
String callback,
org.springframework.web.multipart.MultipartFile file,
javax.servlet.http.HttpServletResponse response) |
@PostMapping(value="/upload/{erupt}/{field}")
@EruptRouter(authIndex=2,
verifyType=ERUPT)
public EruptApiModel upload(@PathVariable(value="erupt")
String eruptName,
@PathVariable(value="field")
String fieldName,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file)
@PostMapping(value="/uploads/{erupt}/{field}")
@EruptRouter(authIndex=2,
verifyType=ERUPT)
public EruptApiModel uploads(@PathVariable(value="erupt")
String eruptName,
@PathVariable(value="field")
String fieldName,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile[] files)
@PostMapping(value="/upload-html-editor/{erupt}/{field}")
@EruptRouter(authIndex=2,
verifyMethod=PARAM,
verifyType=ERUPT)
public Map<String,Object> uploadHtmlEditorImage(@PathVariable(value="erupt")
String eruptName,
@PathVariable(value="field")
String fieldName,
@RequestParam(value="upload")
org.springframework.web.multipart.MultipartFile file)
throws ClassNotFoundException
@RequestMapping(value="/upload-ueditor/{erupt}/{field}")
@EruptRouter(authIndex=2,
verifyMethod=PARAM,
verifyType=ERUPT)
public void uploadUEditorImage(@PathVariable(value="erupt")
String eruptName,
@PathVariable(value="field")
String fieldName,
@RequestParam(value="callback",required=false)
String callback,
@RequestParam(value="file",required=false)
org.springframework.web.multipart.MultipartFile file,
javax.servlet.http.HttpServletResponse response)
throws IOException,
ClassNotFoundException
@GetMapping(value="/download-attachment/**",
produces="application/octet-stream")
public void downloadAttachment(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2023. All rights reserved.