package com.eactive.eai.apim.apigroup.mapper;

import com.eactive.eai.apim.apigroup.ApiGroupApiVO;
import com.eactive.eai.data.entity.onl.apim.apigroup.ApiGroupApi;
import com.eactive.eai.data.mapper.BaseMapperConfig;
import com.eactive.eai.data.mapper.GenericMapper;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(config = BaseMapperConfig.class, uses = {})
public interface ApiGroupApiMapper extends GenericMapper<ApiGroupApiVO, ApiGroupApi> {

    @Mapping(source = "id.apiGroupId", target = "apiGroupId")
    @Mapping(source = "id.apiId", target = "apiId")
    @Mapping(source = "displayOrder", target = "displayOrder")
    ApiGroupApiVO toVo(ApiGroupApi apiGroupApi);

}
