package com.ots.project.system.menu.service;
import com.ots.common.constant.UserConstants;
import com.ots.common.utils.MessageUtils;
import com.ots.common.utils.StringUtils;
import com.ots.common.utils.TreeUtils;
import com.ots.common.utils.security.ShiroUtils;
import com.ots.framework.web.domain.Ztree;
import com.ots.project.system.menu.domain.Menu;
import com.ots.project.system.menu.mapper.MenuMapper;
import com.ots.project.system.role.domain.Role;
import com.ots.project.system.role.mapper.RoleMenuMapper;
import com.ots.project.system.user.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.MessageFormat;
import java.util.*;
@Service
public class MenuServiceImpl implements IMenuService {
public static final String PREMISSION_STRING = "perms[\"{0}\"]";
@Autowired
private MenuMapper menuMapper;
@Autowired
private RoleMenuMapper roleMenuMapper;
@Override
public List