1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-09-25 22:29:45 +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

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
}