Get Single Empire
This commit is contained in:
parent
26e83a3aed
commit
eb63e033eb
3 changed files with 115 additions and 22 deletions
src/v3
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue