package com.wzj.soopin.member.convert;

import com.wzj.soopin.member.domain.bo.MemberCartBO;
import com.wzj.soopin.member.domain.po.MemberCart;
import com.wzj.soopin.member.domain.vo.MemberCartVO;
import org.dromara.common.web.core.BaseConverter;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

/**
 * 购物车  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring",uses = BaseConverter.class)
public interface MemberCartConvert extends BaseConverter<MemberCartVO, MemberCartBO,MemberCart> {

    @Override
    @Mapping(target = "member.id", source = "memberId")
    @Mapping(target = "memberId", source = "memberId")
    MemberCartVO toVO(MemberCart memberCart);
}
