38 lines
852 B
Java
38 lines
852 B
Java
package com.newyetai.usercenter.auth.mapstruct;
|
|
|
|
import org.mapstruct.Mapper;
|
|
import org.mapstruct.factory.Mappers;
|
|
|
|
import com.newyetai.usercenter.auth.dto.LiteCodeConfigDTO;
|
|
import com.newyetai.usercenter.auth.entity.LiteCodeConfig;
|
|
import com.newyetai.usercenter.auth.dto.LiteCodeConfigOperateDTO;
|
|
|
|
/**
|
|
* @author sr on 2021-12-21
|
|
*/
|
|
@Mapper
|
|
public interface LiteCodeConfigMapMapper {
|
|
|
|
LiteCodeConfigMapMapper INSTANCE =
|
|
Mappers.getMapper(LiteCodeConfigMapMapper.class);
|
|
|
|
/**
|
|
* dto to entity
|
|
*
|
|
* @param liteCodeConfigDto
|
|
* @return
|
|
* @author sr on 2021-12-21
|
|
*/
|
|
LiteCodeConfig toEntity(
|
|
LiteCodeConfigDTO liteCodeConfigDto);
|
|
|
|
|
|
/**
|
|
* @param liteCodeConfigOperateDTO
|
|
* @return
|
|
* @author sr on 2021-12-21
|
|
*/
|
|
LiteCodeConfig toEntity(LiteCodeConfigOperateDTO liteCodeConfigOperateDTO);
|
|
|
|
}
|