package cn.ey.biz.module.system.convert.contract;

import cn.ey.biz.common.pojo.PageParam;
import cn.ey.biz.module.system.api.contract.dto.ContractArchivedFieldDTO;
import cn.ey.biz.module.system.api.contract.dto.ContractSaveDTO;
import cn.ey.biz.module.system.controller.admin.contract.vo.ContractArchivedFieldVO;
import cn.ey.biz.module.system.controller.admin.contract.vo.ContractSaveVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ContractConvert {
    ContractConvert INSTANCE = Mappers.getMapper(ContractConvert.class);

    ContractArchivedFieldDTO convert(ContractArchivedFieldVO bean);

    List<ContractArchivedFieldDTO> convertFields(List<ContractArchivedFieldVO> bean);

    ContractSaveVO<PageParam> convert(ContractSaveDTO<PageParam> bean);

}
