Skip to main content

jx3_api/model/
free.rs

1use serde::{Deserialize, Serialize};
2use std::collections::HashMap;
3
4#[derive(Serialize, Deserialize, Debug, Clone)]
5pub struct Calendar {
6    pub date: String,
7    pub week: String,
8    pub war: String,
9    pub battle: String,
10    pub orecar: String,
11    pub school: String,
12    pub rescue: String,
13    pub luck: Option<Vec<String>>,
14    pub card: Vec<String>,
15    pub draw: Option<String>,
16    pub team: Option<Vec<String>>,
17}
18#[derive(Serialize, Deserialize, Debug, Clone)]
19pub struct Today {
20    pub date: String,
21    pub week: String,
22    pub year: String,
23    pub month: String,
24    pub day: String,
25}
26#[derive(Serialize, Deserialize, Debug, Clone)]
27pub struct ListCalendar {
28    pub today: Option<Today>,
29    pub data: Option<Vec<Calendar>>,
30}
31
32#[derive(Serialize, Deserialize, Debug, Clone)]
33pub struct Celeb {
34    pub map: String,
35    pub stage: String,
36    pub site: String,
37    pub desc: String,
38    pub icon: String,
39    pub time: String,
40}
41
42#[derive(Serialize, Deserialize, Debug, Clone)]
43pub struct Answer {
44    pub id: i32,
45    pub question: String,
46    pub answer: String,
47    pub correctness: i32,
48    pub index: i32,
49    pub pinyin: String,
50}
51
52#[derive(Serialize, Deserialize, Debug, Clone)]
53pub struct Flower {
54    pub name: String,
55    pub color: String,
56    pub price: f32,
57    pub line: Vec<String>,
58}
59
60#[derive(Serialize, Deserialize, Debug, Clone)]
61pub struct Furniture {
62    pub id: i32,
63    pub name: String,
64    pub r#type: i32,
65    pub color: i32,
66    pub source: String,
67    pub architecture: i32,
68    pub limit: i32,
69    pub quality: i32,
70    pub view: i32,
71    pub practical: i32,
72    pub hard: i32,
73    pub geomantic: i32,
74    pub interesting: i32,
75    pub produce: Option<String>,
76    pub image: String,
77    pub tip: String,
78}
79
80#[derive(Serialize, Deserialize, Debug, Clone)]
81pub struct Travel {
82    pub id: i32,
83    pub name: String,
84    pub r#type: i32,
85    pub color: i32,
86    pub source: String,
87    pub architecture: i32,
88    pub limit: i32,
89    pub quality: i32,
90    pub view: i32,
91    pub practical: i32,
92    pub hard: i32,
93    pub geomantic: i32,
94    pub interesting: i32,
95    pub produce: Option<String>,
96    pub image: String,
97    pub tip: String,
98}
99
100#[derive(Serialize, Deserialize, Debug, Clone)]
101pub struct News {
102    pub id: i32,
103    pub token: i32,
104    pub class: String,
105    pub title: String,
106    pub date: String,
107    pub url: String,
108}
109
110#[derive(Serialize, Deserialize, Debug, Clone)]
111pub struct Announce {
112    id: i32,
113    token: i32,
114    class: String,
115    title: String,
116    date: String,
117    url: String,
118}
119
120#[derive(Serialize, Deserialize, Debug, Clone)]
121pub struct ServerMaster {
122    id: String,
123    zone: String,
124    name: String,
125    event: i32,
126    voice: HashMap<String, Vec<i32>>,
127    alias: Vec<String>,
128    slave: Vec<String>,
129}
130
131#[derive(Serialize, Deserialize, Debug, Clone)]
132pub struct ServerCheck {
133    pub id: i32,
134    pub zone: String,
135    pub server: String,
136    pub status: i32,
137    time: i32,
138}
139
140#[derive(Serialize, Deserialize, Debug, Clone)]
141pub struct ServerStatus {
142    pub zone: String,
143    pub server: String,
144    pub status: String,
145}
146
147#[derive(Serialize, Deserialize, Debug, Clone)]
148pub struct SkillsRecord {
149    pub id: String,
150    pub title: String,
151    pub url: String,
152    pub time: String,
153}