mirror of https://gitee.com/stylefeng/roses
【system】菜单按钮模块更新注释
parent
e89db183da
commit
e8d052f176
|
@ -5,6 +5,8 @@ import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
|
|||
import cn.stylefeng.roses.kernel.system.constants.SystemConstants;
|
||||
|
||||
/**
|
||||
* 菜单按钮异常枚举
|
||||
*
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:32
|
||||
*/
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.Set;
|
|||
/**
|
||||
* 系统菜单按钮请求参数
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:19
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 系统菜单按钮响应实体
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:19
|
||||
*/
|
||||
@Data
|
||||
|
|
|
@ -18,8 +18,8 @@ import javax.annotation.Resource;
|
|||
/**
|
||||
* 系统菜单按钮控制器
|
||||
*
|
||||
* @author fengshuonan
|
||||
* @date 2020/3/20 18:54
|
||||
* @author luojie
|
||||
* @date 2021/1/9 16:08
|
||||
*/
|
||||
@RestController
|
||||
@ApiResource(name = "菜单按钮管理")
|
||||
|
@ -32,7 +32,7 @@ public class SysMenuButtonController {
|
|||
* 添加系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮请求参数
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:28
|
||||
*/
|
||||
@PostResource(name = "添加系统菜单按钮", path = "/sysMenuButton/add")
|
||||
|
@ -45,7 +45,7 @@ public class SysMenuButtonController {
|
|||
* 获取菜单按钮详情
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:53
|
||||
*/
|
||||
@GetResource(name = "获取菜单按钮详情", path = "/sysMenuButton/detail")
|
||||
|
@ -58,7 +58,7 @@ public class SysMenuButtonController {
|
|||
* 编辑系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮请求参数
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:00
|
||||
*/
|
||||
@PostResource(name = "编辑系统菜单按钮", path = "/sysMenuButton/edit")
|
||||
|
@ -71,7 +71,7 @@ public class SysMenuButtonController {
|
|||
* 删除单个系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:14
|
||||
*/
|
||||
@PostResource(name = "删除单个系统菜单按钮", path = "/sysMenuButton/delete")
|
||||
|
@ -84,7 +84,7 @@ public class SysMenuButtonController {
|
|||
* 批量删除多个系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id集合
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:27
|
||||
*/
|
||||
@PostResource(name = "批量删除多个系统菜单按钮", path = "/sysMenuButton/batchDelete")
|
||||
|
@ -97,7 +97,7 @@ public class SysMenuButtonController {
|
|||
* 获取菜单按钮列表
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:33
|
||||
*/
|
||||
@GetResource(name = "获取菜单按钮列表", path = "/sysMenuButton/pageList")
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.io.Serializable;
|
|||
/**
|
||||
* 菜单下的按钮(SysMenuButton)表实体类
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @since 2021-01-09 10:59:27
|
||||
*/
|
||||
@Data
|
||||
|
|
|
@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||
/**
|
||||
* 系统菜单按钮mapper接口
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:02
|
||||
*/
|
||||
public interface SysMenuButtonMapper extends BaseMapper<SysMenuButton> {
|
||||
|
|
|
@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
|||
/**
|
||||
* 系统菜单按钮service接口
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:04
|
||||
*/
|
||||
public interface SysMenuButtonService extends IService<SysMenuButton> {
|
||||
|
@ -18,7 +18,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
* 添加系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮请求参数
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:28
|
||||
*/
|
||||
void add(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -28,7 +28,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id
|
||||
* @return 菜单按钮详情
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:53
|
||||
*/
|
||||
SysMenuButtonResponse detail(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -37,7 +37,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
* 编辑系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮请求参数
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:00
|
||||
*/
|
||||
void edit(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -46,7 +46,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
* 删除单个系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:14
|
||||
*/
|
||||
void delete(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -55,7 +55,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
* 批量删除多个系统菜单按钮
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮id集合
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:27
|
||||
*/
|
||||
void batchDelete(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -65,7 +65,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
*
|
||||
* @param sysMenuButtonRequest 菜单id
|
||||
* @return 菜单按钮列表
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:53
|
||||
*/
|
||||
PageResult<SysMenuButtonResponse> pageList(SysMenuButtonRequest sysMenuButtonRequest);
|
||||
|
@ -74,7 +74,7 @@ public interface SysMenuButtonService extends IService<SysMenuButton> {
|
|||
* 根据菜单id删除该菜单下的所有按钮
|
||||
*
|
||||
* @param menuId 菜单id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 14:45
|
||||
*/
|
||||
void deleteMenuButtonByMenuId(Long menuId);
|
||||
|
|
|
@ -33,7 +33,7 @@ import java.util.stream.Collectors;
|
|||
/**
|
||||
* 系统菜单按钮service接口实现类
|
||||
*
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:05
|
||||
*/
|
||||
@Service
|
||||
|
@ -147,7 +147,7 @@ public class SysMenuButtonServiceImpl extends ServiceImpl<SysMenuButtonMapper, S
|
|||
*
|
||||
* @param sysMenuButtonRequest 菜单id
|
||||
* @return 菜单按钮列表
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:53
|
||||
*/
|
||||
@Override
|
||||
|
@ -181,7 +181,7 @@ public class SysMenuButtonServiceImpl extends ServiceImpl<SysMenuButtonMapper, S
|
|||
* 根据菜单id删除该菜单下的所有按钮
|
||||
*
|
||||
* @param menuId 菜单id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 14:45
|
||||
*/
|
||||
@Override
|
||||
|
@ -208,7 +208,7 @@ public class SysMenuButtonServiceImpl extends ServiceImpl<SysMenuButtonMapper, S
|
|||
* 查询菜单是否存在
|
||||
*
|
||||
* @param menuId 菜单id
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 12:10
|
||||
*/
|
||||
public void findMenuExist(Long menuId) {
|
||||
|
@ -225,7 +225,7 @@ public class SysMenuButtonServiceImpl extends ServiceImpl<SysMenuButtonMapper, S
|
|||
* 查询菜单按钮code是否存在
|
||||
*
|
||||
* @param sysMenuButtonRequest 菜单按钮请求参数
|
||||
* @author q18idc.com QQ993143799
|
||||
* @author luojie
|
||||
* @date 2021/1/9 11:38
|
||||
*/
|
||||
public void findMenuButtonCodeExist(SysMenuButtonRequest sysMenuButtonRequest) {
|
||||
|
|
Loading…
Reference in New Issue