mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 00:45:18 +00:00
Can create surveys
This commit is contained in:
@ -22,4 +22,5 @@ pub mod friendship_status;
|
||||
pub mod post;
|
||||
pub mod movie;
|
||||
pub mod survey;
|
||||
pub mod comment;
|
||||
pub mod comment;
|
||||
pub mod new_survey;
|
13
src/data/new_survey.rs
Normal file
13
src/data/new_survey.rs
Normal file
@ -0,0 +1,13 @@
|
||||
//! # New survey information
|
||||
//!
|
||||
//! @author Pierre Hubert
|
||||
|
||||
use crate::data::user::UserID;
|
||||
|
||||
pub struct NewSurvey {
|
||||
pub post_id: u64,
|
||||
pub user_id: UserID,
|
||||
pub question: String,
|
||||
pub choices: Vec<String>,
|
||||
pub allow_new_choices: bool,
|
||||
}
|
Reference in New Issue
Block a user