use uuid::Uuid; use crate::error::IssueResult; use crate::features::IssueService; use super::{CreatePinOption, PinView}; use super::usecase; impl IssueService { pub async fn create_pin( &self, actor: Uuid, channel_id: Uuid, collection_id: Uuid, input: CreatePinOption, ) -> IssueResult { usecase::create_pin(self, actor, channel_id, collection_id, input).await } pub async fn list_pins( &self, actor: Uuid, channel_id: Uuid, collection_id: Uuid, ) -> IssueResult> { usecase::list_pins(self, actor, channel_id, collection_id).await } pub async fn delete_pin( &self, actor: Uuid, channel_id: Uuid, collection_id: Uuid, pin_id: Uuid, ) -> IssueResult<()> { usecase::delete_pin(self, actor, channel_id, collection_id, pin_id).await } }