package cn.freemud.demo.manager.store;

import cn.freemud.demo.entities.DeliveryConfigBO;
import cn.freemud.demo.entities.GetStoreInfoBO;
import cn.freemud.demo.entities.StoreInfoBO;
import cn.freemud.demo.entities.bo.goods.GetProductBO;
import cn.freemud.demo.entities.bo.goods.ProductBO;
import cn.freemud.demo.manager.product.ProductService;
import org.springframework.stereotype.Service;

@Service
public class StoreManager {


    /**
     *
     * @return
     */
    public StoreInfoBO getStoreInfo(GetStoreInfoBO getStoreInfoBO, StoreService storeService){

        StoreInfoBO storeInfo = storeService.getStoreInfo(getStoreInfoBO);

        return storeInfo;

    }


    /**
     *
     * @return
     */
    public DeliveryConfigBO findDeliveryConfigByPartnerIdAndStoreId(String partnerId, String storeId, StoreService storeService){

        DeliveryConfigBO storeInfo = storeService.findDeliveryConfigByPartnerIdAndStoreId(partnerId, storeId);

        return storeInfo;

    }


}
