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<DownloadEntity> selectByPage(String name, Integer limit, Integer offset);
|
|
public Integer selectCountForUser(Integer createUser, String types, String name);
|
|
public List<DownloadEntity> selectByPageForUser(Integer createUser, String types, String name, Integer limit, Integer offset);
|
|
public List<DownloadEntity> selectAll();
|
|
public DownloadEntity selectById(int id);
|
|
public DownloadEntity selectByGuid(String guid);
|
|
public Integer insert(DownloadEntity entity);
|
|
public Integer inserts(List<DownloadEntity> list);
|
|
public Integer delete(int id);
|
|
public Integer deletes(List<Integer> ids);
|
|
public Integer update(DownloadEntity entity);
|
|
public Integer updates(List<DownloadEntity> list);
|
}
|