use async_trait::async_trait;
use wx_rust_common::error::WxErrorException;
use crate::bean::AddMinishopGoodsSPU;
use crate::bean::GoodsCatList;
use crate::bean::ParentCatId;
use crate::bean::WxOpenResult;
#[async_trait]
pub trait WxOpenMinishopGoodsService: Send + Sync {
async fn get_minishop_goods_cat(
&self,
f_cat_id: &ParentCatId,
) -> Result<Option<GoodsCatList>, WxErrorException>;
async fn add_minishop_goods_spu(
&self,
dto: &AddMinishopGoodsSPU,
) -> Result<Option<WxOpenResult>, WxErrorException>;
}