65 changed files with 1226 additions and 385 deletions
@ -0,0 +1,72 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.EnumValue; |
||||
|
import com.epmet.dataaggre.dto.epmettduck.struct.*; |
||||
|
import com.fasterxml.jackson.annotation.JsonCreator; |
||||
|
import com.fasterxml.jackson.annotation.JsonValue; |
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Getter; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/16 2:28 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@AllArgsConstructor |
||||
|
@Getter |
||||
|
public enum ProjectItemTypeEnum { |
||||
|
|
||||
|
INPUT("INPUT", "单行文本", InputExpandStruct.class), |
||||
|
TEXTAREA("TEXTAREA", "多行文本", TextareaExpandStruct.class), |
||||
|
PASSWORD_INPUT("PASSWORD_INPUT", "密码输入", null), |
||||
|
NUMBER_INPUT("NUMBER_INPUT", "数字输入", NumberExpandStruct.class), |
||||
|
SELECT("SELECT", "下拉框", SelectExpandStruct.class), |
||||
|
CASCADER("CASCADER", "级联选择", CascaderExpandStruct.class), |
||||
|
RADIO("RADIO", "单选框", RadioExpandStruct.class), |
||||
|
CHECKBOX("CHECKBOX", "多选框", CheckboxExpandStruct.class), |
||||
|
SWITCH("SWITCH", "开关", SwitchExpandStruct.class), |
||||
|
SLIDER("SLIDER", "滑块", SliderExpandStruct.class), |
||||
|
TIME("TIME", "时间选择", TimeExpandStruct.class), |
||||
|
TIME_RANGE("TIME_RANGE", "时间范围", TimeRangeExpandStruct.class), |
||||
|
DATE("DATE", "日期选择", DateExpandStruct.class), |
||||
|
DATE_RANGE("DATE_RANGE", "日期范围", DateRangeExpandStruct.class), |
||||
|
RATE("RATE", "评分", RateExpandStruct.class), |
||||
|
COLOR("COLOR", "颜色", ColorExpandStruct.class), |
||||
|
UPLOAD("UPLOAD", "文件上传组件", UploadExpandStruct.class), |
||||
|
IMAGE("IMAGE", "图片展示", ImageExpandStruct.class), |
||||
|
IMAGE_SELECT("IMAGE_SELECT", "图片选择", ImageSelectExpandStruct.class), |
||||
|
IMAGE_CAROUSEL("IMAGE_CAROUSEL", "图片轮播", ImageCarouselExpandStruct.class), |
||||
|
DESC_TEXT("DESC_TEXT", "文字描述", DescTextExpandStruct.class), |
||||
|
SIGN_PAD("SIGN_PAD", "手写签名", SignPadExpandStruct.class), |
||||
|
PAGINATION("PAGINATION", "分页", PaginationExpandStruct.class), |
||||
|
DIVIDER("DIVIDER", "分割线", DividerExpandStruct.class), |
||||
|
PROVINCE_CITY("PROVINCE_CITY", "省市联动", EmptyExpandStruct.class), |
||||
|
PHONE_VERIFICATION("PHONE_VERIFICATION", "手机号验证", EmptyExpandStruct.class), |
||||
|
INPUT_MAP("INPUT_MAP", "地理位置", EmptyExpandStruct.class); |
||||
|
|
||||
|
@EnumValue |
||||
|
@JsonValue |
||||
|
private String value; |
||||
|
|
||||
|
private String desc; |
||||
|
/** |
||||
|
* 扩展属性类 |
||||
|
*/ |
||||
|
private Class expandClass; |
||||
|
|
||||
|
/** |
||||
|
* 枚举入参注解 |
||||
|
* |
||||
|
* @param value |
||||
|
* @return |
||||
|
*/ |
||||
|
@JsonCreator |
||||
|
public static ProjectItemTypeEnum getByValue(String value) { |
||||
|
for (ProjectItemTypeEnum typeEnum : values()) { |
||||
|
if (typeEnum.getValue().equals(value)) { |
||||
|
return typeEnum; |
||||
|
} |
||||
|
} |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/9/16 2:00 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TDuckDetailFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 3793280475377993346L; |
||||
|
|
||||
|
public interface TDuckDetailForm{} |
||||
|
|
||||
|
/** |
||||
|
* 项目key |
||||
|
*/ |
||||
|
@NotBlank(message = "项目key不能为空",groups = TDuckDetailForm.class) |
||||
|
private String key; |
||||
|
/** |
||||
|
* 是否显示类型 |
||||
|
*/ |
||||
|
@NotNull(message = "是否显示类型不能为空",groups = TDuckDetailForm.class) |
||||
|
private Boolean displayType; |
||||
|
} |
@ -0,0 +1,45 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 级联选择 |
||||
|
* @create : 2020-11-19 15:13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class CascaderExpandStruct { |
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
|
||||
|
/** |
||||
|
* 塞选 |
||||
|
*/ |
||||
|
private Boolean filterable; |
||||
|
|
||||
|
/** |
||||
|
* 多选 |
||||
|
*/ |
||||
|
private Boolean multiple; |
||||
|
|
||||
|
/** |
||||
|
* 分割符 |
||||
|
*/ |
||||
|
private String separator; |
||||
|
|
||||
|
/** |
||||
|
* 显示全路径 |
||||
|
*/ |
||||
|
private Boolean showAllLevels; |
||||
|
|
||||
|
public static class Option { |
||||
|
public Integer id; |
||||
|
public String label; |
||||
|
public String value; |
||||
|
public List<Option> children; |
||||
|
} |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 颜色选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class CheckboxExpandStruct { |
||||
|
/** |
||||
|
* 最小 |
||||
|
*/ |
||||
|
private Integer min; |
||||
|
/** |
||||
|
* 最大 |
||||
|
*/ |
||||
|
private Integer max; |
||||
|
|
||||
|
/** |
||||
|
* 选项类型 |
||||
|
*/ |
||||
|
private String optionType; |
||||
|
|
||||
|
/** |
||||
|
* 选项是按钮时大小 |
||||
|
*/ |
||||
|
private String size; |
||||
|
|
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
|
||||
|
|
||||
|
public static class Option { |
||||
|
public String label; |
||||
|
public Integer value; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 颜色选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class ColorExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 日期选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class DateExpandStruct { |
||||
|
|
||||
|
// 日期类型
|
||||
|
private String type; |
||||
|
// 日期格式
|
||||
|
private String format; |
||||
|
// 日期格式
|
||||
|
private String valueFormat; |
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 日期范围 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class DateRangeExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 文字描述组件属性 |
||||
|
* |
||||
|
* @author smalljop |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DescTextExpandStruct { |
||||
|
/** |
||||
|
* 颜色 |
||||
|
*/ |
||||
|
private String color; |
||||
|
|
||||
|
/** |
||||
|
* 文字位置 |
||||
|
*/ |
||||
|
private String textAlign; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 分割线组件属性 |
||||
|
* |
||||
|
* @author smalljop |
||||
|
*/ |
||||
|
@Data |
||||
|
public class DividerExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,10 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 无扩展属性 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EmptyExpandStruct { |
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 颜色选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class ImageCarouselExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
|
||||
|
public static class Option { |
||||
|
public String image; |
||||
|
public String label; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class ImageExpandStruct { |
||||
|
private String src; |
||||
|
|
||||
|
private String alt; |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 颜色选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class ImageSelectExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
|
||||
|
/** |
||||
|
* 是否多选 |
||||
|
*/ |
||||
|
private Boolean multiple; |
||||
|
|
||||
|
public static class Option { |
||||
|
public String image; |
||||
|
public String label; |
||||
|
public Integer value; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 输入框配置 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class InputExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 前缀 |
||||
|
*/ |
||||
|
public String prepend; |
||||
|
/** |
||||
|
* 后缀 |
||||
|
*/ |
||||
|
public String append; |
||||
|
|
||||
|
/** |
||||
|
* 最大长度 |
||||
|
*/ |
||||
|
private Long maxlength; |
||||
|
|
||||
|
/** |
||||
|
* 前置图标 |
||||
|
*/ |
||||
|
private String prefixIcon; |
||||
|
|
||||
|
/** |
||||
|
* 显示可输入字数 |
||||
|
*/ |
||||
|
private Boolean showWordLimit; |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Data; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
|
||||
|
@Data |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
public class ItemDefaultValueStruct { |
||||
|
/** |
||||
|
* 值是否是Json |
||||
|
*/ |
||||
|
private boolean json; |
||||
|
/** |
||||
|
* 默认值具体值 |
||||
|
*/ |
||||
|
private Object value; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 数字型输入 |
||||
|
* @create : 2020-11-19 15:13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class NumberExpandStruct { |
||||
|
/** |
||||
|
* 最小 |
||||
|
*/ |
||||
|
private Integer min; |
||||
|
/** |
||||
|
* 最大 |
||||
|
*/ |
||||
|
private Integer max; |
||||
|
/** |
||||
|
* 计数器步长 每次+几 |
||||
|
*/ |
||||
|
private Integer step; |
||||
|
/** |
||||
|
* 是否只能输入 step 的倍数 |
||||
|
*/ |
||||
|
private Boolean stepStrictly; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private Integer precision; |
||||
|
|
||||
|
/** |
||||
|
* 按钮控制位置 |
||||
|
*/ |
||||
|
private String controlsPosition; |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 分页组件属性 |
||||
|
* @create : 2021/05/19 10:29 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PaginationExpandStruct { |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : d |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class RadioExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 选项样式 |
||||
|
*/ |
||||
|
private String optionType; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
|
||||
|
|
||||
|
public static class Option { |
||||
|
public String label; |
||||
|
public Integer value; |
||||
|
} |
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 评分 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class RateExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 最大分数 |
||||
|
*/ |
||||
|
private Integer max; |
||||
|
/** |
||||
|
* 允许半选 |
||||
|
*/ |
||||
|
private Boolean allowHalf; |
||||
|
/** |
||||
|
* 辅助文字 |
||||
|
*/ |
||||
|
private Boolean showText; |
||||
|
/** |
||||
|
* 显示分数 |
||||
|
*/ |
||||
|
private Boolean showScore; |
||||
|
/** |
||||
|
* 禁用 |
||||
|
*/ |
||||
|
private Boolean disabled; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,47 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 下拉框 |
||||
|
* @create : 2020-11-19 15:13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class SelectExpandStruct { |
||||
|
/** |
||||
|
* 选项 |
||||
|
*/ |
||||
|
private List<Option> options; |
||||
|
/** |
||||
|
* 最大 |
||||
|
*/ |
||||
|
private Boolean multiple; |
||||
|
|
||||
|
/** |
||||
|
* 塞选 |
||||
|
*/ |
||||
|
private Boolean filterable; |
||||
|
/** |
||||
|
* 是否只能输入 step 的倍数 |
||||
|
*/ |
||||
|
private Boolean stepStrictly; |
||||
|
|
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private Integer precision; |
||||
|
|
||||
|
/** |
||||
|
* 按钮控制位置 |
||||
|
*/ |
||||
|
private String controlsPosition; |
||||
|
|
||||
|
|
||||
|
public static class Option { |
||||
|
public String label; |
||||
|
public Integer value; |
||||
|
} |
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* 手写签名组件属性 |
||||
|
* |
||||
|
* @author smalljop |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SignPadExpandStruct { |
||||
|
/** |
||||
|
* 颜色 |
||||
|
*/ |
||||
|
private String color; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,35 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 滑块 |
||||
|
* @create : 2020-11-19 15:13 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class SliderExpandStruct { |
||||
|
/** |
||||
|
* 最小 |
||||
|
*/ |
||||
|
private Integer min; |
||||
|
/** |
||||
|
* 最大 |
||||
|
*/ |
||||
|
private Integer max; |
||||
|
/** |
||||
|
* 计数器步长 每次+几 |
||||
|
*/ |
||||
|
private Integer step; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 是否是范围选择 |
||||
|
*/ |
||||
|
private Boolean range; |
||||
|
|
||||
|
/** |
||||
|
* 按钮控制位置 |
||||
|
*/ |
||||
|
private String controlsPosition; |
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 输入框配置 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class SwitchExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 多行文本 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class TextareaExpandStruct { |
||||
|
|
||||
|
/** |
||||
|
* 最大行数 |
||||
|
*/ |
||||
|
public Integer maxRows; |
||||
|
/** |
||||
|
* 最小行数 |
||||
|
*/ |
||||
|
public Integer minRows; |
||||
|
|
||||
|
/** |
||||
|
* 最大长度 |
||||
|
*/ |
||||
|
private Long maxlength; |
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 时间选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class TimeExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 时间区间选择 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class TimeRangeExpandStruct { |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 上传文件 |
||||
|
* @create : 2020-11-19 11:42 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class UploadExpandStruct { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 按钮文字 |
||||
|
*/ |
||||
|
private String buttonText; |
||||
|
|
||||
|
/** |
||||
|
* 显示提示 |
||||
|
*/ |
||||
|
private Boolean showTip; |
||||
|
|
||||
|
/** |
||||
|
* 文件大小 |
||||
|
*/ |
||||
|
private Long fileSize; |
||||
|
|
||||
|
/** |
||||
|
* 大小单位 |
||||
|
*/ |
||||
|
private String sizeUnit; |
||||
|
|
||||
|
/** |
||||
|
* 显示列表类型 |
||||
|
*/ |
||||
|
private String listType; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 文件数字 |
||||
|
*/ |
||||
|
private Integer limit; |
||||
|
|
||||
|
/** |
||||
|
* 是否可以多选 |
||||
|
*/ |
||||
|
private boolean multiple; |
||||
|
/** |
||||
|
* 允许上传的文件类型 |
||||
|
*/ |
||||
|
private String accept; |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmettduck.struct; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author : smalljop |
||||
|
* @description : 上传收集结果 |
||||
|
* @create : 2021/06/07 16:37 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class UploadResultStruct { |
||||
|
|
||||
|
private List<UploadFile> files; |
||||
|
|
||||
|
@Data |
||||
|
public static class UploadFile { |
||||
|
private String fileName; |
||||
|
private String url; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue