feat:项目1.11

feature/comment
ChenYan 2024-12-28 13:12:46 +08:00
parent 006c7004ba
commit 1c93d5b555
268 changed files with 962 additions and 1028 deletions

View File

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2018 RuoYi Copyright (c) 2018 McWl
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in
@ -17,4 +17,4 @@ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,30 +1,14 @@
<p align="center">
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.8</h1>
<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
<p align="center">
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.8-brightgreen.svg"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
</p>
## 平台简介
若依是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
* 前端采用Vue、Element UI。 * 前端采用Vue、Element UI。
* 后端采用Spring Boot、Spring Security、Redis & Jwt。 * 后端采用Spring Boot、Spring Security、Redis & Jwt。
* 权限认证使用Jwt支持多终端认证系统。 * 权限认证使用Jwt支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制。 * 支持加载动态权限菜单,多方式轻松权限控制。
* 高效率开发,使用代码生成器可以一键生成前后端代码。 * 高效率开发,使用代码生成器可以一键生成前后端代码。
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://gitcode.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。 * 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[McWl-Vue3](https://gitcode.com/yangzongzhuan/McWl-Vue3),保持同步更新。
* 提供了单应用版本[RuoYi-Vue-fast](https://gitcode.com/yangzongzhuan/RuoYi-Vue-fast)Oracle版本[RuoYi-Vue-Oracle](https://gitcode.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。 * 提供了单应用版本[McWl-Vue-fast](https://gitcode.com/yangzongzhuan/McWl-Vue-fast)Oracle版本[McWl-Vue-Oracle](https://gitcode.com/yangzongzhuan/McWl-Vue-Oracle),保持同步更新。
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) * 不分离版本,请移步[McWl](https://gitee.com/y_project/McWl),微服务版本,请移步[McWl-Cloud](https://gitee.com/y_project/McWl-Cloud)
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)&nbsp;&nbsp; * 阿里云折扣场:[点我进入](http://aly.mcwl.vip),腾讯云秒杀场:[点我进入](http://txy.mcwl.vip)&nbsp;&nbsp;
## 内置功能 ## 内置功能
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。 1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。 2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
3. 岗位管理:配置系统用户所属担任职务。 3. 岗位管理:配置系统用户所属担任职务。
@ -43,53 +27,3 @@
16. 缓存监控:对系统的缓存信息查询,命令统计等。 16. 缓存监控:对系统的缓存信息查询,命令统计等。
17. 在线构建器拖动表单元素生成相应的HTML代码。 17. 在线构建器拖动表单元素生成相应的HTML代码。
18. 连接池监视监视当前系统数据库连接池状态可进行分析SQL找出系统性能瓶颈。 18. 连接池监视监视当前系统数据库连接池状态可进行分析SQL找出系统性能瓶颈。
## 在线体验
- admin/admin123
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
演示地址http://vue.ruoyi.vip
文档地址http://doc.ruoyi.vip
## 演示图
<table>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
</tr>
</table>
## 若依前后端分离交流群
QQ群 [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/已满-167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) [![加入QQ群](https://img.shields.io/badge/已满-104748341-blue.svg)](https://jq.qq.com/?_wv=1027&k=96Dkdq0k) [![加入QQ群](https://img.shields.io/badge/已满-160110482-blue.svg)](https://jq.qq.com/?_wv=1027&k=0fsNiYZt) [![加入QQ群](https://img.shields.io/badge/已满-170801498-blue.svg)](https://jq.qq.com/?_wv=1027&k=7xw4xUG1) [![加入QQ群](https://img.shields.io/badge/已满-108482800-blue.svg)](https://jq.qq.com/?_wv=1027&k=eCx8eyoJ) [![加入QQ群](https://img.shields.io/badge/已满-101046199-blue.svg)](https://jq.qq.com/?_wv=1027&k=SpyH2875) [![加入QQ群](https://img.shields.io/badge/已满-136919097-blue.svg)](https://jq.qq.com/?_wv=1027&k=tKEt51dz) [![加入QQ群](https://img.shields.io/badge/已满-143961921-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=0vBbSb0ztbBgVtn3kJS-Q4HUNYwip89G&authKey=8irq5PhutrZmWIvsUsklBxhj57l%2F1nOZqjzigkXZVoZE451GG4JHPOqW7AW6cf0T&noverify=0&group_code=143961921) [![加入QQ群](https://img.shields.io/badge/已满-174951577-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=ZFAPAbp09S2ltvwrJzp7wGlbopsc0rwi&authKey=HB2cxpxP2yspk%2Bo3WKTBfktRCccVkU26cgi5B16u0KcAYrVu7sBaE7XSEqmMdFQp&noverify=0&group_code=174951577) [![加入QQ群](https://img.shields.io/badge/已满-161281055-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=Fn2aF5IHpwsy8j6VlalNJK6qbwFLFHat&authKey=uyIT%2B97x2AXj3odyXpsSpVaPMC%2Bidw0LxG5MAtEqlrcBcWJUA%2FeS43rsF1Tg7IRJ&noverify=0&group_code=161281055) [![加入QQ群](https://img.shields.io/badge/已满-138988063-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=XIzkm_mV2xTsUtFxo63bmicYoDBA6Ifm&authKey=dDW%2F4qsmw3x9govoZY9w%2FoWAoC4wbHqGal%2BbqLzoS6VBarU8EBptIgPKN%2FviyC8j&noverify=0&group_code=138988063) [![加入QQ群](https://img.shields.io/badge/151450850-blue.svg)](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=DkugnCg68PevlycJSKSwjhFqfIgrWWwR&authKey=pR1Pa5lPIeGF%2FFtIk6d%2FGB5qFi0EdvyErtpQXULzo03zbhopBHLWcuqdpwY241R%2F&noverify=0&group_code=151450850) 点击按钮入群。

View File

@ -6,17 +6,17 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication public class McWlApplication
{ {
public static void main(String[] args) public static void main(String[] args)
{ {
// System.setProperty("spring.devtools.restart.enabled", "false"); // System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args); SpringApplication.run(McWlApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 若依启动成功 ლ(´ڡ`ლ)゙ \n" + System.out.println("(♥◠‿◠)ノ゙ 魔创未来启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" + " .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" + " | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" + " | ( ' ) | \\ _. / ' \n" +

View File

@ -6,13 +6,13 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
/** /**
* web * web
* *
* @author ruoyi * @author mcwl
*/ */
public class RuoYiServletInitializer extends SpringBootServletInitializer public class McWlServletInitializer extends SpringBootServletInitializer
{ {
@Override @Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
{ {
return application.sources(RuoYiApplication.class); return application.sources(McWlApplication.class);
} }
} }

View File

@ -11,7 +11,7 @@ import org.springframework.util.FastByteArrayOutputStream;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.google.code.kaptcha.Producer; import com.google.code.kaptcha.Producer;
import com.mcwl.common.config.RuoYiConfig; import com.mcwl.common.config.McWlConfig;
import com.mcwl.common.constant.CacheConstants; import com.mcwl.common.constant.CacheConstants;
import com.mcwl.common.constant.Constants; import com.mcwl.common.constant.Constants;
import com.mcwl.common.core.domain.AjaxResult; import com.mcwl.common.core.domain.AjaxResult;
@ -23,7 +23,7 @@ import com.mcwl.system.service.ISysConfigService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
public class CaptchaController public class CaptchaController
@ -61,7 +61,7 @@ public class CaptchaController
BufferedImage image = null; BufferedImage image = null;
// 生成验证码 // 生成验证码
String captchaType = RuoYiConfig.getCaptchaType(); String captchaType = McWlConfig.getCaptchaType();
if ("math".equals(captchaType)) if ("math".equals(captchaType))
{ {
String capText = captchaProducerMath.createText(); String capText = captchaProducerMath.createText();

View File

@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.mcwl.common.config.RuoYiConfig; import com.mcwl.common.config.McWlConfig;
import com.mcwl.common.constant.Constants; import com.mcwl.common.constant.Constants;
import com.mcwl.common.core.domain.AjaxResult; import com.mcwl.common.core.domain.AjaxResult;
import com.mcwl.common.utils.StringUtils; import com.mcwl.common.utils.StringUtils;
@ -23,8 +23,8 @@ import com.mcwl.framework.config.ServerConfig;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/common") @RequestMapping("/common")
@ -39,7 +39,7 @@ public class CommonController
/** /**
* *
* *
* @param fileName * @param fileName
* @param delete * @param delete
*/ */
@ -53,7 +53,7 @@ public class CommonController
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName)); throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
} }
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = RuoYiConfig.getDownloadPath() + fileName; String filePath = McWlConfig.getDownloadPath() + fileName;
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName); FileUtils.setAttachmentResponseHeader(response, realFileName);
@ -78,7 +78,7 @@ public class CommonController
try try
{ {
// 上传文件路径 // 上传文件路径
String filePath = RuoYiConfig.getUploadPath(); String filePath = McWlConfig.getUploadPath();
// 上传并返回新文件名称 // 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file); String fileName = FileUploadUtils.upload(filePath, file);
String url = serverConfig.getUrl() + fileName; String url = serverConfig.getUrl() + fileName;
@ -104,7 +104,7 @@ public class CommonController
try try
{ {
// 上传文件路径 // 上传文件路径
String filePath = RuoYiConfig.getUploadPath(); String filePath = McWlConfig.getUploadPath();
List<String> urls = new ArrayList<String>(); List<String> urls = new ArrayList<String>();
List<String> fileNames = new ArrayList<String>(); List<String> fileNames = new ArrayList<String>();
List<String> newFileNames = new ArrayList<String>(); List<String> newFileNames = new ArrayList<String>();
@ -146,7 +146,7 @@ public class CommonController
throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource)); throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource));
} }
// 本地资源路径 // 本地资源路径
String localPath = RuoYiConfig.getProfile(); String localPath = McWlConfig.getProfile();
// 数据库资源地址 // 数据库资源地址
String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX); String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX);
// 下载名称 // 下载名称

View File

@ -24,8 +24,8 @@ import com.mcwl.system.domain.SysCache;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/monitor/cache") @RequestMapping("/monitor/cache")

View File

@ -9,8 +9,8 @@ import com.mcwl.framework.web.domain.Server;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/monitor/server") @RequestMapping("/monitor/server")

View File

@ -22,8 +22,8 @@ import com.mcwl.system.service.ISysLogininforService;
/** /**
* 访 * 访
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/monitor/logininfor") @RequestMapping("/monitor/logininfor")

View File

@ -22,7 +22,7 @@ import com.mcwl.system.service.ISysOperLogService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/monitor/operlog") @RequestMapping("/monitor/operlog")

View File

@ -25,8 +25,8 @@ import com.mcwl.system.service.ISysUserOnlineService;
/** /**
* 线 * 线
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/monitor/online") @RequestMapping("/monitor/online")

View File

@ -24,8 +24,8 @@ import com.mcwl.system.service.ISysConfigService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/config") @RequestMapping("/system/config")

View File

@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysDeptService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/dept") @RequestMapping("/system/dept")

View File

@ -27,8 +27,8 @@ import com.mcwl.system.service.ISysDictTypeService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/dict/data") @RequestMapping("/system/dict/data")

View File

@ -24,8 +24,8 @@ import com.mcwl.system.service.ISysDictTypeService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/dict/type") @RequestMapping("/system/dict/type")

View File

@ -3,20 +3,20 @@ package com.mcwl.web.controller.system;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.mcwl.common.config.RuoYiConfig; import com.mcwl.common.config.McWlConfig;
import com.mcwl.common.utils.StringUtils; import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
public class SysIndexController public class SysIndexController
{ {
/** 系统基础配置 */ /** 系统基础配置 */
@Autowired @Autowired
private RuoYiConfig ruoyiConfig; private McWlConfig mcwlConfig;
/** /**
* 访 * 访
@ -24,6 +24,6 @@ public class SysIndexController
@RequestMapping("/") @RequestMapping("/")
public String index() public String index()
{ {
return StringUtils.format("欢迎使用{}后台管理框架当前版本v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion()); return StringUtils.format("欢迎使用{}后台管理框架当前版本v{},请通过前端地址访问。", mcwlConfig.getName(), mcwlConfig.getVersion());
} }
} }

View File

@ -21,8 +21,8 @@ import com.mcwl.system.service.ISysMenuService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
public class SysLoginController public class SysLoginController
@ -41,7 +41,7 @@ public class SysLoginController
/** /**
* *
* *
* @param loginBody * @param loginBody
* @return * @return
*/ */
@ -58,7 +58,7 @@ public class SysLoginController
/** /**
* *
* *
* @return * @return
*/ */
@GetMapping("getInfo") @GetMapping("getInfo")
@ -84,7 +84,7 @@ public class SysLoginController
/** /**
* *
* *
* @return * @return
*/ */
@GetMapping("getRouters") @GetMapping("getRouters")

View File

@ -23,8 +23,8 @@ import com.mcwl.system.service.ISysMenuService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/menu") @RequestMapping("/system/menu")
@ -139,4 +139,4 @@ public class SysMenuController extends BaseController
} }
return toAjax(menuService.deleteMenuById(menuId)); return toAjax(menuService.deleteMenuById(menuId));
} }
} }

View File

@ -22,8 +22,8 @@ import com.mcwl.system.service.ISysNoticeService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/notice") @RequestMapping("/system/notice")

View File

@ -25,7 +25,7 @@ import com.mcwl.system.service.ISysPostService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/post") @RequestMapping("/system/post")

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.mcwl.common.annotation.Log; import com.mcwl.common.annotation.Log;
import com.mcwl.common.config.RuoYiConfig; import com.mcwl.common.config.McWlConfig;
import com.mcwl.common.core.controller.BaseController; import com.mcwl.common.core.controller.BaseController;
import com.mcwl.common.core.domain.AjaxResult; import com.mcwl.common.core.domain.AjaxResult;
import com.mcwl.common.core.domain.entity.SysUser; import com.mcwl.common.core.domain.entity.SysUser;
@ -27,7 +27,7 @@ import com.mcwl.system.service.ISysUserService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/user/profile") @RequestMapping("/system/user/profile")
@ -124,7 +124,7 @@ public class SysProfileController extends BaseController
if (!file.isEmpty()) if (!file.isEmpty())
{ {
LoginUser loginUser = getLoginUser(); LoginUser loginUser = getLoginUser();
String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION); String avatar = FileUploadUtils.upload(McWlConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION);
if (userService.updateUserAvatar(loginUser.getUsername(), avatar)) if (userService.updateUserAvatar(loginUser.getUsername(), avatar))
{ {
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();

View File

@ -14,7 +14,7 @@ import com.mcwl.system.service.ISysConfigService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
public class SysRegisterController extends BaseController public class SysRegisterController extends BaseController

View File

@ -33,8 +33,8 @@ import com.mcwl.system.service.ISysUserService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/role") @RequestMapping("/system/role")
@ -125,7 +125,7 @@ public class SysRoleController extends BaseController
return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在"); return error("修改角色'" + role.getRoleName() + "'失败,角色权限已存在");
} }
role.setUpdateBy(getUsername()); role.setUpdateBy(getUsername());
if (roleService.updateRole(role) > 0) if (roleService.updateRole(role) > 0)
{ {
// 更新缓存用户权限 // 更新缓存用户权限

View File

@ -34,8 +34,8 @@ import com.mcwl.system.service.ISysUserService;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@RestController @RestController
@RequestMapping("/system/user") @RequestMapping("/system/user")

View File

@ -24,8 +24,8 @@ import io.swagger.annotations.ApiOperation;
/** /**
* swagger * swagger
* *
* @author ruoyi * @author mcwl
*/ */
@Api("用户信息管理") @Api("用户信息管理")
@RestController @RestController

View File

@ -6,7 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.mcwl.common.config.RuoYiConfig; import com.mcwl.common.config.McWlConfig;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In; import io.swagger.models.auth.In;
import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.ApiInfoBuilder;
@ -24,15 +24,15 @@ import springfox.documentation.spring.web.plugins.Docket;
/** /**
* Swagger2 * Swagger2
* *
* @author ruoyi * @author mcwl
*/ */
@Configuration @Configuration
public class SwaggerConfig public class SwaggerConfig
{ {
/** 系统基础配置 */ /** 系统基础配置 */
@Autowired @Autowired
private RuoYiConfig ruoyiConfig; private McWlConfig mcwlConfig;
/** 是否开启swagger */ /** 是否开启swagger */
@Value("${swagger.enabled}") @Value("${swagger.enabled}")
@ -113,13 +113,13 @@ public class SwaggerConfig
// 用ApiInfoBuilder进行定制 // 用ApiInfoBuilder进行定制
return new ApiInfoBuilder() return new ApiInfoBuilder()
// 设置标题 // 设置标题
.title("标题:若依管理系统_接口文档") .title("标题:魔创未来管理系统_接口文档")
// 描述 // 描述
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
// 作者信息 // 作者信息
.contact(new Contact(ruoyiConfig.getName(), null, null)) .contact(new Contact(mcwlConfig.getName(), null, null))
// 版本 // 版本
.version("版本号:" + ruoyiConfig.getVersion()) .version("版本号:" + mcwlConfig.getVersion())
.build(); .build();
} }
} }

View File

@ -13,9 +13,9 @@ spring:
slave: slave:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
enabled: false enabled: false
url: url:
username: username:
password: password:
# 初始连接数 # 初始连接数
initialSize: 5 initialSize: 5
# 最小连接池数量 # 最小连接池数量
@ -39,7 +39,7 @@ spring:
testWhileIdle: true testWhileIdle: true
testOnBorrow: false testOnBorrow: false
testOnReturn: false testOnReturn: false
webStatFilter: webStatFilter:
enabled: true enabled: true
statViewServlet: statViewServlet:
enabled: true enabled: true
@ -47,7 +47,7 @@ spring:
allow: allow:
url-pattern: /druid/* url-pattern: /druid/*
# 控制台管理用户名和密码 # 控制台管理用户名和密码
login-username: ruoyi login-username: mcwl
login-password: 123456 login-password: 123456
filter: filter:
stat: stat:

View File

@ -1,13 +1,13 @@
# 项目相关配置 # 项目相关配置
ruoyi: mcwl:
# 名称 # 名称
name: RuoYi name: McWl
# 版本 # 版本
version: 3.8.8 version: 3.8.8
# 版权年份 # 版权年份
copyrightYear: 2024 copyrightYear: 2024
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath # 文件路径 示例( Windows配置D:/mcwl/uploadPathLinux配置 /home/mcwl/uploadPath
profile: D:/ruoyi/uploadPath profile: D:/mcwl/uploadPath
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: false addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证 # 验证码类型 math 数字计算 char 字符验证

View File

@ -1,4 +1,4 @@
Application Version: ${ruoyi.version} Application Version: ${mcwl.version}
Spring Boot Version: ${spring-boot.version} Spring Boot Version: ${spring-boot.version}
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// _ooOoo_ // // _ooOoo_ //
@ -21,4 +21,4 @@ Spring Boot Version: ${spring-boot.version}
// `=---=' // // `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG // // 佛祖保佑 永不宕机 永无BUG //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<!-- 日志存放路径 --> <!-- 日志存放路径 -->
<property name="log.path" value="/home/ruoyi/logs" /> <property name="log.path" value="/home/mcwl/logs" />
<!-- 日志输出格式 --> <!-- 日志输出格式 -->
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" /> <property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
@ -11,7 +11,7 @@
<pattern>${log.pattern}</pattern> <pattern>${log.pattern}</pattern>
</encoder> </encoder>
</appender> </appender>
<!-- 系统日志输出 --> <!-- 系统日志输出 -->
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-info.log</file> <file>${log.path}/sys-info.log</file>
@ -34,7 +34,7 @@
<onMismatch>DENY</onMismatch> <onMismatch>DENY</onMismatch>
</filter> </filter>
</appender> </appender>
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-error.log</file> <file>${log.path}/sys-error.log</file>
<!-- 循环政策:基于时间创建日志文件 --> <!-- 循环政策:基于时间创建日志文件 -->
@ -56,7 +56,7 @@
<onMismatch>DENY</onMismatch> <onMismatch>DENY</onMismatch>
</filter> </filter>
</appender> </appender>
<!-- 用户访问日志输出 --> <!-- 用户访问日志输出 -->
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${log.path}/sys-user.log</file> <file>${log.path}/sys-user.log</file>
@ -70,7 +70,7 @@
<pattern>${log.pattern}</pattern> <pattern>${log.pattern}</pattern>
</encoder> </encoder>
</appender> </appender>
<!-- 系统模块日志级别控制 --> <!-- 系统模块日志级别控制 -->
<logger name="com.mcwl" level="info" /> <logger name="com.mcwl" level="info" />
<!-- Spring日志级别控制 --> <!-- Spring日志级别控制 -->
@ -79,15 +79,15 @@
<root level="info"> <root level="info">
<appender-ref ref="console" /> <appender-ref ref="console" />
</root> </root>
<!--系统操作日志--> <!--系统操作日志-->
<root level="info"> <root level="info">
<appender-ref ref="file_info" /> <appender-ref ref="file_info" />
<appender-ref ref="file_error" /> <appender-ref ref="file_error" />
</root> </root>
<!--系统用户操作日志--> <!--系统用户操作日志-->
<logger name="sys-user" level="info"> <logger name="sys-user" level="info">
<appender-ref ref="sys-user"/> <appender-ref ref="sys-user"/>
</logger> </logger>
</configuration> </configuration>

View File

@ -8,8 +8,8 @@ import java.lang.annotation.Target;
/** /**
* 访 * 访
* *
* @author ruoyi * @author mcwl
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -8,8 +8,8 @@ import java.lang.annotation.Target;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -13,7 +13,7 @@ import com.mcwl.common.enums.DataSourceType;
* *
* *
* *
* @author ruoyi * @author mcwl
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -11,8 +11,8 @@ import com.mcwl.common.utils.poi.ExcelHandlerAdapter;
/** /**
* Excel * Excel
* *
* @author ruoyi * @author mcwl
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@ -84,7 +84,7 @@ public @interface Excel
public String prompt() default ""; public String prompt() default "";
/** /**
* *
*/ */
public boolean wrapText() default false; public boolean wrapText() default false;
@ -194,4 +194,4 @@ public @interface Excel
return this.value; return this.value;
} }
} }
} }

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/** /**
* Excel * Excel
* *
* @author ruoyi * @author mcwl
*/ */
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -10,8 +10,8 @@ import com.mcwl.common.enums.OperatorType;
/** /**
* *
* *
* @author ruoyi * @author mcwl
* *
*/ */
@Target({ ElementType.PARAMETER, ElementType.METHOD }) @Target({ ElementType.PARAMETER, ElementType.METHOD })

View File

@ -11,7 +11,7 @@ import com.mcwl.common.enums.LimitType;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -9,8 +9,8 @@ import java.lang.annotation.Target;
/** /**
* *
* *
* @author ruoyi * @author mcwl
* *
*/ */
@Inherited @Inherited

View File

@ -12,7 +12,7 @@ import com.mcwl.common.enums.DesensitizedType;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)

View File

@ -5,12 +5,12 @@ import org.springframework.stereotype.Component;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
@Component @Component
@ConfigurationProperties(prefix = "ruoyi") @ConfigurationProperties(prefix = "mcwl")
public class RuoYiConfig public class McWlConfig
{ {
/** 项目名称 */ /** 项目名称 */
private String name; private String name;
@ -67,7 +67,7 @@ public class RuoYiConfig
public void setProfile(String profile) public void setProfile(String profile)
{ {
RuoYiConfig.profile = profile; McWlConfig.profile = profile;
} }
public static boolean isAddressEnabled() public static boolean isAddressEnabled()
@ -77,7 +77,7 @@ public class RuoYiConfig
public void setAddressEnabled(boolean addressEnabled) public void setAddressEnabled(boolean addressEnabled)
{ {
RuoYiConfig.addressEnabled = addressEnabled; McWlConfig.addressEnabled = addressEnabled;
} }
public static String getCaptchaType() { public static String getCaptchaType() {
@ -85,7 +85,7 @@ public class RuoYiConfig
} }
public void setCaptchaType(String captchaType) { public void setCaptchaType(String captchaType) {
RuoYiConfig.captchaType = captchaType; McWlConfig.captchaType = captchaType;
} }
/** /**

View File

@ -16,7 +16,7 @@ import com.mcwl.common.utils.SecurityUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class SensitiveJsonSerializer extends JsonSerializer<String> implements ContextualSerializer public class SensitiveJsonSerializer extends JsonSerializer<String> implements ContextualSerializer
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.constant;
/** /**
* key * key
* *
* @author ruoyi * @author mcwl
*/ */
public class CacheConstants public class CacheConstants
{ {

View File

@ -5,8 +5,8 @@ import io.jsonwebtoken.Claims;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class Constants public class Constants
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.constant;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class GenConstants public class GenConstants
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.constant;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class HttpStatus public class HttpStatus
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.constant;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class ScheduleConstants public class ScheduleConstants
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.constant;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UserConstants public class UserConstants
{ {

View File

@ -23,8 +23,8 @@ import com.mcwl.common.utils.sql.SqlUtil;
/** /**
* web * web
* *
* @author ruoyi * @author mcwl
*/ */
public class BaseController public class BaseController
{ {
@ -113,7 +113,7 @@ public class BaseController
{ {
return AjaxResult.success(message); return AjaxResult.success(message);
} }
/** /**
* *
*/ */
@ -140,7 +140,7 @@ public class BaseController
/** /**
* *
* *
* @param rows * @param rows
* @return * @return
*/ */
@ -151,7 +151,7 @@ public class BaseController
/** /**
* *
* *
* @param result * @param result
* @return * @return
*/ */

View File

@ -7,8 +7,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class AjaxResult extends HashMap<String, Object> public class AjaxResult extends HashMap<String, Object>
{ {
@ -32,7 +32,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* AjaxResult * AjaxResult
* *
* @param code * @param code
* @param msg * @param msg
*/ */
@ -44,7 +44,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* AjaxResult * AjaxResult
* *
* @param code * @param code
* @param msg * @param msg
* @param data * @param data
@ -61,7 +61,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @return * @return
*/ */
public static AjaxResult success() public static AjaxResult success()
@ -71,7 +71,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @return * @return
*/ */
public static AjaxResult success(Object data) public static AjaxResult success(Object data)
@ -81,7 +81,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @param msg * @param msg
* @return * @return
*/ */
@ -92,7 +92,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @param msg * @param msg
* @param data * @param data
* @return * @return
@ -127,7 +127,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @return * @return
*/ */
public static AjaxResult error() public static AjaxResult error()
@ -137,7 +137,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @param msg * @param msg
* @return * @return
*/ */
@ -148,7 +148,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @param msg * @param msg
* @param data * @param data
* @return * @return
@ -160,7 +160,7 @@ public class AjaxResult extends HashMap<String, Object>
/** /**
* *
* *
* @param code * @param code
* @param msg * @param msg
* @return * @return

View File

@ -11,7 +11,7 @@ import com.fasterxml.jackson.annotation.JsonInclude;
/** /**
* Entity * Entity
* *
* @author ruoyi * @author mcwl
*/ */
public class BaseEntity implements Serializable public class BaseEntity implements Serializable
{ {

View File

@ -6,7 +6,7 @@ import com.mcwl.common.constant.HttpStatus;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class R<T> implements Serializable public class R<T> implements Serializable
{ {

View File

@ -5,8 +5,8 @@ import java.util.List;
/** /**
* Tree * Tree
* *
* @author ruoyi * @author mcwl
*/ */
public class TreeEntity extends BaseEntity public class TreeEntity extends BaseEntity
{ {

View File

@ -11,8 +11,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* Treeselect * Treeselect
* *
* @author ruoyi * @author mcwl
*/ */
public class TreeSelect implements Serializable public class TreeSelect implements Serializable
{ {

View File

@ -13,7 +13,7 @@ import com.mcwl.common.core.domain.BaseEntity;
/** /**
* sys_dept * sys_dept
* *
* @author ruoyi * @author mcwl
*/ */
public class SysDept extends BaseEntity public class SysDept extends BaseEntity
{ {

View File

@ -11,8 +11,8 @@ import com.mcwl.common.core.domain.BaseEntity;
/** /**
* sys_dict_data * sys_dict_data
* *
* @author ruoyi * @author mcwl
*/ */
public class SysDictData extends BaseEntity public class SysDictData extends BaseEntity
{ {
@ -153,7 +153,7 @@ public class SysDictData extends BaseEntity
{ {
this.status = status; this.status = status;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -11,8 +11,8 @@ import com.mcwl.common.core.domain.BaseEntity;
/** /**
* sys_dict_type * sys_dict_type
* *
* @author ruoyi * @author mcwl
*/ */
public class SysDictType extends BaseEntity public class SysDictType extends BaseEntity
{ {
@ -78,7 +78,7 @@ public class SysDictType extends BaseEntity
{ {
this.status = status; this.status = status;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

View File

@ -11,8 +11,8 @@ import com.mcwl.common.core.domain.BaseEntity;
/** /**
* sys_menu * sys_menu
* *
* @author ruoyi * @author mcwl
*/ */
public class SysMenu extends BaseEntity public class SysMenu extends BaseEntity
{ {

View File

@ -13,7 +13,7 @@ import com.mcwl.common.core.domain.BaseEntity;
/** /**
* sys_role * sys_role
* *
* @author ruoyi * @author mcwl
*/ */
public class SysRole extends BaseEntity public class SysRole extends BaseEntity
{ {

View File

@ -14,8 +14,8 @@ import com.mcwl.common.xss.Xss;
/** /**
* sys_user * sys_user
* *
* @author ruoyi * @author mcwl
*/ */
public class SysUser extends BaseEntity public class SysUser extends BaseEntity
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.core.domain.model;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class LoginBody public class LoginBody
{ {

View File

@ -9,8 +9,8 @@ import java.util.Set;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class LoginUser implements UserDetails public class LoginUser implements UserDetails
{ {
@ -144,7 +144,7 @@ public class LoginUser implements UserDetails
/** /**
* , * ,
* *
* @return * @return
*/ */
@JSONField(serialize = false) @JSONField(serialize = false)
@ -156,7 +156,7 @@ public class LoginUser implements UserDetails
/** /**
* (), * (),
* *
* @return * @return
*/ */
@JSONField(serialize = false) @JSONField(serialize = false)
@ -168,7 +168,7 @@ public class LoginUser implements UserDetails
/** /**
* , * ,
* *
* @return * @return
*/ */
@JSONField(serialize = false) @JSONField(serialize = false)

View File

@ -3,7 +3,7 @@ package com.mcwl.common.core.domain.model;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class RegisterBody extends LoginBody public class RegisterBody extends LoginBody
{ {

View File

@ -5,7 +5,7 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class PageDomain public class PageDomain
{ {

View File

@ -6,7 +6,7 @@ import java.util.List;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class TableDataInfo implements Serializable public class TableDataInfo implements Serializable
{ {

View File

@ -6,7 +6,7 @@ import com.mcwl.common.utils.ServletUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class TableSupport public class TableSupport
{ {

View File

@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
/** /**
* spring redis * spring redis
* *
* @author ruoyi * @author mcwl
**/ **/
@SuppressWarnings(value = { "unchecked", "rawtypes" }) @SuppressWarnings(value = { "unchecked", "rawtypes" })
@Component @Component

View File

@ -6,8 +6,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class CharsetKit public class CharsetKit
{ {
@ -27,7 +27,7 @@ public class CharsetKit
/** /**
* Charset * Charset
* *
* @param charset * @param charset
* @return Charset * @return Charset
*/ */
@ -38,7 +38,7 @@ public class CharsetKit
/** /**
* *
* *
* @param source * @param source
* @param srcCharset ISO-8859-1 * @param srcCharset ISO-8859-1
* @param destCharset UTF-8 * @param destCharset UTF-8
@ -51,7 +51,7 @@ public class CharsetKit
/** /**
* *
* *
* @param source * @param source
* @param srcCharset ISO-8859-1 * @param srcCharset ISO-8859-1
* @param destCharset UTF-8 * @param destCharset UTF-8

View File

@ -13,7 +13,7 @@ import org.apache.commons.lang3.ArrayUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class Convert public class Convert
{ {

View File

@ -4,8 +4,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class StrFormatter public class StrFormatter
{ {
@ -22,7 +22,7 @@ public class StrFormatter
* 使format("this is {} for {}", "a", "b") -> this is a for b<br> * 使format("this is {} for {}", "a", "b") -> this is a for b<br>
* {} format("this is \\{} for {}", "a", "b") -> this is \{} for a<br> * {} format("this is \\{} for {}", "a", "b") -> this is \{} for a<br>
* \ format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br> * \ format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br>
* *
* @param strPattern * @param strPattern
* @param argArray * @param argArray
* @return * @return

View File

@ -2,8 +2,8 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
* *
*/ */
public enum BusinessStatus public enum BusinessStatus

View File

@ -2,8 +2,8 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum BusinessType public enum BusinessType
{ {
@ -51,7 +51,7 @@ public enum BusinessType
* *
*/ */
GENCODE, GENCODE,
/** /**
* *
*/ */

View File

@ -2,8 +2,8 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum DataSourceType public enum DataSourceType
{ {

View File

@ -6,7 +6,7 @@ import com.mcwl.common.utils.DesensitizedUtil;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum DesensitizedType public enum DesensitizedType
{ {

View File

@ -7,7 +7,7 @@ import org.springframework.lang.Nullable;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum HttpMethod public enum HttpMethod
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum LimitType public enum LimitType

View File

@ -2,8 +2,8 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum OperatorType public enum OperatorType
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.enums;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public enum UserStatus public enum UserStatus
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class DemoModeException extends RuntimeException public class DemoModeException extends RuntimeException
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class GlobalException extends RuntimeException public class GlobalException extends RuntimeException
{ {
@ -55,4 +55,4 @@ public class GlobalException extends RuntimeException
this.message = message; this.message = message;
return this; return this;
} }
} }

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public final class ServiceException extends RuntimeException public final class ServiceException extends RuntimeException
{ {
@ -71,4 +71,4 @@ public final class ServiceException extends RuntimeException
this.detailMessage = detailMessage; this.detailMessage = detailMessage;
return this; return this;
} }
} }

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UtilException extends RuntimeException public class UtilException extends RuntimeException
{ {

View File

@ -5,8 +5,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class BaseException extends RuntimeException public class BaseException extends RuntimeException
{ {

View File

@ -5,7 +5,7 @@ import com.mcwl.common.exception.base.BaseException;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class FileException extends BaseException public class FileException extends BaseException
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception.file;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class FileNameLengthLimitExceededException extends FileException public class FileNameLengthLimitExceededException extends FileException
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception.file;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class FileSizeLimitExceededException extends FileException public class FileSizeLimitExceededException extends FileException
{ {

View File

@ -6,7 +6,7 @@ import java.io.PrintWriter;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class FileUploadException extends Exception public class FileUploadException extends Exception
{ {

View File

@ -4,8 +4,8 @@ import java.util.Arrays;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class InvalidExtensionException extends FileUploadException public class InvalidExtensionException extends FileUploadException
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception.job;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class TaskException extends Exception public class TaskException extends Exception
{ {
@ -31,4 +31,4 @@ public class TaskException extends Exception
{ {
TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE TASK_EXISTS, NO_TASK_EXISTS, TASK_ALREADY_STARTED, UNKNOWN, CONFIG_ERROR, TASK_NODE_NOT_AVAILABLE
} }
} }

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception.user;
/** /**
* IP * IP
* *
* @author ruoyi * @author mcwl
*/ */
public class BlackListException extends UserException public class BlackListException extends UserException
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class CaptchaException extends UserException public class CaptchaException extends UserException
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class CaptchaExpireException extends UserException public class CaptchaExpireException extends UserException
{ {

View File

@ -5,7 +5,7 @@ import com.mcwl.common.exception.base.BaseException;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UserException extends BaseException public class UserException extends BaseException
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception.user;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UserNotExistsException extends UserException public class UserNotExistsException extends UserException
{ {

View File

@ -2,8 +2,8 @@ package com.mcwl.common.exception.user;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UserPasswordNotMatchException extends UserException public class UserPasswordNotMatchException extends UserException
{ {

View File

@ -3,7 +3,7 @@ package com.mcwl.common.exception.user;
/** /**
* *
* *
* @author ruoyi * @author mcwl
*/ */
public class UserPasswordRetryLimitExceedException extends UserException public class UserPasswordRetryLimitExceedException extends UserException
{ {

View File

@ -4,8 +4,8 @@ import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;
/** /**
* JSON * JSON
* *
* @author ruoyi * @author mcwl
*/ */
public class PropertyPreExcludeFilter extends SimplePropertyPreFilter public class PropertyPreExcludeFilter extends SimplePropertyPreFilter
{ {

View File

@ -13,8 +13,8 @@ import com.mcwl.common.utils.StringUtils;
/** /**
* Repeatable * Repeatable
* *
* @author ruoyi * @author mcwl
*/ */
public class RepeatableFilter implements Filter public class RepeatableFilter implements Filter
{ {

View File

@ -15,7 +15,7 @@ import com.mcwl.common.constant.Constants;
/** /**
* inputStreamrequest * inputStreamrequest
* *
* @author ruoyi * @author mcwl
*/ */
public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper public class RepeatedlyRequestWrapper extends HttpServletRequestWrapper
{ {

View File

@ -16,8 +16,8 @@ import com.mcwl.common.enums.HttpMethod;
/** /**
* XSS * XSS
* *
* @author ruoyi * @author mcwl
*/ */
public class XssFilter implements Filter public class XssFilter implements Filter
{ {
@ -72,4 +72,4 @@ public class XssFilter implements Filter
{ {
} }
} }

View File

@ -15,7 +15,7 @@ import com.mcwl.common.utils.html.EscapeUtil;
/** /**
* XSS * XSS
* *
* @author ruoyi * @author mcwl
*/ */
public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
{ {
@ -108,4 +108,4 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper
String header = super.getHeader(HttpHeaders.CONTENT_TYPE); String header = super.getHeader(HttpHeaders.CONTENT_TYPE);
return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE); return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE);
} }
} }

Some files were not shown because too many files have changed in this diff Show More