|
@@ -1,122 +0,0 @@
|
|
-package com.ruoyi.system.domain;
|
|
|
|
-
|
|
|
|
-/**
|
|
|
|
- * @Author: tjf
|
|
|
|
- * @Date: 2023/10/13 11:24
|
|
|
|
- * @Describe:
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
-public class Ueditor {
|
|
|
|
- //前端传过来的参数,用于区分是什么请求
|
|
|
|
- public final static String ACTION_CONFIG = "config";
|
|
|
|
- public final static String ACTION_UPLOADIMAGE = "uploadimage";
|
|
|
|
- public final static String ACTION_UPLOADVIDEO = "uploadvideo";
|
|
|
|
- public final static String ACTION_UPLOADFILE = "uploadfile";
|
|
|
|
- //后端返给前端的参数,需要时特定格式
|
|
|
|
- public final static String ACTION_SUCCESS = "SUCCESS";
|
|
|
|
- public final static String ACTION_FAIL = "FAIL";
|
|
|
|
- private String state;
|
|
|
|
- private String url;
|
|
|
|
- private String title;
|
|
|
|
- private String original;
|
|
|
|
-
|
|
|
|
- //关键,假装自己是jsp的东西
|
|
|
|
- public final static String UEDITOR_CONFIG = "{\n" +
|
|
|
|
- " \"imageActionName\": \"uploadimage\",\n" +
|
|
|
|
- " \"imageFieldName\": \"upfile\", \n" +
|
|
|
|
- " \"imageMaxSize\": 2048000, \n" +
|
|
|
|
- " \"imageAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\"],\n" +
|
|
|
|
- " \"imageCompressEnable\": true, \n" +
|
|
|
|
- " \"imageCompressBorder\": 1600, \n" +
|
|
|
|
- " \"imageInsertAlign\": \"none\", \n" +
|
|
|
|
- " \"imageUrlPrefix\": \"\", \n" +
|
|
|
|
- " \"imagePathFormat\": \"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
|
|
|
|
- " \"scrawlActionName\": \"uploadscrawl\",\n" +
|
|
|
|
- " \"scrawlFieldName\": \"upfile\", \n" +
|
|
|
|
- " \"scrawlPathFormat\": \"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
|
|
|
|
- " \"scrawlMaxSize\": 2048000,\n" +
|
|
|
|
- " \"scrawlUrlPrefix\": \"\",\n" +
|
|
|
|
- " \"scrawlInsertAlign\": \"none\",\n" +
|
|
|
|
- " \"snapscreenActionName\": \"uploadimage\", \n" +
|
|
|
|
- " \"snapscreenPathFormat\": \"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
|
|
|
|
- " \"snapscreenUrlPrefix\": \"\", \n" +
|
|
|
|
- " \"snapscreenInsertAlign\": \"none\",\n" +
|
|
|
|
- " \"catcherLocalDomain\": [\"127.0.0.1\", \"localhost\", \"img.baidu.com\"],\n" +
|
|
|
|
- " \"catcherActionName\": \"catchimage\", \n" +
|
|
|
|
- " \"catcherFieldName\": \"source\",\n" +
|
|
|
|
- " \"catcherPathFormat\": \"/ueditor/jsp/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
|
|
|
|
- " \"catcherUrlPrefix\": \"\", \n" +
|
|
|
|
- " \"catcherMaxSize\": 2048000, \n" +
|
|
|
|
- " \"catcherAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\"], \n" +
|
|
|
|
- " \"videoActionName\": \"uploadvideo\",\n" +
|
|
|
|
- " \"videoFieldName\": \"upfile\",\n" +
|
|
|
|
- " \"videoPathFormat\": \"/ueditor/jsp/upload/video/{yyyy}{mm}{dd}/{time}{rand:6}\",\n" +
|
|
|
|
- " \"videoUrlPrefix\": \"\",\n" +
|
|
|
|
- " \"videoMaxSize\": 102400000, \n" +
|
|
|
|
- " \"videoAllowFiles\": [\n" +
|
|
|
|
- " \".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\",\n" +
|
|
|
|
- " \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\"], \n" +
|
|
|
|
- " \"fileActionName\": \"uploadfile\", \n" +
|
|
|
|
- " \"fileFieldName\": \"upfile\",\n" +
|
|
|
|
- " \"filePathFormat\": \"/ueditor/jsp/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}\", \n" +
|
|
|
|
- " \"fileUrlPrefix\": \"\",\n" +
|
|
|
|
- " \"fileMaxSize\": 51200000, \n" +
|
|
|
|
- " \"fileAllowFiles\": [\n" +
|
|
|
|
- " \".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\",\n" +
|
|
|
|
- " \".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\",\n" +
|
|
|
|
- " \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\",\n" +
|
|
|
|
- " \".rar\", \".zip\", \".tar\", \".gz\", \".7z\", \".bz2\", \".cab\", \".iso\",\n" +
|
|
|
|
- " \".doc\", \".docx\", \".xls\", \".xlsx\", \".ppt\", \".pptx\", \".pdf\", \".txt\", \".md\", \".xml\"\n" +
|
|
|
|
- " ],\n" +
|
|
|
|
- " \"imageManagerActionName\": \"listimage\",\n" +
|
|
|
|
- " \"imageManagerListPath\": \"/ueditor/jsp/upload/image/\",\n" +
|
|
|
|
- " \"imageManagerListSize\": 20, \n" +
|
|
|
|
- " \"imageManagerUrlPrefix\": \"\", \n" +
|
|
|
|
- " \"imageManagerInsertAlign\": \"none\", \n" +
|
|
|
|
- " \"imageManagerAllowFiles\": [\".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\"],\n" +
|
|
|
|
- " \"fileManagerActionName\": \"listfile\", \n" +
|
|
|
|
- " \"fileManagerListPath\": \"/ueditor/jsp/upload/file/\",\n" +
|
|
|
|
- " \"fileManagerUrlPrefix\": \"\",\n" +
|
|
|
|
- " \"fileManagerListSize\": 20,\n" +
|
|
|
|
- " \"fileManagerAllowFiles\": [\n" +
|
|
|
|
- " \".png\", \".jpg\", \".jpeg\", \".gif\", \".bmp\",\n" +
|
|
|
|
- " \".flv\", \".swf\", \".mkv\", \".avi\", \".rm\", \".rmvb\", \".mpeg\", \".mpg\",\n" +
|
|
|
|
- " \".ogg\", \".ogv\", \".mov\", \".wmv\", \".mp4\", \".webm\", \".mp3\", \".wav\", \".mid\",\n" +
|
|
|
|
- " \".rar\", \".zip\", \".tar\", \".gz\", \".7z\", \".bz2\", \".cab\", \".iso\",\n" +
|
|
|
|
- " \".doc\", \".docx\", \".xls\", \".xlsx\", \".ppt\", \".pptx\", \".pdf\", \".txt\", \".md\", \".xml\"\n" +
|
|
|
|
- " ]\n" +
|
|
|
|
- "\n" +
|
|
|
|
- "}";
|
|
|
|
-
|
|
|
|
- public String getState() {
|
|
|
|
- return state;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setState(String state) {
|
|
|
|
- this.state = state;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getUrl() {
|
|
|
|
- return url;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setUrl(String url) {
|
|
|
|
- this.url = url;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getTitle() {
|
|
|
|
- return title;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setTitle(String title) {
|
|
|
|
- this.title = title;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public String getOriginal() {
|
|
|
|
- return original;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setOriginal(String original) {
|
|
|
|
- this.original = original;
|
|
|
|
- }
|
|
|
|
-}
|
|
|