I DID STUFF, GOD A PROC MACRO AND SHIT

This commit is contained in:
Rusty Striker 2024-09-22 23:46:51 +03:00
commit 22319e84a1
Signed by: RustyStriker
GPG key ID: 87E4D691632DFF15
28 changed files with 3101 additions and 0 deletions

12
src/api/mod.rs Normal file
View 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>
}