package com.cms.dao.admin;

import com.cms.entities.admin.RoleInfo;
import com.cms.entities.admin.SourceDutyInfo;
import org.springframework.stereotype.Repository;

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

/**
 * Created by Evan on 2016/3/30.
 */
@Repository
public interface RoleMapper {
    List<RoleInfo> roleQueryPage(Map map);

    void insertRole(RoleInfo roleInfo);

    List<RoleInfo> getRoleById(Integer id);

    void updateRole(RoleInfo roleInfo);

    void deleteRole(Integer[] ids);

    List<RoleInfo> findAll();

    public List<RoleInfo> getAccountRole(Integer accountId);

    public void deleteSourceDuty(Integer roleId);

    public void insertSourceDuty(List<SourceDutyInfo> sourceDutyList);
}
