package com.eactive.eai.rms.onl.transaction.apim.mapping;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import com.eactive.eai.data.entity.onl.unifbwk.UnifBwkTp;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.rms.onl.transaction.apim.vo.BizCodeVo;

@Mapper(config = BaseMapperConfig.class)
public interface BizCodeMapper {
    @Mapping(source = "eaibzwkdstcd", target = "bizCode")
    @Mapping(source = "bzwkdsticname", target = "bizName")
    @Mapping(source = "bzwkdsticdesc", target = "bizDesc")
    BizCodeVo toVo(UnifBwkTp unifBwkTp);

    List<BizCodeVo> toVoList(List<UnifBwkTp> unifBwkTps);
}
