package cn.freemud.demo.adapter.manager;

import cn.freemud.demo.entities.GetUserScoreUseDetailBO;
import cn.freemud.demo.entities.ReceiveAddressBO;
import cn.freemud.entities.dto.user.GetUserScoreUseDetailRequest;
import com.freemud.application.sdk.api.membercenter.response.QueryReceiveAddressResponse;
import ma.glasnost.orika.MapperFacade;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class CustomerBO2DTOAdapter {

    @Resource
    private MapperFacade mapperFacade;

    public GetUserScoreUseDetailRequest convert2GetUserScoreUseDetailRequest(GetUserScoreUseDetailBO bo) {
        GetUserScoreUseDetailRequest dto = mapperFacade.map(bo, GetUserScoreUseDetailRequest.class);

        return dto;
    }


}
