package cn.ey.biz.module.system.convert.engagement.code;

import cn.ey.biz.common.pojo.PageResult;
import cn.ey.biz.module.system.api.engagement.code.dto.EngagementCodeRuleSimpleRespDTO;
import cn.ey.biz.module.system.controller.engagement.code.vo.EngagementCodeRuleEntityVO;
import cn.ey.biz.module.system.controller.engagement.code.vo.EngagementCodeRuleReqVO;
import cn.ey.biz.module.system.controller.engagement.code.vo.EngagementCodeRuleRespVO;
import cn.ey.biz.module.system.controller.engagement.code.vo.EngagementCodeRuleSimpleRespVO;
import cn.ey.biz.module.system.dal.dataobject.engagement.code.SystemEngagementCodeRuleDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * code规则 Convert
 */
@Mapper
public interface EngagementCodeRuleConvert {

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

    PageResult<EngagementCodeRuleRespVO> doConvertVo(PageResult<SystemEngagementCodeRuleDO> dto);

    List<EngagementCodeRuleSimpleRespVO> doConvertSimpleVo(List<SystemEngagementCodeRuleDO> codeRuleSimpleList);


    List<EngagementCodeRuleSimpleRespDTO> doConvertDto(List<SystemEngagementCodeRuleDO> list);

}
