feat: 국가 메타 업데이트 기능 추가 및 관련 로직 구현

This commit is contained in:
2026-01-24 03:16:05 +00:00
parent 6e439f074d
commit cbee0d4c20
5 changed files with 169 additions and 49 deletions
+22 -2
View File
@@ -115,7 +115,14 @@ export type TurnDaemonCommand =
top16: number[];
top8: number[];
top4: number[];
};
}
| {
type: 'setNationMeta';
requestId?: string;
nationId: number;
updates: Record<string, unknown>;
expectedUpdatedAt?: string;
};
export type TurnDaemonCommandResult =
| {
@@ -207,7 +214,20 @@ export type TurnDaemonCommandResult =
winnerId: number;
runnerUpId: number;
reason: string;
};
}
| {
type: 'setNationMeta';
ok: true;
nationId: number;
updatedAt: string;
}
| {
type: 'setNationMeta';
ok: false;
nationId: number;
reason: string;
currentUpdatedAt?: string;
};
export type TurnDaemonEvent =
| { type: 'status'; requestId?: string; status: TurnDaemonStatus }