chemlib/store/element_store.rs
use common::store::{build_exp_link, get};
use crate::dto::element_response::ElementResponse;
const DOMAIN: &str = "chem";
pub struct ElementStore {}
impl ElementStore {
pub async fn get_all() -> Result<Vec<ElementResponse>, String> {
get::<Vec<ElementResponse>>(build_exp_link(DOMAIN, format!("/element/getAll"))).await
}
}