package com.izouma.awesomeadmin.dao; import com.izouma.awesomeadmin.model.SysRole; import org.apache.ibatis.annotations.Param; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; /** * sys_role Dao接口 * Tue Apr 10 18:09:56 CST 2018 Suo Chen Cheng */ @Repository("com.zoumaframe.dao.SysRoleMapper") public interface SysRoleMapper { int deleteByPrimaryKey(Integer id); int insertSelective(SysRole record); SysRole selectByPrimaryKey(Integer id); List selectByPrimaryKeys(@Param("ids") String ids); int updateByPrimaryKeySelective(SysRole record); List queryAllSysRole(SysRole record); List querySysRolesByPage(Map parameter); int delete(String id); SysRole querySysRole(SysRole record); List getUserRoles(@Param("userId") Integer userId); int setUserRoles(@Param("userId") Integer userId, @Param("roles") List roles); int clearUserRoles(@Param("userId") Integer userId); int addUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId); int removeUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId); String getUserRoleId(Integer id); }