service_contracts/
service_player.rsuse mahjong_core::{GameId, PlayerId};
use serde::{Deserialize, Serialize};
use ts_rs::TS;
#[derive(Debug, Clone, Serialize, Deserialize, Default, TS)]
#[ts(export)]
pub struct ServicePlayer {
pub created_at: String,
pub id: PlayerId,
pub is_ai: bool,
pub name: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default, TS)]
#[ts(export)]
pub struct ServicePlayerGame {
pub created_at: String,
pub id: GameId,
pub updated_at: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, TS)]
#[ts(export)]
pub struct ServicePlayerSummary {
pub id: PlayerId,
pub name: String,
}