game-api/ff-game/src/main/java/com/ff/game/mapper/GameMapper.java

101 lines
2.1 KiB
Java
Raw Normal View History

2025-02-11 15:27:15 +08:00
package com.ff.game.mapper;
import com.ff.api.response.GameResponse;
2025-02-11 15:27:15 +08:00
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;
2025-02-11 15:27:15 +08:00
/**
* Mapper
*
2025-02-11 15:27:15 +08:00
* @author shi
* @date 2025-02-10
*/
public interface GameMapper {
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param id
* @return
*/
Game selectGameById(Long id);
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param game
* @return
*/
List<Game> selectGameList(Game game);
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param game
* @return
*/
int insertGame(Game game);
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param game
* @return
*/
int updateGame(Game game);
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param id
* @return
*/
int deleteGameById(Long id);
2025-02-11 15:27:15 +08:00
/**
*
*
2025-02-11 15:27:15 +08:00
* @param ids
* @return
*/
int deleteGameByIds(Long[] ids);
2025-02-11 15:27:15 +08:00
/**
* code
2025-02-11 15:27:15 +08:00
*
* @param platformType
* @param platformCode
* @return
2025-02-11 15:27:15 +08:00
*/
Integer selectMaxSortNoBy(@Param("platformType") Integer platformType, @Param("platformCode") String platformCode);
2025-02-11 15:27:15 +08:00
/**
*
*
* @param gameUniqueDTO dto
* @return {@link List }<{@link Game }>
*/
List<Game> selectGameUniqueList(GameUniqueDTO gameUniqueDTO);
2025-02-11 15:27:15 +08:00
/**
*
*
* @return {@link List }<{@link GameResponse }>
*/
List<GameResponse> selectGameResponseList();
/**
*
*
* @param gameDTO dto
* @return {@link List }<{@link Game }>
*/
List<Game> selectGameDTOList(GameDTO gameDTO);
2025-02-11 15:27:15 +08:00
}