1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-21 00:45:18 +00:00

Can create surveys

This commit is contained in:
2020-07-08 20:16:09 +02:00
parent 3be1c7f203
commit 1af26f6d84
5 changed files with 77 additions and 8 deletions

View File

@ -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
View 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,
}