package com.seer.teach.mall.convert;


import com.seer.teach.common.enums.GoodsAttributeScopeEnum;
import com.seer.teach.mall.entity.GoodsAttributeValueEntity;
import com.seer.teach.mall.request.GoodsAttributeValueReq;
import com.seer.teach.mall.response.GoodsAttributeValueResp;
import org.mapstruct.Mapper;
import org.mapstruct.ValueMapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GoodsAttributeValueConvert {

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

    GoodsAttributeValueEntity reqToEntity(GoodsAttributeValueReq req);

    GoodsAttributeValueResp entityToResp(GoodsAttributeValueEntity entity);

    List<GoodsAttributeValueResp> entityListToRespList(List<GoodsAttributeValueEntity> entityList);

}