package cn.newfeifan.mall.module.promotion.convert.reward;

import cn.newfeifan.mall.framework.common.pojo.PageResult;
import cn.newfeifan.mall.module.promotion.controller.admin.reward.vo.RewardActivityCreateReqVO;
import cn.newfeifan.mall.module.promotion.controller.admin.reward.vo.RewardActivityRespVO;
import cn.newfeifan.mall.module.promotion.controller.admin.reward.vo.RewardActivityUpdateReqVO;
import cn.newfeifan.mall.module.promotion.dal.dataobject.reward.RewardActivityDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 满减送活动 Convert
 *
 * @author 非繁源码
 */
@Mapper
public interface RewardActivityConvert {

    RewardActivityConvert INSTANCE = Mappers.getMapper(RewardActivityConvert.class);

    RewardActivityDO convert(RewardActivityCreateReqVO bean);

    RewardActivityDO convert(RewardActivityUpdateReqVO bean);

    RewardActivityRespVO convert(RewardActivityDO bean);

    PageResult<RewardActivityRespVO> convertPage(PageResult<RewardActivityDO> page);

}
