package com.mindskip.xzs.viewmodel.admin.file;
|
|
import lombok.Data;
|
|
import java.util.Arrays;
|
import java.util.List;
|
|
/**
|
* @version 2.2.0
|
* @description: 编辑器
|
* Copyright (C), 2020-2021, 武汉思维跳跃科技有限公司
|
* @date 2021 /9/7 9:45
|
*/
|
@Data
|
public class UeditorConfigVM {
|
|
/**
|
* Instantiates a new Ueditor config vm.
|
*/
|
public UeditorConfigVM() {
|
scrawlUrlPrefix = "";
|
imageMaxSize = 2048000L;
|
imageAllowFiles = Arrays.asList(".png", ".jpg", ".jpeg", ".gif", ".bmp");
|
imageCompressEnable = true;
|
imageCompressBorder = 1600;
|
imageInsertAlign = "none";
|
imageUrlPrefix = "";
|
imagePathFormat = "";
|
}
|
|
/**
|
* Instantiates a new Ueditor config vm.
|
*
|
* @param scrawlActionName the scrawl action name
|
* @param scrawlFieldName the scrawl field name
|
* @param imageActionName the image action name
|
* @param imageFieldName the image field name
|
*/
|
public UeditorConfigVM(String scrawlActionName, String scrawlFieldName, String imageActionName, String imageFieldName) {
|
this();
|
this.scrawlActionName = scrawlActionName;
|
this.scrawlFieldName = scrawlFieldName;
|
this.imageActionName = imageActionName;
|
this.imageFieldName = imageFieldName;
|
}
|
|
private String scrawlActionName;
|
private String scrawlFieldName;
|
private String imageActionName;
|
private String imageFieldName;
|
|
private String scrawlUrlPrefix;
|
private Long imageMaxSize;
|
private List<String> imageAllowFiles;
|
private boolean imageCompressEnable;
|
private Integer imageCompressBorder;
|
private String imageInsertAlign;
|
private String imageUrlPrefix;
|
private String imagePathFormat;
|
|
}
|