chemlib/store/task_store.rs
use common::store::{build_exp_link, get};
use uuid::Uuid;
use crate::dto::task_response::TaskResponse;
const DOMAIN: &str = "chem";
pub struct TaskStore {}
impl TaskStore {
pub async fn get_by_id(id: Uuid) -> Result<TaskResponse, String> {
get::<TaskResponse>(build_exp_link(DOMAIN, format!("/task/{}", id))).await
}
}