1use crate::dmm::{ApiResult, ElementVec};
2use serde::{Deserialize, Serialize};
3
4#[derive(Serialize, Debug, Default)]
5pub struct FloorListParams {}
6
7#[derive(Deserialize, Debug)]
8pub struct FloorListResult {
9 pub site: ElementVec<Site>,
10}
11impl ApiResult for FloorListResult {}
12
13#[derive(Deserialize, Debug)]
14pub struct Site {
15 pub name: String,
16 pub code: String,
17 pub service: ElementVec<Service>,
18}
19
20#[derive(Deserialize, Debug)]
21pub struct Service {
22 pub name: String,
23 pub code: String,
24 pub floor: ElementVec<Floor>,
25}
26#[derive(Deserialize, Debug)]
27pub struct Floor {
28 pub id: String,
29 pub name: String,
30 pub code: String,
31}