package com.jwipc.order.convert;

import com.jwipc.order.dto.AppointmentTime2DTO;
import com.jwipc.order.dto.AppointmentTimeDTO;
import com.jwipc.order.entity.AppointmentTime;
import com.jwipc.order.model.po.AppointmentTime2PO;
import com.jwipc.order.model.po.AppointmentTimePO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * <p>
 *预约时间范围数据配置
 * </p>
 *
 * @author wt
 * @version 1.0
 * @since 2024/3/5
 */
@Mapper(componentModel = "spring")
public interface AppointmentTimeConvert {

    List<AppointmentTimeDTO> po2PageListDTO(List<AppointmentTimePO> poList);

    AppointmentTimeDTO EntityToDto(AppointmentTime appointmentTime);

    AppointmentTime dtoToEntity(AppointmentTimeDTO appointmentTimeDto);

    List<AppointmentTime2DTO> po2ToListDTO(List<AppointmentTime2PO> poList);
}
