package com.wzj.soopin.member.convert;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wzj.soopin.member.domain.bo.FeedbackBO;
import com.wzj.soopin.member.domain.po.Feedback;
import com.wzj.soopin.member.domain.vo.FeedbackVO;
import org.dromara.common.web.core.BaseConverter;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;
/**
 * 意见反馈  DO <=> VO / BO
 *
 * @author zcc
 */
@Mapper(componentModel = "spring",uses = BaseConverter.class)
public interface FeedbackConvert extends BaseConverter<FeedbackVO, FeedbackBO, Feedback> {

    @Override
    @Mapping(target = "member.id", ignore = true,source = "memberId")
    @Mapping(target = "memberId", ignore = true,source = "memberId")
    FeedbackVO toVO(Feedback feedback);
}
