feat: implement creating strikes

feat: add moderator_id to strikes
fix: use correct collection for strikes
This commit is contained in:
Paul Makles
2023-05-31 19:04:20 +01:00
parent 28b1170633
commit 53c9160cd6
12 changed files with 120 additions and 31 deletions

View File

@@ -4,14 +4,23 @@ auto_derived!(
/// Strike Id
#[serde(rename = "_id")]
pub id: String,
/// User Id of reported user
/// Id of reported user
pub user_id: String,
/// Attached reason
pub reason: String,
}
/// # Strike Data
/// New strike information
pub struct DataCreateStrike {
/// Id of reported user
pub user_id: String,
/// Attached reason
pub reason: String,
}
/// New strike information
pub struct DataEditAccountStrike {
/// New attached reason
pub reason: String,