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:
@@ -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>,
|
||||
}
|
@@ -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;
|
15
src/data/survey_response.rs
Normal file
15
src/data/survey_response.rs
Normal 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
|
||||
}
|
Reference in New Issue
Block a user