package com.goafanti.permission.service;



import com.goafanti.common.model.Role;
import com.goafanti.common.model.RoleResources;
import com.goafanti.core.mybatis.page.Pagination;
import com.goafanti.permission.bo.RoleBo;
import com.goafanti.permission.bo.RolePermissionBo;

import java.util.List;

public interface NewRoleService {
	Pagination<RoleBo>findRoles(RoleBo role, Integer pageNo,
			Integer pageSize);

	int insert(List<Role> records);


	int deleteByPrimaryKeys(List<String> records);

	int bindPermission(String roleId, String permissionId);


	int bindUser(String roleId, String userId);


	int insert(Role record, List<String> permissions);

	List<RolePermissionBo> selectRolePList(String id);

	int addResources(String rid, String resources);

	int updateDimission(String aid, String transferId);

	List<RoleResources> ResourcesDetail(String rid);
}
