游戏接口调整

This commit is contained in:
sqlicong
2025-07-03 20:04:57 +08:00
parent 218132da32
commit 54e3f20a82
20 changed files with 180 additions and 35 deletions

View File

@@ -46,6 +46,7 @@ public interface GameErrorCodeConstants {
ErrorCode GAME_USER_BEEHIVE_NOT_EXISTS = new ErrorCode(2_001_110_013, "用户蜂箱不存在");
ErrorCode GAME_USER_PROPS_NOT_EXISTS = new ErrorCode(2_001_110_014, "用户道具不存在");
ErrorCode NO_HAVE_PROPS = new ErrorCode(2_001_110_014, "道具不足");
ErrorCode NO_HAVE_PROPS = new ErrorCode(2_001_110_114, "道具不足");
ErrorCode USE_LIMITED = new ErrorCode(2_001_110_214, "今日该道具已使用上限");
}

View File

@@ -11,7 +11,8 @@ import java.util.Arrays;
public enum TaskType implements ArrayValuable<Integer> {
LOGIN(1, "登录"),
PURCHASE(2, "购买"),
SHARE(3, "分享");
SHARE(3, "分享"),
USE_PROPS(4, "使用道具");
public static final Integer[] ARRAYS = Arrays.stream(values()).map(TaskType::getType).toArray(Integer[]::new);