移植原始版本

This commit is contained in:
yutou
2021-04-07 14:52:03 +08:00
parent 70798c5e94
commit 5d5a4eef97
59 changed files with 9390 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package com.yutou.nas.mybatis.dao;
import com.yutou.nas.mybatis.model.BangumiItem;
import com.yutou.nas.mybatis.model.BangumiItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface BangumiItemDao {
long countByExample(BangumiItemExample example);
int deleteByExample(BangumiItemExample example);
int deleteByPrimaryKey(Integer id);
int insert(BangumiItem record);
int insertSelective(BangumiItem record);
List<BangumiItem> selectByExample(BangumiItemExample example);
BangumiItem selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") BangumiItem record, @Param("example") BangumiItemExample example);
int updateByExample(@Param("record") BangumiItem record, @Param("example") BangumiItemExample example);
int updateByPrimaryKeySelective(BangumiItem record);
int updateByPrimaryKey(BangumiItem record);
}

View File

@@ -0,0 +1,32 @@
package com.yutou.nas.mybatis.dao;
import com.yutou.nas.mybatis.model.BangumiList;
import com.yutou.nas.mybatis.model.BangumiListExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface BangumiListDao {
long countByExample(BangumiListExample example);
int deleteByExample(BangumiListExample example);
int deleteByPrimaryKey(Integer id);
int insert(BangumiList record);
int insertSelective(BangumiList record);
List<BangumiList> selectByExample(BangumiListExample example);
BangumiList selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") BangumiList record, @Param("example") BangumiListExample example);
int updateByExample(@Param("record") BangumiList record, @Param("example") BangumiListExample example);
int updateByPrimaryKeySelective(BangumiList record);
int updateByPrimaryKey(BangumiList record);
}

View File

@@ -0,0 +1,41 @@
package com.yutou.nas.mybatis.dao;
import com.yutou.nas.mybatis.model.MusicData;
import com.yutou.nas.mybatis.model.MusicDataExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MusicDataDao {
long countByExample(MusicDataExample example);
int deleteByExample(MusicDataExample example);
int deleteByPrimaryKey(Integer id);
int insert(MusicData record);
int insertSelective(MusicData record);
List<MusicData> selectByExample(MusicDataExample example);
MusicData selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") MusicData record, @Param("example") MusicDataExample example);
int updateByExample(@Param("record") MusicData record, @Param("example") MusicDataExample example);
int updateByPrimaryKeySelective(MusicData record);
int updateByPrimaryKey(MusicData record);
void truncate();
List<MusicData> selectByRegexp(String regexp);
List<String> selectAllAlbum();
List<String> selectAllArtist();
List<MusicData> selectAlbum(String album);
List<MusicData> selectArtist(String artist);
}

View File

@@ -0,0 +1,32 @@
package com.yutou.nas.mybatis.dao;
import com.yutou.nas.mybatis.model.MusicFavorites;
import com.yutou.nas.mybatis.model.MusicFavoritesExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MusicFavoritesDao {
long countByExample(MusicFavoritesExample example);
int deleteByExample(MusicFavoritesExample example);
int deleteByPrimaryKey(Integer id);
int insert(MusicFavorites record);
int insertSelective(MusicFavorites record);
List<MusicFavorites> selectByExample(MusicFavoritesExample example);
MusicFavorites selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") MusicFavorites record, @Param("example") MusicFavoritesExample example);
int updateByExample(@Param("record") MusicFavorites record, @Param("example") MusicFavoritesExample example);
int updateByPrimaryKeySelective(MusicFavorites record);
int updateByPrimaryKey(MusicFavorites record);
}

View File

@@ -0,0 +1,32 @@
package com.yutou.nas.mybatis.dao;
import com.yutou.nas.mybatis.model.MusicFavoritesDir;
import com.yutou.nas.mybatis.model.MusicFavoritesDirExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface MusicFavoritesDirDao {
long countByExample(MusicFavoritesDirExample example);
int deleteByExample(MusicFavoritesDirExample example);
int deleteByPrimaryKey(Integer id);
int insert(MusicFavoritesDir record);
int insertSelective(MusicFavoritesDir record);
List<MusicFavoritesDir> selectByExample(MusicFavoritesDirExample example);
MusicFavoritesDir selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") MusicFavoritesDir record, @Param("example") MusicFavoritesDirExample example);
int updateByExample(@Param("record") MusicFavoritesDir record, @Param("example") MusicFavoritesDirExample example);
int updateByPrimaryKeySelective(MusicFavoritesDir record);
int updateByPrimaryKey(MusicFavoritesDir record);
}