init group

This commit is contained in:
weisd
2025-01-13 20:46:18 +08:00
parent 4d9eca1667
commit 133a294024
11 changed files with 235 additions and 21 deletions
+19
View File
@@ -0,0 +1,19 @@
use serde::Deserialize;
use serde::Serialize;
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum GroupStatus {
Enabled,
Disabled,
}
#[derive(Debug, Serialize, Deserialize)]
pub struct GroupAddRemove {
group: String,
pub members: Vec<String>,
#[serde(rename = "groupStatus")]
pub status: GroupStatus,
#[serde(rename = "isRemove")]
pub is_remove: bool,
}
+2
View File
@@ -1,3 +1,4 @@
pub mod group;
pub mod heal_commands;
pub mod health;
pub mod info_commands;
@@ -8,5 +9,6 @@ pub mod trace;
pub mod user;
pub mod utils;
pub use group::*;
pub use info_commands::*;
pub use user::*;