38 lines
918 B
Java
38 lines
918 B
Java
|
|
package com.newyetai.usercenter.auth.mapstruct;
|
||
|
|
|
||
|
|
import org.mapstruct.Mapper;
|
||
|
|
import org.mapstruct.factory.Mappers;
|
||
|
|
|
||
|
|
import com.newyetai.usercenter.auth.dto.AuthSubscribeDetailDTO;
|
||
|
|
import com.newyetai.usercenter.auth.entity.AuthSubscribeDetail;
|
||
|
|
import com.newyetai.usercenter.auth.dto.AuthSubscribeDetailCreateDTO;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @author sr on 2022-04-05
|
||
|
|
*/
|
||
|
|
@Mapper
|
||
|
|
public interface AuthSubscribeDetailMapMapper {
|
||
|
|
|
||
|
|
AuthSubscribeDetailMapMapper INSTANCE =
|
||
|
|
Mappers.getMapper(AuthSubscribeDetailMapMapper.class);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* dto to entity
|
||
|
|
*
|
||
|
|
* @param authSubscribeDetailDto
|
||
|
|
* @return
|
||
|
|
* @author sr on 2022-04-05
|
||
|
|
*/
|
||
|
|
AuthSubscribeDetail toEntity(
|
||
|
|
AuthSubscribeDetailDTO authSubscribeDetailDto);
|
||
|
|
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param authSubscribeDetailCreateDTO
|
||
|
|
* @return
|
||
|
|
* @author sr on 2022-04-05
|
||
|
|
*/
|
||
|
|
AuthSubscribeDetail toEntity(AuthSubscribeDetailCreateDTO authSubscribeDetailCreateDTO);
|
||
|
|
|
||
|
|
}
|