Search in sources :

Example 1 with MemberDTO

use of com.whoiszxl.dto.MemberDTO in project shopzz by whoiszxl.

the class MemberFeignClientImpl method getMemberInfo.

@Override
public MemberDetailDTO getMemberInfo() {
    MemberDetailVO memberDetailVO = memberService.memberInfo();
    MemberDetailDTO memberDetailDTO = new MemberDetailDTO();
    MemberDTO memberDTO = memberDetailVO.getMember().clone(MemberDTO.class);
    MemberInfoDTO memberInfoDTO = memberDetailVO.getMemberInfo().clone(MemberInfoDTO.class);
    memberDetailDTO.setMember(memberDTO);
    memberDetailDTO.setMemberInfo(memberInfoDTO);
    return memberDetailDTO;
}
Also used : MemberDetailDTO(com.whoiszxl.dto.MemberDetailDTO) MemberDTO(com.whoiszxl.dto.MemberDTO) MemberInfoDTO(com.whoiszxl.dto.MemberInfoDTO) MemberDetailVO(com.whoiszxl.entity.vo.MemberDetailVO)

Example 2 with MemberDTO

use of com.whoiszxl.dto.MemberDTO in project shopzz by whoiszxl.

the class MemberFeignClientImpl method getMemberInfo.

@Override
public ResponseResult<MemberDetailDTO> getMemberInfo() {
    MemberDetailVO memberDetailVO = memberService.memberInfo();
    MemberDTO memberDTO = dozerUtils.map(memberDetailVO.getMember(), MemberDTO.class);
    MemberInfoDTO memberInfoDTO = dozerUtils.map(memberDetailVO.getMemberInfo(), MemberInfoDTO.class);
    MemberDetailDTO memberDetailDTO = new MemberDetailDTO();
    memberDetailDTO.setMember(memberDTO);
    memberDetailDTO.setMemberInfo(memberInfoDTO);
    return ResponseResult.buildSuccess(memberDetailDTO);
}
Also used : MemberDetailDTO(com.whoiszxl.dto.MemberDetailDTO) MemberDTO(com.whoiszxl.dto.MemberDTO) MemberInfoDTO(com.whoiszxl.dto.MemberInfoDTO) MemberDetailVO(com.whoiszxl.entity.vo.MemberDetailVO)

Aggregations

MemberDTO (com.whoiszxl.dto.MemberDTO)2 MemberDetailDTO (com.whoiszxl.dto.MemberDetailDTO)2 MemberInfoDTO (com.whoiszxl.dto.MemberInfoDTO)2 MemberDetailVO (com.whoiszxl.entity.vo.MemberDetailVO)2