mirror of https://github.com/jeecgboot/jeecg-boot
20191227 取消系统功能的权限注解
parent
d399ec904a
commit
238b4898c7
|
@ -0,0 +1,3 @@
|
||||||
|
/target/
|
||||||
|
/.idea/
|
||||||
|
*.iml
|
|
@ -217,7 +217,6 @@ public class SysPermissionController {
|
||||||
* @param permission
|
* @param permission
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresRoles({ "admin" })
|
|
||||||
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
||||||
public Result<SysPermission> add(@RequestBody SysPermission permission) {
|
public Result<SysPermission> add(@RequestBody SysPermission permission) {
|
||||||
Result<SysPermission> result = new Result<SysPermission>();
|
Result<SysPermission> result = new Result<SysPermission>();
|
||||||
|
@ -237,7 +236,6 @@ public class SysPermissionController {
|
||||||
* @param permission
|
* @param permission
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresRoles({ "admin" })
|
|
||||||
@RequestMapping(value = "/edit", method = { RequestMethod.PUT, RequestMethod.POST })
|
@RequestMapping(value = "/edit", method = { RequestMethod.PUT, RequestMethod.POST })
|
||||||
public Result<SysPermission> edit(@RequestBody SysPermission permission) {
|
public Result<SysPermission> edit(@RequestBody SysPermission permission) {
|
||||||
Result<SysPermission> result = new Result<>();
|
Result<SysPermission> result = new Result<>();
|
||||||
|
@ -257,7 +255,6 @@ public class SysPermissionController {
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresRoles({ "admin" })
|
|
||||||
@RequestMapping(value = "/delete", method = RequestMethod.DELETE)
|
@RequestMapping(value = "/delete", method = RequestMethod.DELETE)
|
||||||
public Result<SysPermission> delete(@RequestParam(name = "id", required = true) String id) {
|
public Result<SysPermission> delete(@RequestParam(name = "id", required = true) String id) {
|
||||||
Result<SysPermission> result = new Result<>();
|
Result<SysPermission> result = new Result<>();
|
||||||
|
@ -277,7 +274,6 @@ public class SysPermissionController {
|
||||||
* @param ids
|
* @param ids
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresRoles({ "admin" })
|
|
||||||
@RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE)
|
@RequestMapping(value = "/deleteBatch", method = RequestMethod.DELETE)
|
||||||
public Result<SysPermission> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
public Result<SysPermission> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||||
Result<SysPermission> result = new Result<>();
|
Result<SysPermission> result = new Result<>();
|
||||||
|
@ -375,7 +371,6 @@ public class SysPermissionController {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/saveRolePermission", method = RequestMethod.POST)
|
@RequestMapping(value = "/saveRolePermission", method = RequestMethod.POST)
|
||||||
@RequiresRoles({ "admin" })
|
|
||||||
public Result<String> saveRolePermission(@RequestBody JSONObject json) {
|
public Result<String> saveRolePermission(@RequestBody JSONObject json) {
|
||||||
long start = System.currentTimeMillis();
|
long start = System.currentTimeMillis();
|
||||||
Result<String> result = new Result<>();
|
Result<String> result = new Result<>();
|
||||||
|
|
|
@ -112,7 +112,6 @@ public class SysUserController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
||||||
@RequiresPermissions("user:add")
|
|
||||||
public Result<SysUser> add(@RequestBody JSONObject jsonObject) {
|
public Result<SysUser> add(@RequestBody JSONObject jsonObject) {
|
||||||
Result<SysUser> result = new Result<SysUser>();
|
Result<SysUser> result = new Result<SysUser>();
|
||||||
String selectedRoles = jsonObject.getString("selectedroles");
|
String selectedRoles = jsonObject.getString("selectedroles");
|
||||||
|
@ -137,7 +136,6 @@ public class SysUserController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/edit", method = RequestMethod.PUT)
|
@RequestMapping(value = "/edit", method = RequestMethod.PUT)
|
||||||
@RequiresPermissions("user:edit")
|
|
||||||
public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
|
public Result<SysUser> edit(@RequestBody JSONObject jsonObject) {
|
||||||
Result<SysUser> result = new Result<SysUser>();
|
Result<SysUser> result = new Result<SysUser>();
|
||||||
try {
|
try {
|
||||||
|
@ -399,7 +397,6 @@ public class SysUserController {
|
||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequiresPermissions("user:import")
|
|
||||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||||
|
|
Loading…
Reference in New Issue