Commit 89590c6c authored by huangcb's avatar huangcb

增加word文件下载支持

parent 886640a6
......@@ -14,9 +14,11 @@ import org.apache.commons.lang3.StringUtils;
public enum FileTypeEnum {
UNDEFINED("undefined", "text/plain"),
TXT("txt", "text/plain"),
IMAGE("image", "application/x-jpg"),
PDF("pdf", "application/pdf"),
EXCEL("excel", "application/vnd.ms-excel"),
WORD("word", "application/application/msword"),
APK("apk", "application/vnd.android.package-archive");
private String fileType;
......
......@@ -38,7 +38,7 @@ public class DeleteControllerTest extends BaseTestController {
String url = "/delete/single";
FileForm form = new FileForm();
form.setId("5ec6469a29c8560d78274b4b");
form.setId("5ec72b8d29c85620fcd68a03");
MvcResult mvcResult = this.getMockMvc().perform(MockMvcRequestBuilders.post(url)
.contentType(MediaType.APPLICATION_JSON_UTF8_VALUE)
......
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