1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Add likes to export

This commit is contained in:
2020-07-13 19:26:19 +02:00
parent 67dd29fe2d
commit 70d5facf4c
8 changed files with 76 additions and 4 deletions

View File

@ -5,9 +5,11 @@
use crate::data::comment::Comment;
use crate::data::post::Post;
use crate::data::user::User;
use crate::data::user_like::UserLike;
pub struct AccountExport {
pub user: User,
pub posts: Vec<Post>,
pub comments: Vec<Comment>,
pub likes: Vec<UserLike>,
}

View File

@ -27,4 +27,5 @@ pub mod new_survey;
pub mod notification;
pub mod user_membership;
pub mod new_account;
pub mod account_export;
pub mod account_export;
pub mod user_like;

13
src/data/user_like.rs Normal file
View File

@ -0,0 +1,13 @@
//! User like
//!
//! @author Pierre Hubert
use crate::data::user::UserID;
pub struct UserLike {
pub id: u64,
pub user_id: UserID,
pub time_sent: u64,
pub elem_type: String,
pub elem_id: u64,
}