package com.terra.system.mapper.sys;
|
|
import com.terra.system.entity.sys.RoleResEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* 角色-资源
|
* @author WWW
|
*/
|
@Mapper
|
@Repository
|
public interface RoleResMapper {
|
public List<RoleResEntity> selectResByRole(Integer roleid);
|
|
public Integer selectCount(Integer roleid);
|
|
public List<RoleResEntity> selectByPage(Integer roleid, Integer limit, Integer offset);
|
|
public List<RoleResEntity> selectAll();
|
|
public RoleResEntity selectById(int id);
|
|
public Integer insert(RoleResEntity entity);
|
|
public Integer inserts(List<RoleResEntity> list);
|
|
public Integer delete(int id);
|
|
public Integer deletes(List<Integer> ids);
|
|
public Integer update(RoleResEntity entity);
|
|
public Integer updates(List<RoleResEntity> list);
|
}
|