deason 3 jaren geleden
bovenliggende
commit
faf9e920fb

+ 3 - 3
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/Constants.java

@@ -18,17 +18,17 @@ public interface Constants {
     /**
      * 系统错误
      */
-    String OE_CODE_500 = "OE-000500";
+    String OE_CODE_500 = "000500";
 
     /**
      * 参数错误
      */
-    String OE_CODE_400 = "OE-000400";
+    String OE_CODE_400 = "000400";
 
     /**
      * 权限错误
      */
-    String OE_CODE_403 = "OE-000403";
+    String OE_CODE_403 = "000403";
 
     /**
      * 考试控制锁

+ 62 - 0
examcloud-support/src/main/java/cn/com/qmth/examcloud/support/filestorage/UploadResult.java

@@ -0,0 +1,62 @@
+package cn.com.qmth.examcloud.support.filestorage;
+
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+
+/**
+ * 文件上传结果
+ */
+public class UploadResult implements Serializable {
+
+    private static final long serialVersionUID = -4133740797472293134L;
+
+    @ApiModelProperty(value = "文件名")
+    private String fileName;
+
+    @ApiModelProperty(value = "文件存储地址")
+    private String filePath;
+
+    @ApiModelProperty(value = "文件访问地址")
+    private String fileUrl;
+
+    public UploadResult(String fileName, String filePath, String fileUrl) {
+        this.fileName = fileName;
+        this.filePath = filePath;
+        this.fileUrl = fileUrl;
+    }
+
+    public UploadResult(String filePath, String fileUrl) {
+        this.filePath = filePath;
+        this.fileUrl = fileUrl;
+    }
+
+    public UploadResult() {
+
+    }
+
+    public String getFileName() {
+        return fileName;
+    }
+
+    public void setFileName(String fileName) {
+        this.fileName = fileName;
+    }
+
+    public String getFilePath() {
+        return filePath;
+    }
+
+    public void setFilePath(String filePath) {
+        this.filePath = filePath;
+    }
+
+    public String getFileUrl() {
+        return fileUrl;
+    }
+
+    public void setFileUrl(String fileUrl) {
+        this.fileUrl = fileUrl;
+    }
+
+}