1
use serde::{Deserialize, Serialize};
2
use serde_json::{Map, Value};
3

            
4
#[derive(Serialize)]
5
pub struct PostApplication {
6
    pub data: PostApplicationData,
7
}
8

            
9
#[derive(Serialize)]
10
pub struct PostApplicationData {
11
    #[serde(rename = "applicationId")]
12
    pub application_id: String,
13
}
14

            
15
#[derive(Serialize)]
16
pub struct GetApplicationCount {
17
    pub data: GetCountData,
18
}
19

            
20
#[derive(Serialize)]
21
pub struct GetCountData {
22
    pub count: u64,
23
}
24

            
25
#[derive(Serialize)]
26
pub struct GetApplicationList {
27
    pub data: Vec<GetApplicationData>,
28
}
29

            
30
#[derive(Serialize)]
31
pub struct GetApplication {
32
    pub data: GetApplicationData,
33
}
34

            
35
#[derive(Deserialize, Serialize)]
36
pub struct GetApplicationData {
37
    #[serde(rename = "applicationId")]
38
    pub application_id: String,
39
    pub code: String,
40
    #[serde(rename = "unitId")]
41
    pub unit_id: String,
42
    #[serde(rename = "unitCode")]
43
    pub unit_code: String,
44
    #[serde(rename = "createdAt")]
45
    pub created_at: String,
46
    #[serde(rename = "modifiedAt")]
47
    pub modified_at: String,
48
    #[serde(rename = "hostUri")]
49
    pub host_uri: String,
50
    pub name: String,
51
    pub info: Map<String, Value>,
52
}