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

import com.seer.teach.mp.app.controller.req.AppMpSignUpActivityReq;
import com.seer.teach.mp.app.controller.resp.AppMpSignUpActivityResp;
import com.seer.teach.mp.entity.MpActivityInfoCollectionEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AppMpActivityInfoCollectionConvert {

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

    /**
     * 实体转换成响应参数
     * @param entity 实体
     * @return 响应参数
     */
    AppMpSignUpActivityResp convert2Resp(MpActivityInfoCollectionEntity entity);


    /**
     * 请求参数转换成实体
     * @param request 请求参数
     * @return 实体
     */
    MpActivityInfoCollectionEntity convertOne2Entity(AppMpSignUpActivityReq request);
}