package com.seer.teach.iot.admin.convert;

import com.seer.teach.iot.admin.req.SaveAdvertisementReq;
import com.seer.teach.iot.module.entity.AdvertisingEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 *
 * <p>
 *
 * </p >
 *
 * @author Captain
 * @since 2025-09-18 14:13
 */
@Mapper
public interface AdminAdvertisementConvert {

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

    AdvertisingEntity toAdvertisementEntity(SaveAdvertisementReq saveAdvertisementReq);

    List<AdvertisingEntity> toAdvertisementList(List<SaveAdvertisementReq> saveAdvertisementReq);


}
