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:
@ -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;
|
22
src/api_data/res_change_group_logo.rs
Normal file
22
src/api_data/res_change_group_logo.rs
Normal 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),
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user