mirror of https://gitee.com/stylefeng/roses
【7.6.0】【sys】【role】删除没用的类
parent
0573797792
commit
f0f738bd10
|
@ -1,101 +0,0 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.role.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.entity.SysRoleDataScope;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.SysRoleDataScopeRequest;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.service.SysRoleDataScopeService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色数据范围控制器
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@RestController
|
||||
@ApiResource(name = "角色数据范围")
|
||||
public class SysRoleDataScopeController {
|
||||
|
||||
@Resource
|
||||
private SysRoleDataScopeService sysRoleDataScopeService;
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "添加", path = "/sysRoleDataScope/add")
|
||||
public ResponseData<SysRoleDataScope> add(@RequestBody @Validated(SysRoleDataScopeRequest.add.class) SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
sysRoleDataScopeService.add(sysRoleDataScopeRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "删除", path = "/sysRoleDataScope/delete")
|
||||
public ResponseData<?> delete(@RequestBody @Validated(SysRoleDataScopeRequest.delete.class) SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
sysRoleDataScopeService.del(sysRoleDataScopeRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "编辑", path = "/sysRoleDataScope/edit")
|
||||
public ResponseData<?> edit(@RequestBody @Validated(SysRoleDataScopeRequest.edit.class) SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
sysRoleDataScopeService.edit(sysRoleDataScopeRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "查看详情", path = "/sysRoleDataScope/detail")
|
||||
public ResponseData<SysRoleDataScope> detail(@Validated(SysRoleDataScopeRequest.detail.class) SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
return new SuccessResponseData<>(sysRoleDataScopeService.detail(sysRoleDataScopeRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "获取列表", path = "/sysRoleDataScope/list")
|
||||
public ResponseData<List<SysRoleDataScope>> list(SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
return new SuccessResponseData<>(sysRoleDataScopeService.findList(sysRoleDataScopeRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表(带分页)
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "分页查询", path = "/sysRoleDataScope/page")
|
||||
public ResponseData<PageResult<SysRoleDataScope>> page(SysRoleDataScopeRequest sysRoleDataScopeRequest) {
|
||||
return new SuccessResponseData<>(sysRoleDataScopeService.findPage(sysRoleDataScopeRequest));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.role.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.entity.SysRoleMenu;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.SysRoleMenuRequest;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.service.SysRoleMenuService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色菜单关联控制器
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@RestController
|
||||
@ApiResource(name = "角色菜单关联")
|
||||
public class SysRoleMenuController {
|
||||
|
||||
@Resource
|
||||
private SysRoleMenuService sysRoleMenuService;
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "添加", path = "/sysRoleMenu/add")
|
||||
public ResponseData<SysRoleMenu> add(@RequestBody @Validated(SysRoleMenuRequest.add.class) SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
sysRoleMenuService.add(sysRoleMenuRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "删除", path = "/sysRoleMenu/delete")
|
||||
public ResponseData<?> delete(@RequestBody @Validated(SysRoleMenuRequest.delete.class) SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
sysRoleMenuService.del(sysRoleMenuRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "编辑", path = "/sysRoleMenu/edit")
|
||||
public ResponseData<?> edit(@RequestBody @Validated(SysRoleMenuRequest.edit.class) SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
sysRoleMenuService.edit(sysRoleMenuRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "查看详情", path = "/sysRoleMenu/detail")
|
||||
public ResponseData<SysRoleMenu> detail(@Validated(SysRoleMenuRequest.detail.class) SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuService.detail(sysRoleMenuRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "获取列表", path = "/sysRoleMenu/list")
|
||||
public ResponseData<List<SysRoleMenu>> list(SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuService.findList(sysRoleMenuRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表(带分页)
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "分页查询", path = "/sysRoleMenu/page")
|
||||
public ResponseData<PageResult<SysRoleMenu>> page(SysRoleMenuRequest sysRoleMenuRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuService.findPage(sysRoleMenuRequest));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.role.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.entity.SysRoleMenuOptions;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.SysRoleMenuOptionsRequest;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.service.SysRoleMenuOptionsService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色和菜单下的功能关联控制器
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@RestController
|
||||
@ApiResource(name = "角色和菜单下的功能关联")
|
||||
public class SysRoleMenuOptionsController {
|
||||
|
||||
@Resource
|
||||
private SysRoleMenuOptionsService sysRoleMenuOptionsService;
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "添加", path = "/sysRoleMenuOptions/add")
|
||||
public ResponseData<SysRoleMenuOptions> add(@RequestBody @Validated(SysRoleMenuOptionsRequest.add.class) SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
sysRoleMenuOptionsService.add(sysRoleMenuOptionsRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "删除", path = "/sysRoleMenuOptions/delete")
|
||||
public ResponseData<?> delete(@RequestBody @Validated(SysRoleMenuOptionsRequest.delete.class) SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
sysRoleMenuOptionsService.del(sysRoleMenuOptionsRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "编辑", path = "/sysRoleMenuOptions/edit")
|
||||
public ResponseData<?> edit(@RequestBody @Validated(SysRoleMenuOptionsRequest.edit.class) SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
sysRoleMenuOptionsService.edit(sysRoleMenuOptionsRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "查看详情", path = "/sysRoleMenuOptions/detail")
|
||||
public ResponseData<SysRoleMenuOptions> detail(@Validated(SysRoleMenuOptionsRequest.detail.class) SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuOptionsService.detail(sysRoleMenuOptionsRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "获取列表", path = "/sysRoleMenuOptions/list")
|
||||
public ResponseData<List<SysRoleMenuOptions>> list(SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuOptionsService.findList(sysRoleMenuOptionsRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表(带分页)
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "分页查询", path = "/sysRoleMenuOptions/page")
|
||||
public ResponseData<PageResult<SysRoleMenuOptions>> page(SysRoleMenuOptionsRequest sysRoleMenuOptionsRequest) {
|
||||
return new SuccessResponseData<>(sysRoleMenuOptionsService.findPage(sysRoleMenuOptionsRequest));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,101 +0,0 @@
|
|||
package cn.stylefeng.roses.kernel.sys.modular.role.controller;
|
||||
|
||||
import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
|
||||
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.ApiResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.GetResource;
|
||||
import cn.stylefeng.roses.kernel.scanner.api.annotation.PostResource;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.entity.SysRoleResource;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.pojo.request.SysRoleResourceRequest;
|
||||
import cn.stylefeng.roses.kernel.sys.modular.role.service.SysRoleResourceService;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 角色资源关联控制器
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@RestController
|
||||
@ApiResource(name = "角色资源关联")
|
||||
public class SysRoleResourceController {
|
||||
|
||||
@Resource
|
||||
private SysRoleResourceService sysRoleResourceService;
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "添加", path = "/sysRoleResource/add")
|
||||
public ResponseData<SysRoleResource> add(@RequestBody @Validated(SysRoleResourceRequest.add.class) SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
sysRoleResourceService.add(sysRoleResourceRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "删除", path = "/sysRoleResource/delete")
|
||||
public ResponseData<?> delete(@RequestBody @Validated(SysRoleResourceRequest.delete.class) SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
sysRoleResourceService.del(sysRoleResourceRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@PostResource(name = "编辑", path = "/sysRoleResource/edit")
|
||||
public ResponseData<?> edit(@RequestBody @Validated(SysRoleResourceRequest.edit.class) SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
sysRoleResourceService.edit(sysRoleResourceRequest);
|
||||
return new SuccessResponseData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查看详情
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "查看详情", path = "/sysRoleResource/detail")
|
||||
public ResponseData<SysRoleResource> detail(@Validated(SysRoleResourceRequest.detail.class) SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
return new SuccessResponseData<>(sysRoleResourceService.detail(sysRoleResourceRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "获取列表", path = "/sysRoleResource/list")
|
||||
public ResponseData<List<SysRoleResource>> list(SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
return new SuccessResponseData<>(sysRoleResourceService.findList(sysRoleResourceRequest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取列表(带分页)
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2023/06/10 21:29
|
||||
*/
|
||||
@GetResource(name = "分页查询", path = "/sysRoleResource/page")
|
||||
public ResponseData<PageResult<SysRoleResource>> page(SysRoleResourceRequest sysRoleResourceRequest) {
|
||||
return new SuccessResponseData<>(sysRoleResourceService.findPage(sysRoleResourceRequest));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue