package com.moon.server.mapper.data; import com.moon.server.entity.data.DownloadEntity; import org.apache.ibatis.annotations.Mapper; import org.springframework.stereotype.Repository; import java.util.List; @Mapper @Repository @SuppressWarnings("ALL") public interface DownloadMapper { public Integer selectCount(String name); public List selectByPage(String name, Integer limit, Integer offset); public Integer selectCountForUser(Integer createUser, String types, String name); public List selectByPageForUser(Integer createUser, String types, String name, Integer limit, Integer offset); public List selectAll(); public DownloadEntity selectById(int id); public DownloadEntity selectByGuid(String guid); public Integer insert(DownloadEntity entity); public Integer inserts(List list); public Integer delete(int id); public Integer deletes(List ids); public Integer update(DownloadEntity entity); public Integer updates(List list); }