1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-19 03:18:46 +00:00

Add responses to surveys to export

This commit is contained in:
2020-07-13 19:38:51 +02:00
parent 70d5facf4c
commit 88c45f05ac
9 changed files with 80 additions and 6 deletions

View File

@@ -4,6 +4,7 @@
use crate::data::comment::Comment;
use crate::data::post::Post;
use crate::data::survey_response::SurveyResponse;
use crate::data::user::User;
use crate::data::user_like::UserLike;
@@ -12,4 +13,5 @@ pub struct AccountExport {
pub posts: Vec<Post>,
pub comments: Vec<Comment>,
pub likes: Vec<UserLike>,
pub survey_responses: Vec<SurveyResponse>,
}

View File

@@ -28,4 +28,5 @@ pub mod notification;
pub mod user_membership;
pub mod new_account;
pub mod account_export;
pub mod user_like;
pub mod user_like;
pub mod survey_response;

View File

@@ -0,0 +1,15 @@
//! # Survey response
//!
//! This structure contains information about a single response to a survey
//!
//! @author Pierre Hubert
use crate::data::user::UserID;
pub struct SurveyResponse {
pub id: u64,
pub time_sent: u64,
pub user_id: UserID,
pub survey_id: u64,
pub choice_id: u64
}