pub mod create_product_variant { use model::v2::*; use crate::stocks::Error; #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Input { pub product_id: ProductId, pub name: ProductName, pub short_description: ProductShortDesc, pub long_description: ProductLongDesc, pub price: Price, } #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Details { pub product_variant: ProductVariant, } pub type Output = Result; } pub mod update_product_variant { use model::v2::*; use crate::stocks::Error; #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Input { pub id: ProductVariantId, pub product_id: ProductId, pub name: ProductName, pub short_description: ProductShortDesc, pub long_description: ProductLongDesc, pub price: Price, } #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Details { pub product_variant: ProductVariant, } pub type Output = Result; } pub mod delete_product_variant { use model::v2::*; use crate::stocks::Error; #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Input { pub product_id: ProductId, pub product_variant_id: ProductVariantId, } #[derive(Debug, serde::Serialize, serde::Deserialize)] pub struct Details { pub product_id: ProductId, pub product_variant_id: ProductVariantId, } pub type Output = Result; }