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

import com.seer.teach.mp.app.controller.resp.AppMpAgentResp;
import com.seer.teach.mp.entity.MpAgentEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * 代理商实体转换器
 */
@Mapper
public interface AppAgentConvert {

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

    @Mapping(source = "id", target = "agentId")
    AppMpAgentResp entityToResp(MpAgentEntity entity);
}