use uuid::Uuid; use crate::error::PostResult; use crate::features::PostService; use super::usecase; use super::{CreatePostBoardOption, ListPostQuery, PostBoardPage, PostBoardView, PostPage}; impl PostService { pub async fn create_post_collection( &self, actor: Uuid, space_id: Uuid, input: CreatePostBoardOption, ) -> PostResult { usecase::create_post_collection(self, actor, space_id, input).await } pub async fn list_post_collections( &self, actor: Uuid, channel_id: Uuid, ) -> PostResult { usecase::list_post_collections(self, actor, channel_id).await } pub async fn list_posts( &self, actor: Uuid, channel_id: Uuid, q: ListPostQuery, ) -> PostResult { usecase::list_posts(self, actor, channel_id, q).await } }