Browse Source

注释掉权限设置

master
牧羊人 4 years ago
parent
commit
2f1b4d9ba3
2 changed files with 13 additions and 13 deletions
  1. +7
    -7
      src/main/java/com/taauav/front/controller/UserAdminController.java
  2. +6
    -6
      src/main/java/com/taauav/front/controller/UserAuthRuleController.java

+ 7
- 7
src/main/java/com/taauav/front/controller/UserAdminController.java View File

@@ -40,7 +40,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/index")
@RequiresPermissions(controllerName + ":" + PermissionConstants.LIST_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.LIST_PERMISSION)
public Response index(@RequestBody(required = false) UserAdminQuery query) {
return userAdminService.getList(query);
}
@@ -52,7 +52,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/add")
@RequiresPermissions(controllerName + ":" + PermissionConstants.ADD_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.ADD_PERMISSION)
public Response add(@RequestBody(required = true) @Valid UserAdmin entity, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
String message = bindingResult.getFieldError().getDefaultMessage();
@@ -68,7 +68,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@GetMapping("/info")
@RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
public Response info(Integer id) {
return userAdminService.info(id);
}
@@ -81,7 +81,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/edit")
@RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
public Response edit(@RequestBody @Valid UserAdmin entity, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
String message = bindingResult.getFieldError().getDefaultMessage();
@@ -97,7 +97,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/drop")
@RequiresPermissions(controllerName + ":" + PermissionConstants.REMOVE_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.REMOVE_PERMISSION)
public Response drop(Integer id) {
return userAdminService.drop(id);
}
@@ -109,7 +109,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/setStatus")
@RequiresPermissions(controllerName + ":" + PermissionConstants.STATUS_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.STATUS_PERMISSION)
public Response setStatus(@RequestBody UserAdmin entity) {
return userAdminService.setStatus(entity);
}
@@ -121,7 +121,7 @@ public class UserAdminController extends FrontBaseController {
* @return
*/
@PostMapping("/resetPwd")
@RequiresPermissions(controllerName + ":" + PermissionConstants.PASSWORD_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.PASSWORD_PERMISSION)
public Response resetPwd(@RequestBody UserAdmin entity) {
return userAdminService.resetPwd(entity);
}

+ 6
- 6
src/main/java/com/taauav/front/controller/UserAuthRuleController.java View File

@@ -43,7 +43,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@GetMapping("/index")
@RequiresPermissions(controllerName + ":" + PermissionConstants.LIST_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.LIST_PERMISSION)
public Response index(@RequestBody(required = false) Map<String, String> request) {
return iSysAuthRuleService.getRulePageList(request);
}
@@ -54,7 +54,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@RequestMapping("/edit")
@RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
public Response edit(@RequestBody @Valid SysAuthRule authRule, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
String msg = bindingResult.getFieldError().getDefaultMessage();
@@ -70,7 +70,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@GetMapping("/getAuthInfo")
@RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.EDIT_PERMISSION)
public Response getAuthInfo(Integer id) {
Map<String, Object> map = new HashMap<>(12);
SysAuthRule info = iSysAuthRuleService.getInfoById(id);
@@ -96,7 +96,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@PostMapping("/add")
@RequiresPermissions(controllerName + ":" + PermissionConstants.ADD_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.ADD_PERMISSION)
public Response add(@RequestBody @Valid SysAuthRule authRule, BindingResult bindingResult) {
if (bindingResult.hasErrors()) {
String msg = bindingResult.getFieldError().getDefaultMessage();
@@ -111,7 +111,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@PostMapping("/del")
@RequiresPermissions(controllerName + ":" + PermissionConstants.REMOVE_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.REMOVE_PERMISSION)
public Response del(@RequestBody SysAuthRule authRule) {
return iSysAuthRuleService.delRule(authRule);
}
@@ -123,7 +123,7 @@ public class UserAuthRuleController extends FrontBaseController {
* @return
*/
@PostMapping("/editStatus")
@RequiresPermissions(controllerName + ":" + PermissionConstants.STATUS_PERMISSION)
// @RequiresPermissions(controllerName + ":" + PermissionConstants.STATUS_PERMISSION)
public Response editStatus(@RequestBody Map<String, String> map) {
return iSysAuthRuleService.editStatus(map);
}

Loading…
Cancel
Save