From 4437c749cacaae1693c2b56b809cb0e21c67d7c6 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 25 Jan 2021 11:26:50 +0800 Subject: [PATCH] =?UTF-8?q?JeecgBoot=202.4.2=20=E7=A7=AF=E6=9C=A8=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E7=89=88=E6=9C=AC=E5=8F=91=E5=B8=83=EF=BC=88=E5=BE=AE?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=90=AF=E5=8A=A8=E6=8A=A5=E9=94=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg/common/system/api/ISysBaseAPI.java | 30 +++++++++---------- .../api/controller/SystemAPIController.java | 4 +-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-api/jeecg-system-cloud-api/src/main/java/org/jeecg/common/system/api/ISysBaseAPI.java b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-api/jeecg-system-cloud-api/src/main/java/org/jeecg/common/system/api/ISysBaseAPI.java index d070779c..01541f88 100644 --- a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-api/jeecg-system-cloud-api/src/main/java/org/jeecg/common/system/api/ISysBaseAPI.java +++ b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-api/jeecg-system-cloud-api/src/main/java/org/jeecg/common/system/api/ISysBaseAPI.java @@ -140,7 +140,7 @@ public interface ISysBaseAPI extends CommonAPI { * 15根据业务类型 busType 及业务 busId 修改消息已读 */ @GetMapping("/sys/api/updateSysAnnounReadFlag") - public void updateSysAnnounReadFlag(@RequestParam("busType") String busType, @RequestParam("busId")String busId); + public void updateSysAnnounReadFlag(@RequestParam("busType") String busType, @RequestParam("busId") String busId); /** * 16查询表字典 支持过滤数据 @@ -177,7 +177,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryAllUser") - public JSONObject queryAllUser(@RequestParam(name="userIds",required=false)String userIds, @RequestParam(name="pageNo",required=false) Integer pageNo,@RequestParam(name="pageSize",required=false) int pageSize); + public JSONObject queryAllUser(@RequestParam(name = "userIds", required = false) String userIds, @RequestParam(name = "pageNo", required = false) Integer pageNo, @RequestParam(name = "pageSize", required = false) int pageSize); /** @@ -186,7 +186,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryAllRole") - public List queryAllRole(@RequestParam(name = "roleIds",required = false)String[] roleIds); + public List queryAllRole(@RequestParam(name = "roleIds", required = false) String[] roleIds); /** * 21通过用户账号查询角色Id集合 @@ -194,7 +194,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/getRoleIdsByUsername") - public List getRoleIdsByUsername(@RequestParam("username")String username); + public List getRoleIdsByUsername(@RequestParam("username") String username); /** * 22通过部门编号查询部门id @@ -202,7 +202,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/getDepartIdsByOrgCode") - public String getDepartIdsByOrgCode(@RequestParam("orgCode")String orgCode); + public String getDepartIdsByOrgCode(@RequestParam("orgCode") String orgCode); /** * 23查询所有部门 @@ -217,7 +217,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/getParentDepartId") - DictModel getParentDepartId(@RequestParam("departId")String departId); + DictModel getParentDepartId(@RequestParam("departId") String departId); /** * 25根据部门Id获取部门负责人 @@ -233,7 +233,7 @@ public interface ISysBaseAPI extends CommonAPI { * @param cmd */ @GetMapping("/sys/api/sendWebSocketMsg") - public void sendWebSocketMsg(@RequestParam("userIds")String[] userIds, @RequestParam("cmd") String cmd); + public void sendWebSocketMsg(@RequestParam("userIds") String[] userIds, @RequestParam("cmd") String cmd); /** * 27根据id获取所有参与用户 @@ -250,7 +250,7 @@ public interface ISysBaseAPI extends CommonAPI { * @param userId */ @GetMapping("/sys/api/meetingSignWebsocket") - void meetingSignWebsocket(@RequestParam("userId")String userId); + void meetingSignWebsocket(@RequestParam("userId") String userId); /** * 29根据name获取所有参与用户 @@ -258,7 +258,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryUserByNames") - List queryUserByNames(@RequestParam("userNames")String[] userNames); + List queryUserByNames(@RequestParam("userNames") String[] userNames); /** @@ -267,7 +267,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/getUserRoleSet") - Set getUserRoleSet(@RequestParam("username")String username); + Set getUserRoleSet(@RequestParam("username") String username); /** * 31获取用户的权限集合 @@ -308,7 +308,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryUserRoles") - Set queryUserRoles(@RequestParam("username")String username); + Set queryUserRoles(@RequestParam("username") String username); /** * 36查询用户权限信息 @@ -316,7 +316,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryUserAuths") - Set queryUserAuths(@RequestParam("username")String username); + Set queryUserAuths(@RequestParam("username") String username); /** * 37根据 id 查询数据库中存储的 DynamicDataSourceModel @@ -368,7 +368,7 @@ public interface ISysBaseAPI extends CommonAPI { * @return */ @GetMapping("/sys/api/queryPermissionDataRule") - List queryPermissionDataRule(@RequestParam("component") String component, @RequestParam("requestPath")String requestPath, @RequestParam("username") String username); + List queryPermissionDataRule(@RequestParam("component") String component, @RequestParam("requestPath") String requestPath, @RequestParam("username") String username); /** * 43查询用户信息 @@ -408,7 +408,7 @@ public interface ISysBaseAPI extends CommonAPI { */ @GetMapping("/sys/api/queryDepartsByOrgIds") List queryDepartsByOrgIds(String ids); - + /** * 40发送邮件消息 * @param email @@ -416,5 +416,5 @@ public interface ISysBaseAPI extends CommonAPI { * @param content */ @GetMapping("/sys/api/sendEmailMsg") - void sendEmailMsg(String email,String title,String content); + void sendEmailMsg(@RequestParam("email") String email, @RequestParam("title") String title, @RequestParam("content") String content); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/controller/SystemAPIController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/controller/SystemAPIController.java index 7664517e..f4d421ec 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/controller/SystemAPIController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/api/controller/SystemAPIController.java @@ -1,8 +1,8 @@ package org.jeecg.modules.api.controller; import com.alibaba.fastjson.JSONObject; -import org.jeecg.common.api.dto.message.*; import org.jeecg.common.api.dto.OnlineAuthDTO; +import org.jeecg.common.api.dto.message.*; import org.jeecg.common.system.api.ISysBaseAPI; import org.jeecg.common.system.vo.*; import org.jeecg.modules.system.service.ISysUserService; @@ -518,7 +518,7 @@ public class SystemAPIController { * @param content */ @GetMapping("/sendEmailMsg") - public void sendEmailMsg(String email,String title,String content){ + public void sendEmailMsg(@RequestParam("email")String email,@RequestParam("title")String title,@RequestParam("content")String content){ this.sysBaseAPI.sendEmailMsg(email,title,content); }; } -- GitLab