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

import com.seer.teach.mp.admin.controller.resp.AdminActivityFormRelationResp;
import com.seer.teach.mp.entity.MpActivityFormRelationEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AdminMpActivityFormRelationConvert {

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

    /**
     * 转换
     *
     * @param entity
     * @return
     */
    AdminActivityFormRelationResp toAdminActivityFormRelationResp(MpActivityFormRelationEntity entity);


    List<AdminActivityFormRelationResp> toAdminActivityFormRelationRespList(List<MpActivityFormRelationEntity> entityList);
}
