package com.xinda.pay.core.convert.demo;

import com.xinda.common.core.domain.PageResult;
import com.xinda.pay.core.controller.admin.demo.vo.OrderInfoCreateReqVO;
import com.xinda.pay.core.controller.admin.demo.vo.OrderInfoRespVO;
import com.xinda.pay.core.domain.dataobject.demo.OrderInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 示例订单 Convert
 *
 * @author xinda
 */
@Mapper
public interface OrderInfoConvert {

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

    OrderInfo convert(OrderInfoCreateReqVO bean);

    OrderInfoRespVO convert(OrderInfo bean);

    PageResult<OrderInfoRespVO> convertPage(PageResult<OrderInfo> page);

}
