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:
@ -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
22
src/data/post.rs
Normal 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
|
||||
}
|
Reference in New Issue
Block a user