I DID STUFF, GOD A PROC MACRO AND SHIT
This commit is contained in:
commit
22319e84a1
28 changed files with 3101 additions and 0 deletions
12
src/api/mod.rs
Normal file
12
src/api/mod.rs
Normal file
|
@ -0,0 +1,12 @@
|
|||
pub mod login;
|
||||
pub mod game_actions;
|
||||
pub mod map_actions;
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct ResultBase<T: Serialize> {
|
||||
pub success: bool,
|
||||
pub fail_reason: Option<String>,
|
||||
pub data: Option<T>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue