Get Single Empire

This commit is contained in:
Neshura 2023-09-07 20:14:51 +02:00
parent 26e83a3aed
commit eb63e033eb
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
3 changed files with 115 additions and 22 deletions

View file

@ -110,6 +110,14 @@ pub struct ChellarisGameGroupLegacy {
// Empire Structs
#[derive(Serialize, Deserialize, ToSchema, Debug, IntoParams)]
pub struct GetEmpireParams {
#[schema(example = 1)]
pub game_id: i32,
#[schema(example = 1)]
pub empire_id: i32,
}
#[derive(Serialize, Deserialize, ToSchema, Debug)]
pub struct PostEmpireParams {
#[schema(example = 1)]
@ -165,8 +173,6 @@ pub struct DeleteEmpireParams {
#[schema(example = 1)]
pub game_id: i32,
#[schema(example = 1)]
pub group_id: i32,
#[schema(example = 1)]
pub empire_id: i32,
}