20191227 取消系统功能的权限注解

pull/908/head^2
zhangdaihao 2019-12-27 15:00:22 +08:00
parent d399ec904a
commit 238b4898c7
3 changed files with 3 additions and 8 deletions

3
jeecg-boot/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/target/
/.idea/
*.iml

View File

@ -217,7 +217,6 @@ public class SysPermissionController {
* @param permission
* @return
*/
@RequiresRoles({ "admin" })
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysPermission> add(@RequestBody SysPermission permission) {
Result<SysPermission> result = new Result<SysPermission>();
@ -237,7 +236,6 @@ public class SysPermissionController {
* @param permission
* @return
*/
@RequiresRoles({ "admin" })
@RequestMapping(value = "/edit", method = { RequestMethod.PUT, RequestMethod.POST })
public Result<SysPermission> edit(@RequestBody SysPermission permission) {
Result<SysPermission> result = new Result<>();
@ -257,7 +255,6 @@ public class SysPermissionController {
* @param id
* @return
*/
@RequiresRoles({ "admin" })
@RequestMapping(value = "/delete", method = RequestMethod.DELETE)
public Result<SysPermission> delete(@RequestParam(name = "id", required = true) String id) {
Result<SysPermission> result = new Result<>();
@ -277,7 +274,6 @@ public class SysPermissionController {
* @param ids
* @return
*/
@RequiresRoles({ "admin" })
@RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE)
public Result<SysPermission> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
Result<SysPermission> result = new Result<>();
@ -375,7 +371,6 @@ public class SysPermissionController {
* @return
*/
@RequestMapping(value = "/saveRolePermission", method = RequestMethod.POST)
@RequiresRoles({ "admin" })
public Result<String> saveRolePermission(@RequestBody JSONObject json) {
long start = System.currentTimeMillis();
Result<String> result = new Result<>();

View File

@ -112,7 +112,6 @@ public class SysUserController {
}
@RequestMapping(value = "/add", method = RequestMethod.POST)
@RequiresPermissions("user:add")
public Result<SysUser> add(@RequestBody JSONObject jsonObject) {
Result<SysUser> result = new Result<SysUser>();
String selectedRoles = jsonObject.getString("selectedroles");
@ -137,7 +136,6 @@ public class SysUserController {
}
@RequestMapping(value = "/edit", method = RequestMethod.PUT)
@RequiresPermissions("user:edit")
public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
Result<SysUser> result = new Result<SysUser>();
try {
@ -399,7 +397,6 @@ public class SysUserController {
* @param response
* @return
*/
@RequiresPermissions("user:import")
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;