Commit 54e06a5a by Java-聂换换

shanghcuan

parent 0e0b860b
package com.ejweb.modules.front.upload;
import com.bbdtek.oa.common.net.Response;
import com.ejweb.core.api.ResponseBean;
import com.ejweb.modules.upload.api.UploadController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import static com.sun.xml.internal.ws.api.message.Packet.Status.Response;
/**
* Created by BrianHolsen on 2017-07-12 at 16:02.
*/
@RestController
@RequestMapping("/com/file")
public class UploadController extends UploadController {
@RequestMapping("/upload")
public ResponseBean upload(HttpServletRequest request) {
return super.upload(request);
}
@RequestMapping("/downloadFile")
public void downloadFile(HttpServletRequest request, HttpServletResponse response, String file) {
super.downloadFile(request, response, file);
}
@RequestMapping("/downloadImage")
public byte[] downloadImage(String file) {
return super.downloadImage(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