package com.red.circle.other.app.inner.convertor.material;

import com.red.circle.framework.core.convertor.ConvertorModel;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.infra.database.rds.entity.props.PropsCommodityStore;
import com.red.circle.other.inner.model.dto.material.PropsCommodityStoreDTO;
import org.mapstruct.Mapper;

/**
 * @author pengliang on 2023/11/7
 */
@Mapper(componentModel = ConvertorModel.SPRING)
public interface PropsCommodityStoreInnerConvertor {

  PropsCommodityStoreDTO toPropsCommodityStoreDTO(PropsCommodityStore store);

  PageResult<PropsCommodityStoreDTO> toPagePropsCommodityStoreDTO(
      PageResult<PropsCommodityStore> page);

  PropsCommodityStore toPropsCommodityStore(PropsCommodityStoreDTO dto);
}
