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

Start to implement post logic

This commit is contained in:
2020-07-02 18:19:04 +02:00
parent d195979c18
commit 4ab5b9d3e3
11 changed files with 209 additions and 3 deletions

View File

@ -18,4 +18,5 @@ pub mod new_group;
pub mod group_member;
pub mod global_search_result;
pub mod friend;
pub mod friendship_status;
pub mod friendship_status;
pub mod post;

22
src/data/post.rs Normal file
View File

@ -0,0 +1,22 @@
//! # Post
//!
//! @author Pierre Hubert
#[allow(non_camel_case_types)]
pub enum PostVisibilityLevel {
//Posts that can be seen by anyone
VISIBILITY_PUBLIC = 1,
//Posts that can be seen by the friends of the user
VISIBILITY_FRIENDS = 2,
//Posts that can be seen by the user only
VISIBILITY_USER = 3,
//Posts that can be seen by the members of a group (same as friends)
VISIBILITY_GROUP_MEMBERS = 50,
}
pub struct Post {
pub id: u64
}