1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Can delete a group's logo

This commit is contained in:
2020-06-26 10:35:54 +02:00
parent 8d6dc6365c
commit 539765d01c
6 changed files with 79 additions and 2 deletions

View File

@ -25,4 +25,5 @@ pub mod list_unread_conversations_api;
pub mod global_search_result_api;
pub mod res_create_group;
pub mod group_api;
pub mod advanced_group_api;
pub mod advanced_group_api;
pub mod res_change_group_logo;

View File

@ -0,0 +1,22 @@
//! # Change group logo result
//!
//! @author Pierre Hubert
use serde::Serialize;
use crate::utils::user_data_utils::user_data_url;
#[derive(Serialize)]
pub struct ResChangeGroupLogo {
success: String,
url: String,
}
impl ResChangeGroupLogo {
/// Construct a new instance of this structure
pub fn new(path: &str) -> ResChangeGroupLogo {
ResChangeGroupLogo {
success: "Group logo has been successfully updated!".to_string(),
url: user_data_url(path),
}
}
}