package com.terra.system.mapper.sys; import com.terra.system.entity.sys.ResEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.web.bind.annotation.ResponseBody; import java.util.List; /** * 资源表 * @author sws * @date 2022-09-28 */ @Mapper @ResponseBody @SuppressWarnings("ALL") public interface ResMapper { public Integer selectCount(String name, Integer status, Integer category, Integer type, Integer data); public List selectByPage(String name, Integer status, Integer category, Integer type, Integer data, Integer limit, Integer offset); public List selectAll(); public ResEntity selectById(int id); public ResEntity selectByPubid(Integer pubid); public Integer selectCountForRole(Integer roleid); public List selectByPageForRole(Integer roleid, Integer limit, Integer offset); public Integer insert(ResEntity entity); public Integer inserts(List list); public Integer delete(int id); public Integer deletes(String ids); public Integer update(ResEntity entity); public Integer updates(List list); }