refactor(ff-admin): 重构平台不支持功能的返回方式

- 将返回默认值改为抛出 BaseException 异常
-统一异常信息为 "当前平台不支持"
- 修改受影响的方法:
main-p
shi 2025-02-13 16:21:22 +08:00
parent 02388446db
commit 758bed4501
1 changed files with 5 additions and 5 deletions

View File

@ -422,7 +422,7 @@ public class GamesXKServiceImpl implements IGamesService {
*/
@Override
public Boolean createFreeSpin(CreateFreeSpinRequestDTO createFreeSpinRequest) {
return Boolean.FALSE;
throw new BaseException("当前平台不支持");
}
/**
@ -433,7 +433,7 @@ public class GamesXKServiceImpl implements IGamesService {
*/
@Override
public GetGameDetailResponseDTO getGameDetail(GetGameDetailRequestDTO getGameDetailRequestDTO) {
return new GetGameDetailResponseDTO();
throw new BaseException("当前平台不支持");
}
/**
@ -469,7 +469,7 @@ public class GamesXKServiceImpl implements IGamesService {
*/
@Override
public Boolean kickMemberAll(KickMemberAllDTO kickMemberAllDTO) {
throw new BaseException("当前平台不支持全部踢出");
throw new BaseException("当前平台不支持");
}
/**
@ -480,7 +480,7 @@ public class GamesXKServiceImpl implements IGamesService {
*/
@Override
public List<GameFreeRecord> getFreeSpinDashflow(GetFreeSpinDashflowRequestDTO getFreeSpinDashflowRequestDTO) {
return new ArrayList<>();
throw new BaseException("当前平台不支持");
}
/**
@ -491,7 +491,7 @@ public class GamesXKServiceImpl implements IGamesService {
*/
@Override
public Boolean cancelFreeSpin(CancelFreeSpinRequestDTO cancelFreeSpinRequestDTO) {
return Boolean.TRUE;
throw new BaseException("当前平台不支持");
}