mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-07-11 01:52:48 +00:00
Save reports in the database
This commit is contained in:
@ -72,4 +72,5 @@ pub mod removed_user_from_conv_message;
|
||||
pub mod user_is_writing_message_in_conversation;
|
||||
pub mod res_create_conversation_for_group;
|
||||
pub mod notification_settings_api;
|
||||
pub mod push_notifications_status_api;
|
||||
pub mod push_notifications_status_api;
|
||||
pub mod submit_report_result_api;
|
12
src/api_data/submit_report_result_api.rs
Normal file
12
src/api_data/submit_report_result_api.rs
Normal file
@ -0,0 +1,12 @@
|
||||
use crate::data::report::ReportID;
|
||||
|
||||
#[derive(serde::Serialize)]
|
||||
pub struct SubmitReportResultApi {
|
||||
report_id: u64,
|
||||
}
|
||||
|
||||
impl SubmitReportResultApi {
|
||||
pub fn new(r: ReportID) -> Self {
|
||||
Self { report_id: r.0 }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user