|
@@ -0,0 +1,55 @@
|
|
|
+package cn.com.qmth.examcloud.api.commons.exchange;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+
|
|
|
+import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 表单请求
|
|
|
+ *
|
|
|
+ * @author WANGWEI
|
|
|
+ * @date 2019年5月7日
|
|
|
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
|
|
|
+ */
|
|
|
+public class FormRequest extends BaseRequest {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1201394717322230917L;
|
|
|
+
|
|
|
+ @NotNull(message = "fileName不能为空")
|
|
|
+ @ApiModelProperty(value = "文件路径", example = "", required = true)
|
|
|
+ private String fileName;
|
|
|
+
|
|
|
+ @NotNull(message = "filePath不能为空")
|
|
|
+ @ApiModelProperty(value = "文件路径", example = "", required = true)
|
|
|
+ private transient String filePath;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "请求时,无需传值", example = "", required = false)
|
|
|
+ private CommonsMultipartFile file;
|
|
|
+
|
|
|
+ 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 CommonsMultipartFile getFile() {
|
|
|
+ return file;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFile(CommonsMultipartFile file) {
|
|
|
+ this.file = file;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|