修正RequiresPermissions
This commit is contained in:
parent
df069002ce
commit
8e27206c97
|
@ -72,7 +72,7 @@ public class UpmsOrganizationController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "新增组织")
|
||||
@RequiresPermissions("cms:organization:create")
|
||||
@RequiresPermissions("upms:organization:create")
|
||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||
public String add(UpmsOrganization upmsOrganization, ModelMap modelMap) {
|
||||
long time = System.currentTimeMillis();
|
||||
|
@ -83,7 +83,7 @@ public class UpmsOrganizationController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "删除组织")
|
||||
@RequiresPermissions("cms:organization:delete")
|
||||
@RequiresPermissions("upms:organization:delete")
|
||||
@RequestMapping(value = "/delete/{ids}",method = RequestMethod.GET)
|
||||
public String delete(@PathVariable("ids") String ids, ModelMap modelMap) {
|
||||
int count = upmsOrganizationService.deleteByPrimaryKeys(ids);
|
||||
|
@ -92,7 +92,7 @@ public class UpmsOrganizationController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改组织")
|
||||
@RequiresPermissions("cms:organization:update")
|
||||
@RequiresPermissions("upms:organization:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
|
||||
public String update(@PathVariable("id") int id, ModelMap modelMap) {
|
||||
UpmsOrganization organization = upmsOrganizationService.selectByPrimaryKey(id);
|
||||
|
@ -101,7 +101,7 @@ public class UpmsOrganizationController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改组织")
|
||||
@RequiresPermissions("cms:organization:update")
|
||||
@RequiresPermissions("upms:organization:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
||||
public String update(@PathVariable("id") int id, UpmsOrganization upmsOrganization, ModelMap modelMap) {
|
||||
int count = upmsOrganizationService.updateByPrimaryKeySelective(upmsOrganization);
|
||||
|
|
|
@ -90,7 +90,7 @@ public class UpmsPermissionController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "新增权限")
|
||||
@RequiresPermissions("cms:permission:create")
|
||||
@RequiresPermissions("upms:permission:create")
|
||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||
public String add(UpmsPermission upmsPermission, ModelMap modelMap) {
|
||||
long time = System.currentTimeMillis();
|
||||
|
@ -102,7 +102,7 @@ public class UpmsPermissionController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "删除权限")
|
||||
@RequiresPermissions("cms:permission:delete")
|
||||
@RequiresPermissions("upms:permission:delete")
|
||||
@RequestMapping(value = "/delete/{ids}",method = RequestMethod.GET)
|
||||
public String delete(@PathVariable("ids") String ids, ModelMap modelMap) {
|
||||
int count = upmsPermissionService.deleteByPrimaryKeys(ids);
|
||||
|
@ -111,7 +111,7 @@ public class UpmsPermissionController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改权限")
|
||||
@RequiresPermissions("cms:permission:update")
|
||||
@RequiresPermissions("upms:permission:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
|
||||
public String update(@PathVariable("id") int id, ModelMap modelMap) {
|
||||
UpmsPermission permission = upmsPermissionService.selectByPrimaryKey(id);
|
||||
|
@ -120,7 +120,7 @@ public class UpmsPermissionController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改权限")
|
||||
@RequiresPermissions("cms:permission:update")
|
||||
@RequiresPermissions("upms:permission:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
||||
public String update(@PathVariable("id") int id, UpmsPermission upmsPermission, ModelMap modelMap) {
|
||||
int count = upmsPermissionService.updateByPrimaryKeySelective(upmsPermission);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class UpmsRoleController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "新增角色")
|
||||
@RequiresPermissions("cms:role:create")
|
||||
@RequiresPermissions("upms:role:create")
|
||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||
public String add(UpmsRole upmsRole, ModelMap modelMap) {
|
||||
long time = System.currentTimeMillis();
|
||||
|
@ -83,7 +83,7 @@ public class UpmsRoleController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "删除角色")
|
||||
@RequiresPermissions("cms:role:delete")
|
||||
@RequiresPermissions("upms:role:delete")
|
||||
@RequestMapping(value = "/delete/{ids}",method = RequestMethod.GET)
|
||||
public String delete(@PathVariable("ids") String ids, ModelMap modelMap) {
|
||||
int count = upmsRoleService.deleteByPrimaryKeys(ids);
|
||||
|
@ -92,7 +92,7 @@ public class UpmsRoleController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改角色")
|
||||
@RequiresPermissions("cms:role:update")
|
||||
@RequiresPermissions("upms:role:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
|
||||
public String update(@PathVariable("id") int id, ModelMap modelMap) {
|
||||
UpmsRole role = upmsRoleService.selectByPrimaryKey(id);
|
||||
|
@ -101,7 +101,7 @@ public class UpmsRoleController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改角色")
|
||||
@RequiresPermissions("cms:role:update")
|
||||
@RequiresPermissions("upms:role:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
||||
public String update(@PathVariable("id") int id, UpmsRole upmsRole, ModelMap modelMap) {
|
||||
int count = upmsRoleService.updateByPrimaryKeySelective(upmsRole);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class UpmsSystemController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "新增系统")
|
||||
@RequiresPermissions("cms:system:create")
|
||||
@RequiresPermissions("upms:system:create")
|
||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||
public String add(UpmsSystem upmsSystem, ModelMap modelMap) {
|
||||
long time = System.currentTimeMillis();
|
||||
|
@ -83,7 +83,7 @@ public class UpmsSystemController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "删除系统")
|
||||
@RequiresPermissions("cms:system:delete")
|
||||
@RequiresPermissions("upms:system:delete")
|
||||
@RequestMapping(value = "/delete/{ids}",method = RequestMethod.GET)
|
||||
public String delete(@PathVariable("ids") String ids, ModelMap modelMap) {
|
||||
int count = upmsSystemService.deleteByPrimaryKeys(ids);
|
||||
|
@ -92,7 +92,7 @@ public class UpmsSystemController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改系统")
|
||||
@RequiresPermissions("cms:system:update")
|
||||
@RequiresPermissions("upms:system:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
|
||||
public String update(@PathVariable("id") int id, ModelMap modelMap) {
|
||||
UpmsSystem system = upmsSystemService.selectByPrimaryKey(id);
|
||||
|
@ -101,7 +101,7 @@ public class UpmsSystemController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改系统")
|
||||
@RequiresPermissions("cms:system:update")
|
||||
@RequiresPermissions("upms:system:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
||||
public String update(@PathVariable("id") int id, UpmsSystem upmsSystem, ModelMap modelMap) {
|
||||
int count = upmsSystemService.updateByPrimaryKeySelective(upmsSystem);
|
||||
|
|
|
@ -71,7 +71,7 @@ public class UpmsUserController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "新增用户")
|
||||
@RequiresPermissions("cms:user:create")
|
||||
@RequiresPermissions("upms:user:create")
|
||||
@RequestMapping(value = "/create", method = RequestMethod.POST)
|
||||
public String add(UpmsUser upmsUser, ModelMap modelMap) {
|
||||
long time = System.currentTimeMillis();
|
||||
|
@ -82,7 +82,7 @@ public class UpmsUserController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "删除用户")
|
||||
@RequiresPermissions("cms:user:delete")
|
||||
@RequiresPermissions("upms:user:delete")
|
||||
@RequestMapping(value = "/delete/{ids}",method = RequestMethod.GET)
|
||||
public String delete(@PathVariable("ids") String ids, ModelMap modelMap) {
|
||||
int count = upmsUserService.deleteByPrimaryKeys(ids);
|
||||
|
@ -91,7 +91,7 @@ public class UpmsUserController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改用户")
|
||||
@RequiresPermissions("cms:user:update")
|
||||
@RequiresPermissions("upms:user:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.GET)
|
||||
public String update(@PathVariable("id") int id, ModelMap modelMap) {
|
||||
UpmsUser user = upmsUserService.selectByPrimaryKey(id);
|
||||
|
@ -100,7 +100,7 @@ public class UpmsUserController extends BaseController {
|
|||
}
|
||||
|
||||
@ApiOperation(value = "修改用户")
|
||||
@RequiresPermissions("cms:user:update")
|
||||
@RequiresPermissions("upms:user:update")
|
||||
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
|
||||
public String update(@PathVariable("id") int id, UpmsUser upmsUser, ModelMap modelMap) {
|
||||
int count = upmsUserService.updateByPrimaryKeySelective(upmsUser);
|
||||
|
|
Loading…
Reference in New Issue