use uuid::Uuid; use super::types::{AddLinkCmd, LinkPage, LinkView}; use super::usecase; impl crate::service::ProjectService { pub async fn add_link( &self, actor: Uuid, space_id: Uuid, project_id: Uuid, cmd: AddLinkCmd, ) -> crate::error::ProjectResult { usecase::add_link(self, actor, space_id, project_id, cmd).await } pub async fn list_links( &self, actor: Uuid, space_id: Uuid, project_id: Uuid, ) -> crate::error::ProjectResult { usecase::list_links(self, actor, space_id, project_id).await } pub async fn remove_link( &self, actor: Uuid, space_id: Uuid, project_id: Uuid, link_id: Uuid, ) -> crate::error::ProjectResult<()> { usecase::remove_link(self, actor, space_id, project_id, link_id).await } }