package jnpf.authority.mapper;

import jnpf.base.entity.ModuleButtonEntity;
import jnpf.model.authority.vo.role.FtbPermissionPositionMenuVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface FtbPermissionMigrateMapper {

    List<String> personnelMenuAuthorities(@Param("userIds") List<String> userIds);

    List<FtbPermissionPositionMenuVO.FtbPermissionPositionMenuInnerVO> personnelMenu(@Param("type") Integer type);

    List<Map<String, Object>> getRoleList();

    @Select("SELECT F_UserId FROM base_userrelation WHERE F_ObjectType = 'Role' AND F_ObjectId =#{roleId}")
    List<String> getUserListWithRoleId(@Param("roleId") String roleId);

    List<String> characterCheckedMenusAndButtons(@Param("roleId") String roleId);

    List<ModuleButtonEntity> inquiryButton(@Param("moduleId") String moduleId);
}
