package cn.freemud.demo.manager.promotion;

import cn.freemud.demo.GetActivityBO;
import cn.freemud.demo.entities.ActivityBO;
import cn.freemud.demo.entities.CalculationDiscountBO;
import cn.freemud.demo.entities.GetCalculationDiscountBO;
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 PromotionManager {

    /**
     *
     * @return
     */
    public CalculationDiscountBO calculationDiscount(GetCalculationDiscountBO getCalculationDiscountBO, PromotionService promotionService){

        CalculationDiscountBO calculationDiscountBO = promotionService.calculationDiscount(getCalculationDiscountBO);

        return calculationDiscountBO;

    }

    public ActivityBO queryActivityByType(GetActivityBO getActivityBO, PromotionService promotionService){

        ActivityBO activityBO = promotionService.queryActivityByType(getActivityBO);
        return activityBO;

    }

}
