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

import com.seer.teach.mp.app.controller.req.AppMpDealerApplyQueryReq;
import com.seer.teach.mp.entity.MpDealerApplicationsEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AppMpDealerApplicationsConvert {

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

    @Mapping(source = "userId", target = "applicantUserId")
    MpDealerApplicationsEntity convertOne(AppMpDealerApplyQueryReq appMpDealerApplyQueryReq, int userId);
}