91 lines
2.3 KiB
Java
91 lines
2.3 KiB
Java
package com.ff.game.mapper;
|
|
|
|
import java.util.List;
|
|
|
|
import com.ff.base.system.domain.TenantSecretKey;
|
|
import com.ff.game.domain.GameSecretKey;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
/**
|
|
* 游戏平台密钥管理Mapper接口
|
|
*
|
|
* @author shi
|
|
* @date 2025-02-10
|
|
*/
|
|
public interface GameSecretKeyMapper
|
|
{
|
|
/**
|
|
* 查询游戏平台密钥管理
|
|
*
|
|
* @param id 游戏平台密钥管理主键
|
|
* @return 游戏平台密钥管理
|
|
*/
|
|
GameSecretKey selectGameSecretKeyById(Long id);
|
|
|
|
/**
|
|
* 查询游戏平台密钥管理列表
|
|
*
|
|
* @param gameSecretKey 游戏平台密钥管理
|
|
* @return 游戏平台密钥管理集合
|
|
*/
|
|
List<GameSecretKey> selectGameSecretKeyList(GameSecretKey gameSecretKey);
|
|
|
|
/**
|
|
* 新增游戏平台密钥管理
|
|
*
|
|
* @param gameSecretKey 游戏平台密钥管理
|
|
* @return 结果
|
|
*/
|
|
int insertGameSecretKey(GameSecretKey gameSecretKey);
|
|
|
|
/**
|
|
* 修改游戏平台密钥管理
|
|
*
|
|
* @param gameSecretKey 游戏平台密钥管理
|
|
* @return 结果
|
|
*/
|
|
int updateGameSecretKey(GameSecretKey gameSecretKey);
|
|
|
|
/**
|
|
* 删除游戏平台密钥管理
|
|
*
|
|
* @param id 游戏平台密钥管理主键
|
|
* @return 结果
|
|
*/
|
|
int deleteGameSecretKeyById(Long id);
|
|
|
|
/**
|
|
* 批量删除游戏平台密钥管理
|
|
*
|
|
* @param ids 需要删除的数据主键集合
|
|
* @return 结果
|
|
*/
|
|
int deleteGameSecretKeyByIds(Long[] ids);
|
|
|
|
/**
|
|
* 按代码查找系统
|
|
*
|
|
* @param code 代码
|
|
* @return {@link String }
|
|
*/
|
|
String findSystemByCode(@Param("code") String code, @Param("platform")String platform);
|
|
|
|
/**
|
|
* 通过平台和系统代码查找密钥
|
|
*
|
|
* @param platform 平台
|
|
* @param systemCode 系统代码
|
|
* @return {@link TenantSecretKey }
|
|
*/
|
|
GameSecretKey findSecretKeyByPlatformAndSystemCode(@Param("platform") String platform, @Param("systemCode") String systemCode);
|
|
|
|
/**
|
|
* 按平台和系统查找lang代码
|
|
*
|
|
* @param platform 平台
|
|
* @param systemLangCode 系统语言代码
|
|
* @return {@link GameSecretKey }
|
|
*/
|
|
GameSecretKey findByPlatformAndSystemLangCode(@Param("platform") String platform, @Param("systemLangCode") String systemLangCode);
|
|
}
|