package com.ff.game.mapper; import com.ff.api.response.GameResponse; import com.ff.game.api.request.GameUniqueDTO; import com.ff.game.domain.Game; import com.ff.game.dto.GameDTO; import org.apache.ibatis.annotations.Param; import java.util.List; /** * 平台子游戏管理Mapper接口 * * @author shi * @date 2025-02-10 */ public interface GameMapper { /** * 查询平台子游戏管理 * * @param id 平台子游戏管理主键 * @return 平台子游戏管理 */ Game selectGameById(Long id); /** * 查询平台子游戏管理列表 * * @param game 平台子游戏管理 * @return 平台子游戏管理集合 */ List selectGameList(Game game); /** * 新增平台子游戏管理 * * @param game 平台子游戏管理 * @return 结果 */ int insertGame(Game game); /** * 修改平台子游戏管理 * * @param game 平台子游戏管理 * @return 结果 */ int updateGame(Game game); /** * 删除平台子游戏管理 * * @param id 平台子游戏管理主键 * @return 结果 */ int deleteGameById(Long id); /** * 批量删除平台子游戏管理 * * @param ids 需要删除的数据主键集合 * @return 结果 */ int deleteGameByIds(Long[] ids); /** * 根据平台code与平台类型选择最大序号 * * @param platformType * @param platformCode * @return */ Integer selectMaxSortNoBy(@Param("platformType") Integer platformType, @Param("platformCode") String platformCode); /** * 选择游戏唯一列表 * * @param gameUniqueDTO 游戏独有dto * @return {@link List }<{@link Game }> */ List selectGameUniqueList(GameUniqueDTO gameUniqueDTO); /** * 选择游戏响应列表 * * @return {@link List }<{@link GameResponse }> */ List selectGameResponseList(); /** * 选择游戏数据列表 * * @param gameDTO 游戏dto * @return {@link List }<{@link Game }> */ List selectGameDTOList(GameDTO gameDTO); }