月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2024-11-13 eb40365c9cffb2269fd3cbd31b050c33455bc84a
src/main/java/com/moon/server/mapper/sys/BlacklistMapper.java
@@ -6,100 +6,29 @@
import java.util.List;
/**
 * 黑名单
 * @author WWW
 */
@Mapper
@Repository
@SuppressWarnings("ALL")
public interface BlacklistMapper {
    /**
     * 查询记录数
     *
     * @param ip   IP地址
     * @param type 类别
     * @return 记录数
     */
    public Integer selectCount(String ip, Integer type);
    /**
     * 分页查询
     *
     * @param ip     IP地址
     * @param type   类别
     * @param limit  记录数
     * @param offset 偏移量
     * @return 列表
     */
    public List<BlacklistEntity> selectByPage(String ip, Integer type, Integer limit, Integer offset);
    /**
     * 查询所有
     *
     * @return
     */
    public List<BlacklistEntity> selectAll();
    /**
     * 根据ID查询
     *
     * @param id
     * @return
     */
    public BlacklistEntity selectById(int id);
    /**
     * 查询IP列表
     * @param type 类别
     * @return
     */
    public List<String> selectIpList(Integer type);
    /**
     * 插入一条
     *
     * @param entity
     * @return
     */
    public Integer insert(BlacklistEntity entity);
    /**
     * 插入多条
     *
     * @param list
     * @return
     */
    public Integer inserts(List<BlacklistEntity> list);
    /**
     * 删除一条
     *
     * @param id
     * @return
     */
    public Integer delete(int id);
    /**
     * 删除多条
     *
     * @param ids
     * @return
     */
    public Integer deletes(List<Integer> ids);
    /**
     * 更新一条
     *
     * @param entity
     * @return
     */
    public Integer update(BlacklistEntity entity);
    /**
     * 更新多条
     *
     * @param list
     * @return
     */
    public Integer updates(List<BlacklistEntity> list);
}