package com.moon.server.mapper.sys; import com.moon.server.entity.sys.ResEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository @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); }