package com.xindazhou.vehicle.convert.sound;

import com.xindazhou.framework.common.pojo.PageResult;
import com.xindazhou.vehicle.controller.admin.vehicle.vo.VehicleSoundRespVO;
import com.xindazhou.vehicle.controller.admin.vehicle.vo.VehicleSoundSaveReqVO;
import com.xindazhou.vehicle.dal.dataobject.sound.VehicleSoundDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * APP音效管理 Convert
 *
 * @author xindazhou
 */
@Mapper
public interface VehicleSoundConvert {

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

    VehicleSoundRespVO convert(VehicleSoundDO bean);

    @Mapping(target = "id", ignore = true)
    VehicleSoundDO convert(VehicleSoundSaveReqVO bean);

    PageResult<VehicleSoundRespVO> convertPage(PageResult<VehicleSoundDO> page);

}
