🎨 Improving structure / format of the code. 格式化代码
This commit is contained in:
1 parent
ab4dfb92ce
commit
deda3a3213
4 files changed
+4
-5
No files matched your search
+1
-2
@@ -1,9 +1,8 @@
|
||||
package com.pig4cloud.pigx.common.websocket.custom;
|
||||
|
||||
import com.pig4cloud.pigx.common.security.service.PigxUser;
|
||||
import com.pig4cloud.pigx.common.websocket.holder.SessionKeyGenerator;
|
||||
import com.pig4cloud.pigx.common.websocket.session.SessionKeyGenerator;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.cloud.client.ServiceInstance;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.socket.WebSocketSession;
|
||||
|
||||
|
||||
+1
-1
@@ -38,6 +38,6 @@ public interface SysRoleMenuService extends IService<SysRoleMenu> {
|
||||
* @param menuIds 菜单ID拼成的字符串,每个id之间根据逗号分隔
|
||||
* @return
|
||||
*/
|
||||
Boolean saveRoleMenus( Long roleId, String menuIds);
|
||||
Boolean saveRoleMenus(Long roleId, String menuIds);
|
||||
|
||||
}
|
||||
+1
-1
@@ -59,7 +59,7 @@ public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRo
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@CacheEvict(value = CacheConstants.MENU_DETAILS, key = "#roleId")
|
||||
public Boolean saveRoleMenus( Long roleId, String menuIds) {
|
||||
public Boolean saveRoleMenus(Long roleId, String menuIds) {
|
||||
this.remove(Wrappers.<SysRoleMenu>query().lambda().eq(SysRoleMenu::getRoleId, roleId));
|
||||
|
||||
if (StrUtil.isBlank(menuIds)) {
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
||||
*/
|
||||
@Override
|
||||
public Boolean updateRoleMenus(RoleVO roleVo) {
|
||||
return roleMenuService.saveRoleMenus( roleVo.getRoleId(), roleVo.getMenuIds());
|
||||
return roleMenuService.saveRoleMenus(roleVo.getRoleId(), roleVo.getMenuIds());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user