IntegralConverter.java 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.poteviohealth.cgp.integration.mapstruct;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.poteviohealth.cgp.common.model.CommonPage;
  4. import com.poteviohealth.cgp.integration.model.IntegralDetail;
  5. import com.poteviohealth.cgp.integration.model.outvo.web.IntegralDetailWebOutDTO;
  6. import org.mapstruct.Mapper;
  7. import org.mapstruct.factory.Mappers;
  8. /**
  9. * @description 实体映射工具
  10. * @Date 6:30 PM 2019/7/25
  11. * @Author MoonJiDoo
  12. **/
  13. @Mapper()
  14. public interface IntegralConverter {
  15. IntegralConverter INSTANCE = Mappers.getMapper(IntegralConverter.class);
  16. /**
  17. * 映射
  18. *
  19. * @param integralDetail
  20. * @return
  21. * @Date 6:29 PM 2019/7/25
  22. * @Author MoonJiDoo
  23. **/
  24. IntegralDetailWebOutDTO model2WebDTO(IntegralDetail integralDetail);
  25. /**
  26. * 映射
  27. *
  28. * @param integralDetailIPage
  29. * @return
  30. * @Date 6:29 PM 2019/7/25
  31. * @Author MoonJiDoo
  32. **/
  33. CommonPage<IntegralDetailWebOutDTO> model2WebDTO(CommonPage<IntegralDetail> integralDetailIPage);
  34. }